-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
26 lines (24 loc) · 780 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
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017
},
"env": {
"commonjs": true,
"browser": true,
"node": true,
"es6": true
},
"rules": {
"curly": ["error"],
"complexity": ["error", {"max" : 4}],
"max-depth": ["error", {"max" : 2}],
"max-nested-callbacks": ["error", {"max" : 2}],
"max-params": ["error", {"max" : 3}],
"max-statements": ["error", {"max" : 11}, {"ignoreTopLevelFunctions": false}],
"max-len": ["error", {"code" : 120, "ignoreUrls": true}],
"max-lines": ["error", {"max": 160, "skipComments": true, "skipBlankLines": true}],
"semi": ["error", "always"],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}]
}
}