Skip to content

Instantly share code, notes, and snippets.

@talk2MeGooseman
Last active December 11, 2017 22:50
Show Gist options
  • Save talk2MeGooseman/541b1236548b3ade88a8a8b3ddaa657a to your computer and use it in GitHub Desktop.
Save talk2MeGooseman/541b1236548b3ade88a8a8b3ddaa657a to your computer and use it in GitHub Desktop.
Example ESLint file for react
// Need eslint, eslint-plugin-react, eslint-babel installed
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"sourceType": "module"
},
"rules": {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "warn",
"constructor-super": "warn",
"valid-typeof": "warn",
"strict": [2, "never"]
},
"plugins": [
"react"
],
"extends": ["eslint:recommended", "plugin:react/recommended"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment