Update ESLint configuration
This commit is contained in:
parent
8651850803
commit
fd580b7568
1 changed files with 28 additions and 31 deletions
|
|
@ -1,15 +1,12 @@
|
||||||
{
|
{
|
||||||
"extends": [
|
"extends": ["eslint:recommended", "plugin:node/recommended"],
|
||||||
"eslint:recommended",
|
|
||||||
"plugin:node/recommended"
|
|
||||||
],
|
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 2018
|
"ecmaVersion": 2018
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-console": "warn",
|
"no-console": "warn",
|
||||||
"no-self-assign": "warn",
|
"no-self-assign": "warn",
|
||||||
"no-self-compare":"warn",
|
"no-self-compare": "warn",
|
||||||
"complexity": ["error", { "max": 15 }],
|
"complexity": ["error", { "max": 15 }],
|
||||||
"indent": ["error", 2, { "SwitchCase": 1 }],
|
"indent": ["error", 2, { "SwitchCase": 1 }],
|
||||||
"no-dupe-keys": "error",
|
"no-dupe-keys": "error",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue