Skip to content

Instantly share code, notes, and snippets.

@nik-garg
Created April 30, 2020 14:20
Show Gist options
  • Save nik-garg/99d4e81864f1d928fe55ed7da0da5b87 to your computer and use it in GitHub Desktop.
Save nik-garg/99d4e81864f1d928fe55ed7da0da5b87 to your computer and use it in GitHub Desktop.
ESlintrc config
{
"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