UNPKG

1.9 kBJSONView Raw
1{
2 "rules": {
3 "indent": [
4 2,
5 2,
6 {
7 "SwitchCase": 1
8 }
9 ],
10 "quotes": [ 2, "single" ],
11 "linebreak-style": [ 2, "unix" ],
12 "semi": [ 2, "always" ],
13 "no-loop-func": 2,
14 "default-case": 2,
15 "no-alert": 2,
16 "no-multi-spaces": 2,
17 "no-multi-str": 2,
18 "curly": 2,
19 "no-shadow-restricted-names": 2,
20 "no-undef-init": 2,
21 "no-undefined": 2,
22 "array-bracket-spacing": [2, "never"],
23 "brace-style": 2,
24 "no-unneeded-ternary": 2,
25 "operator-assignment": [2, "always"],
26 "space-unary-ops": 2,
27 "space-return-throw-case": 2,
28 "space-infix-ops": 2,
29 "space-after-keywords": 2,
30 "one-var": [2, "never"],
31 "comma-style": [2, "last"],
32 "camelcase": [
33 2,
34 {
35 "properties": "never"
36 }
37 ],
38 "strict": [ 2, "global" ],
39 "no-param-reassign": [
40 2,
41 {
42 "props": false
43 }
44 ],
45 "complexity": [ 2, 10 ],
46 "max-depth": [2, 4],
47 "max-len": [1, 200, 4],
48 "max-nested-callbacks": [2, 3],
49 "max-statements": [2, 30],
50 "new-cap": 2,
51 "new-parens": 2,
52 "no-negated-condition": 2,
53 "no-nested-ternary": 2,
54 "no-lonely-if": 2,
55 "no-spaced-func": 2,
56 "no-plusplus": [
57 2,
58 {
59 "allowForLoopAfterthoughts": true
60 }
61 ],
62 "no-multiple-empty-lines": [
63 2,
64 {
65 "max": 3
66 }
67 ],
68 "eqeqeq": [
69 2,
70 "smart"
71 ],
72 "dot-location": [
73 2,
74 "property"
75 ],
76 "arrow-parens": [2, "always"],
77 "no-class-assign": 2,
78 "no-const-assign": 2,
79 "no-dupe-class-members": 2,
80 "arrow-spacing": 2
81 },
82 "env": {
83 "browser": true,
84 "node": true,
85 "amd": true
86 },
87 "globals": {
88 "angular": 1
89 },
90 "extends": "eslint:recommended",
91 "ecmaFeatures": {
92 "experimentalObjectRestSpread": true,
93 "modules": true
94 },
95 "plugins": [
96 "angular"
97 ]
98}