Skip to content

Instantly share code, notes, and snippets.

@Banhawy
Last active February 19, 2018 18:39
Show Gist options
  • Save Banhawy/84e9180ba01b1188d2226e6ba4382464 to your computer and use it in GitHub Desktop.
Save Banhawy/84e9180ba01b1188d2226e6ba4382464 to your computer and use it in GitHub Desktop.
integrating eslint into any project with babel
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
},
"sourceType": "module"
},
"plugins": [ "react" ],
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error","unix"],
"quotes": ["error","single"],
"semi": ["error","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