Skip to content
Permalink
Browse files
updated eslint rules
  • Loading branch information
aa7401 committed Sep 15, 2019
1 parent 4202475 commit 00e5c5d491f265087bf4a786618d8c095cb26648
Showing 1 changed file with 9 additions and 11 deletions.
@@ -12,11 +12,10 @@
},
"rules": {
"arrow-body-style": 2,
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["warn", {"before": true, "after": true}],
"brace-style": 2,
"camelcase": [2, {"properties": "never"}],
"complexity": ["warn", 4],
"complexity": ["error", 5],
"eol-last": "warn",
"eqeqeq": "error",
"func-call-spacing": ["error", "never"],
@@ -25,13 +24,13 @@
"indent": [1, "tab", {"SwitchCase": 1}],
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
"linebreak-style": ["warn", "unix"],
"max-depth": ["warn", 3],
"max-depth": ["error", 3],
"max-len": ["warn", { "code": 120, "tabWidth": 4 }],
"max-lines": ["warn", 100],
"max-lines-per-function": ["warn", 15],
"max-nested-callbacks": ["warn", 4],
"max-params": ["warn", 5],
"max-statements": ["warn", 10],
"max-lines": ["error", 100],
"max-lines-per-function": ["error", 20],
"max-nested-callbacks": ["error", 4],
"max-params": ["error", 5],
"max-statements": ["error", 20],
"no-cond-assign": 2,
"no-dupe-args": "error",
"no-dupe-keys": "error",
@@ -54,10 +53,9 @@
"no-var": 2,
"prefer-arrow-callback": 1,
"prefer-const": 2,
"prefer-template": "error",
"quotes": [1, "single"],
"semi": [1, "never"],
"space-before-blocks": ["error", { "functions": "always", "keywords": "always", "classes": "never" }],
"space-before-blocks": ["error", { "functions": "always", "keywords": "always", "classes": "always" }],
"space-before-function-paren": [2, "never"],
"strict": [2, "global"],
"yoda": 2
@@ -72,4 +70,4 @@
"no-magic-numbers": "off"
}
}]
}
}

0 comments on commit 00e5c5d

Please sign in to comment.