-
-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy path.eslintrc
27 lines (25 loc) · 789 Bytes
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017
},
"env": {
"commonjs": true,
"browser": true,
"node": true,
"es6": true
},
"rules": {
"no-console": 0,
"no-constant-condition": 0,
"complexity": ["error", {"max" : 6}],
"max-depth": ["error", {"max" : 2}],
"max-nested-callbacks": ["error", {"max" : 2}],
"max-params": ["error", {"max" : 3}],
"max-statements": ["error", {"max" : 17}, {"ignoreTopLevelFunctions": false}],
"max-len": ["error", {"code" : 120}],
"max-lines": ["error", {"max": 250, "skipComments": true, "skipBlankLines": true}],
"semi": ["error", "always"],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}]
}
}