Skip to content

Instantly share code, notes, and snippets.

@anthonybrown
Created May 2, 2017 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonybrown/8daf515a9b12b3701556a149c9289774 to your computer and use it in GitHub Desktop.
Save anthonybrown/8daf515a9b12b3701556a149c9289774 to your computer and use it in GitHub Desktop.
My react eslint file
module.exports = {
"parser": 'babel-eslint',
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"react/jsx-uses-vars": true
},
"sourceType": "module"
},
"plugins": [ "react" ],
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error","unix"],
"quotes": ["warn","single"],
"semi": ["warn","always"],
"no-console": ["warn", { "allow": ["info", "error"] }]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment