-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
35 lines (35 loc) · 816 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
28
29
30
31
32
33
34
35
{
"root": true,
"extends": "eslint:recommended",
"env": {
"browser": true,
"node": true,
"es6": true,
"commonjs": true,
"jest": true,
"jasmine": true,
"jquery": true
},
"rules": {
"max-len": [
"error",
100
],
"no-empty-function": ["error"],
"max-nested-callbacks": [
"error",
4
],
"max-params": ["error", 4],
"no-labels": ["error"],
"max-depth": ["error"],
"no-shadow-restricted-names": ["error"],
"no-shadow": ["error"],
"quotes": ["error", "single", {"allowTemplateLiterals": true}],
"operator-linebreak": ["error", "after"],
// "object-property-newline": ["error"],
"no-negated-condition": ["error"],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"complexity": ["error", 20]
}
}