-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
98 lines (98 loc) · 1.86 KB
/
.eslintrc.json
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"rules": {
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
"quotes": [ 2, "single" ],
"linebreak-style": [ 2, "unix" ],
"semi": [ 2, "always" ],
"no-loop-func": 2,
"default-case": 2,
"no-alert": 2,
"no-multi-spaces": 2,
"no-multi-str": 2,
"curly": 2,
"no-shadow-restricted-names": 2,
"no-undef-init": 2,
"no-undefined": 2,
"array-bracket-spacing": [2, "never"],
"brace-style": 2,
"no-unneeded-ternary": 2,
"operator-assignment": [2, "always"],
"space-unary-ops": 2,
"space-return-throw-case": 2,
"space-infix-ops": 2,
"space-after-keywords": 2,
"one-var": [2, "never"],
"comma-style": [2, "last"],
"camelcase": [
2,
{
"properties": "never"
}
],
"strict": [ 2, "global" ],
"no-param-reassign": [
2,
{
"props": false
}
],
"complexity": [ 2, 10 ],
"max-depth": [2, 4],
"max-len": [1, 200, 4],
"max-nested-callbacks": [2, 3],
"max-statements": [2, 30],
"new-cap": 2,
"new-parens": 2,
"no-negated-condition": 2,
"no-nested-ternary": 2,
"no-lonely-if": 2,
"no-spaced-func": 2,
"no-plusplus": [
2,
{
"allowForLoopAfterthoughts": true
}
],
"no-multiple-empty-lines": [
2,
{
"max": 3
}
],
"eqeqeq": [
2,
"smart"
],
"dot-location": [
2,
"property"
],
"arrow-parens": [2, "always"],
"no-class-assign": 2,
"no-const-assign": 2,
"no-dupe-class-members": 2,
"arrow-spacing": 2
},
"env": {
"browser": true,
"node": true,
"amd": true
},
"globals": {
"angular": 1
},
"extends": "eslint:recommended",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"modules": true
},
"plugins": [
"angular"
]
}