Last active
February 19, 2018 18:39
-
-
Save Banhawy/84e9180ba01b1188d2226e6ba4382464 to your computer and use it in GitHub Desktop.
integrating eslint into any project with babel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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