Created
April 30, 2020 14:20
-
-
Save nik-garg/99d4e81864f1d928fe55ed7da0da5b87 to your computer and use it in GitHub Desktop.
ESlintrc config
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
{ | |
"env": { | |
"browser" : true, | |
"node" : true, | |
"commonjs": true, | |
"es6" : true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"ecmaVersion": 2018, | |
"sourceType": "module" | |
}, | |
"plugins": [ | |
"react" | |
], | |
"rules": { | |
"indent": [ | |
"warn", | |
"tab", | |
{"SwitchCase" : 1} | |
], | |
"linebreak-style": [ | |
"error", | |
"unix" | |
], | |
"quotes": [ | |
"off", | |
"single" | |
], | |
"semi": [ | |
"warn", | |
"always" | |
], | |
"eqeqeq" : ["warn", "always"], | |
"no-extra-semi" : "warn", | |
"no-empty" : "warn", | |
"no-unused-vars" : "warn", | |
"react/jsx-uses-vars" : "warn", | |
"react/jsx-uses-react" : "warn" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment