Skip to content

Instantly share code, notes, and snippets.

@ben-bradley
Created November 5, 2020 14:42
Show Gist options
  • Save ben-bradley/040ee9991cae041b02187ff67455f115 to your computer and use it in GitHub Desktop.
Save ben-bradley/040ee9991cae041b02187ff67455f115 to your computer and use it in GitHub Desktop.
Lint defs
{
"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