Created
July 21, 2018 10:41
-
-
Save ivanhoe011/ad51cffb487e7f5c5e268ec8a79a1d27 to your computer and use it in GitHub Desktop.
ESLint setup for react, jsx, es2018, class properties, etc...
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
Show hidden characters
| { | |
| "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