Created
November 5, 2020 14:42
-
-
Save ben-bradley/040ee9991cae041b02187ff67455f115 to your computer and use it in GitHub Desktop.
Lint defs
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": { | |
"es6": true, | |
"node": true, | |
"jest": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"ecmaVersion": 2017 | |
}, | |
"rules": { | |
"array-bracket-spacing": [ "error", "always" ], | |
"arrow-body-style": [ "error", "as-needed" ], | |
"arrow-parens": [ "error", "always" ], | |
"comma-dangle": [ "error", "never" ], | |
"complexity": [ "warn", 10 ], | |
"eol-last": [ "error", "always" ], | |
"func-call-spacing": [ "error", "never" ], | |
"indent": [ "error", 2 ], | |
"key-spacing": "error", | |
"max-depth": [ "error", 4 ], | |
"max-len": [ "error", { "code": 100 } ], | |
"max-nested-callbacks": [ "error", 3 ], | |
"max-params": [ "error", 4 ], | |
"no-trailing-spaces": "error", | |
"prefer-const": "error", | |
"quotes": [ "error", "double" ], | |
"semi-style": ["error", "last" ], | |
"space-before-blocks": "error", | |
"space-before-function-paren": [ "error", { "asyncArrow": "always" } ] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment