Skip to content

Instantly share code, notes, and snippets.

@ivanhoe011
Created July 21, 2018 10:41
Show Gist options
  • Select an option

  • Save ivanhoe011/ad51cffb487e7f5c5e268ec8a79a1d27 to your computer and use it in GitHub Desktop.

Select an option

Save ivanhoe011/ad51cffb487e7f5c5e268ec8a79a1d27 to your computer and use it in GitHub Desktop.
ESLint setup for react, jsx, es2018, class properties, etc...
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"eslint-config-prettier"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"impliedStrict": true
}
},
"env": {
"es6": true,
"browser": true,
"commonjs": true
},
"rules": {
"no-console": 0,
"no-debugger": "warn",
"babel/new-cap": 1,
"babel/no-invalid-this": 1,
"babel/object-curly-spacing": 1,
"babel/quotes": 1,
"babel/semi": 1,
"babel/no-unused-expressions": 1
},
"plugins": [
"babel"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment