Created
September 18, 2021 13:52
-
-
Save bolorundurowb/23f7c3b0ff1f9b7c8ae9e2868b048448 to your computer and use it in GitHub Desktop.
Eslint config with rules I believe are sensible and consistent
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
Show hidden characters
{ | |
"env": { | |
"node": true, | |
"es2021": true, | |
"commonjs": true, | |
"mocha": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"ecmaVersion": 12 | |
}, | |
"rules": { | |
"comma-dangle": 1, | |
"comma-spacing": [ | |
"error", | |
{ | |
"before": false, | |
"after": true | |
} | |
], | |
"eqeqeq": 1, | |
"no-cond-assign": 1, | |
"no-console": 1, | |
"no-dupe-args": 1, | |
"no-dupe-keys": 1, | |
"no-empty": 1, | |
"no-extra-semi": 1, | |
"no-sparse-arrays": 1, | |
"no-unreachable": 1, | |
"semi": 2, | |
"valid-typeof": 1, | |
"object-curly-spacing": [ | |
"error", | |
"always", | |
{ | |
"arraysInObjects": true | |
} | |
], | |
"curly": [ | |
"error", | |
"all" | |
], | |
"prefer-destructuring": [ | |
"error", | |
{ | |
"array": true, | |
"object": true | |
} | |
], | |
"object-shorthand": "error", | |
"prefer-const": "error", | |
"quotes": ["error", "single"], | |
"prefer-template": "error", | |
"no-useless-concat": "error" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment