Last active
January 14, 2019 21:00
-
-
Save jcardoz/49eae08871cefa5fa4eb888f7818432f to your computer and use it in GitHub Desktop.
eslint configuration for create react app, extending the eslint-recommended ruleset, along with some custom rules
This file contains 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
{ | |
"extends": ["react-app", "eslint:recommended"], | |
"env": { | |
"browser": true | |
}, | |
"settings": { | |
"react": { | |
"pragma": "React", | |
"version": "detect" | |
} | |
}, | |
"rules": { | |
"block-scoped-var": 2, | |
"complexity": [2, 10], | |
"consistent-return": 2, | |
"curly": 2, | |
"default-case": 2, | |
"dot-notation": 2, | |
"eqeqeq": 2, | |
"guard-for-in": 2, | |
"no-alert": 2, | |
"no-caller": 2, | |
"no-else-return": [2, {"allowElseIf": true}], | |
"no-empty-function": 2, | |
"no-eq-null": 2, | |
"no-eval": 2, | |
"no-extend-native": 2, | |
"no-floating-decimal": 2, | |
"no-implicit-coercion": 2, | |
"no-implicit-globals": 2, | |
"no-implied-eval": 2, | |
"no-iterator": 2, | |
"no-loop-func": 2, | |
"no-multi-spaces": 2, | |
"no-multi-str": 2, | |
"no-new": 2, | |
"no-new-func": 2, | |
"no-new-wrappers": 2, | |
"no-param-reassign": 2, | |
"no-proto": 2, | |
"no-throw-literal": 2, | |
"yoda": 2 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment