Skip to content

Instantly share code, notes, and snippets.

@danielzen
Created December 12, 2016 20:04
Show Gist options
  • Save danielzen/1168f1baa8cd2b120af980744c63bf0f to your computer and use it in GitHub Desktop.
Save danielzen/1168f1baa8cd2b120af980744c63bf0f to your computer and use it in GitHub Desktop.
My eslint file for React Development (depends on react & jasmine plugins
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true,
"jasmine": true
},
"globals": {
"React": false,
"App": true
},
"extends": [
"eslint:recommended",
"plugin:jasmine/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"jasmine"
],
"rules": {
"no-console": "warn",
"strict": 0,
"no-unused-vars": "warn",
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment