|
3 | 3 | "modules": true,
|
4 | 4 | "experimentalObjectRestSpread": true
|
5 | 5 | },
|
| 6 | + |
6 | 7 | "env": {
|
7 | 8 | "browser": false,
|
8 | 9 | "es6": true,
|
9 | 10 | "node": true,
|
10 | 11 | "mocha": true
|
11 | 12 | },
|
| 13 | + |
12 | 14 | "globals": {
|
13 | 15 | "document": false,
|
14 | 16 | "navigator": false,
|
15 | 17 | "window": false
|
16 | 18 | },
|
| 19 | + |
17 | 20 | "rules": {
|
18 | 21 | "accessor-pairs": 2,
|
19 |
| - "arrow-spacing": [ |
20 |
| - 2, |
21 |
| - { |
22 |
| - "before": true, |
23 |
| - "after": true |
24 |
| - } |
25 |
| - ], |
26 |
| - "block-spacing": [ |
27 |
| - 2, |
28 |
| - "always" |
29 |
| - ], |
30 |
| - "brace-style": [ |
31 |
| - 2, |
32 |
| - "1tbs", |
33 |
| - { |
34 |
| - "allowSingleLine": true |
35 |
| - } |
36 |
| - ], |
37 |
| - "comma-dangle": [ |
38 |
| - 2, |
39 |
| - "never" |
40 |
| - ], |
41 |
| - "comma-spacing": [ |
42 |
| - 2, |
43 |
| - { |
44 |
| - "before": false, |
45 |
| - "after": true |
46 |
| - } |
47 |
| - ], |
48 |
| - "comma-style": [ |
49 |
| - 2, |
50 |
| - "last" |
51 |
| - ], |
| 22 | + "arrow-spacing": [2, { "before": true, "after": true }], |
| 23 | + "block-spacing": [2, "always"], |
| 24 | + "brace-style": [2, "1tbs", { "allowSingleLine": true }], |
| 25 | + "comma-dangle": [2, "never"], |
| 26 | + "comma-spacing": [2, { "before": false, "after": true }], |
| 27 | + "comma-style": [2, "last"], |
52 | 28 | "constructor-super": 2,
|
53 |
| - "curly": [ |
54 |
| - 2, |
55 |
| - "multi-line" |
56 |
| - ], |
57 |
| - "dot-location": [ |
58 |
| - 2, |
59 |
| - "property" |
60 |
| - ], |
| 29 | + "curly": [2, "multi-line"], |
| 30 | + "dot-location": [2, "property"], |
61 | 31 | "eol-last": 2,
|
62 |
| - "eqeqeq": [ |
63 |
| - 2, |
64 |
| - "allow-null" |
65 |
| - ], |
66 |
| - "generator-star-spacing": [ |
67 |
| - 2, |
68 |
| - { |
69 |
| - "before": true, |
70 |
| - "after": true |
71 |
| - } |
72 |
| - ], |
73 |
| - "handle-callback-err": [ |
74 |
| - 2, |
75 |
| - "^(err|error)$" |
76 |
| - ], |
77 |
| - "indent": [ |
78 |
| - 2, |
79 |
| - 2, |
80 |
| - { |
81 |
| - "SwitchCase": 1 |
82 |
| - } |
83 |
| - ], |
84 |
| - "key-spacing": [ |
85 |
| - 2, |
86 |
| - { |
87 |
| - "beforeColon": false, |
88 |
| - "afterColon": true |
89 |
| - } |
90 |
| - ], |
91 |
| - "new-cap": [ |
92 |
| - 2, |
93 |
| - { |
94 |
| - "newIsCap": true, |
95 |
| - "capIsNew": false |
96 |
| - } |
97 |
| - ], |
| 32 | + "eqeqeq": [2, "allow-null"], |
| 33 | + "generator-star-spacing": [2, { "before": true, "after": true }], |
| 34 | + "handle-callback-err": [2, "^(err|error)$" ], |
| 35 | + "indent": [2, 2, { "SwitchCase": 1 }], |
| 36 | + "key-spacing": [2, { "beforeColon": false, "afterColon": true }], |
| 37 | + "keyword-spacing": [2, { "before": true, "after": true }], |
| 38 | + "new-cap": [2, { "newIsCap": true, "capIsNew": false }], |
98 | 39 | "new-parens": 2,
|
99 | 40 | "no-array-constructor": 2,
|
100 | 41 | "no-caller": 2,
|
|
109 | 50 | "no-dupe-keys": 2,
|
110 | 51 | "no-duplicate-case": 2,
|
111 | 52 | "no-empty-character-class": 2,
|
112 |
| - "no-empty-label": 2, |
113 | 53 | "no-eval": 2,
|
114 | 54 | "no-ex-assign": 2,
|
115 | 55 | "no-extend-native": 2,
|
116 | 56 | "no-extra-bind": 2,
|
117 | 57 | "no-extra-boolean-cast": 2,
|
118 |
| - "no-extra-parens": [ |
119 |
| - 2, |
120 |
| - "functions" |
121 |
| - ], |
| 58 | + "no-extra-parens": [2, "functions"], |
122 | 59 | "no-fallthrough": 2,
|
123 | 60 | "no-floating-decimal": 2,
|
124 | 61 | "no-func-assign": 2,
|
125 | 62 | "no-implied-eval": 2,
|
126 |
| - "no-inner-declarations": [ |
127 |
| - 2, |
128 |
| - "functions" |
129 |
| - ], |
| 63 | + "no-inner-declarations": [2, "functions"], |
130 | 64 | "no-invalid-regexp": 2,
|
131 | 65 | "no-irregular-whitespace": 2,
|
132 | 66 | "no-iterator": 2,
|
|
136 | 70 | "no-mixed-spaces-and-tabs": 2,
|
137 | 71 | "no-multi-spaces": 2,
|
138 | 72 | "no-multi-str": 2,
|
139 |
| - "no-multiple-empty-lines": [ |
140 |
| - 2, |
141 |
| - { |
142 |
| - "max": 1 |
143 |
| - } |
144 |
| - ], |
145 |
| - "no-native-reassign": 2, |
| 73 | + "no-multiple-empty-lines": [2, { "max": 1 }], |
| 74 | + "no-native-reassign": 0, |
146 | 75 | "no-negated-in-lhs": 2,
|
147 | 76 | "no-new": 2,
|
148 | 77 | "no-new-func": 2,
|
|
167 | 96 | "no-undef": 2,
|
168 | 97 | "no-undef-init": 2,
|
169 | 98 | "no-unexpected-multiline": 2,
|
170 |
| - "no-unneeded-ternary": [ |
171 |
| - 2, |
172 |
| - { |
173 |
| - "defaultAssignment": false |
174 |
| - } |
175 |
| - ], |
| 99 | + "no-unneeded-ternary": [2, { "defaultAssignment": false }], |
176 | 100 | "no-unreachable": 2,
|
177 |
| - "no-unused-vars": [ |
178 |
| - 2, |
179 |
| - { |
180 |
| - "vars": "all", |
181 |
| - "args": "none" |
182 |
| - } |
183 |
| - ], |
| 101 | + "no-unused-vars": [2, { "vars": "all", "args": "none" }], |
184 | 102 | "no-useless-call": 0,
|
185 | 103 | "no-with": 2,
|
186 |
| - "one-var": [ |
187 |
| - 0, |
188 |
| - { |
189 |
| - "initialized": "never" |
190 |
| - } |
191 |
| - ], |
192 |
| - "operator-linebreak": [ |
193 |
| - 0, |
194 |
| - "after", |
195 |
| - { |
196 |
| - "overrides": { |
197 |
| - "?": "before", |
198 |
| - ":": "before" |
199 |
| - } |
200 |
| - } |
201 |
| - ], |
202 |
| - "padded-blocks": [ |
203 |
| - 0, |
204 |
| - "never" |
205 |
| - ], |
206 |
| - "quotes": [ |
207 |
| - 2, |
208 |
| - "single", |
209 |
| - "avoid-escape" |
210 |
| - ], |
| 104 | + "one-var": [0, { "initialized": "never" }], |
| 105 | + "operator-linebreak": [0, "after", { "overrides": { "?": "before", ":": "before" } }], |
| 106 | + "padded-blocks": [0, "never"], |
| 107 | + "quotes": [2, "single", "avoid-escape"], |
211 | 108 | "radix": 2,
|
212 |
| - "semi": [ |
213 |
| - 2, |
214 |
| - "always" |
215 |
| - ], |
216 |
| - "semi-spacing": [ |
217 |
| - 2, |
218 |
| - { |
219 |
| - "before": false, |
220 |
| - "after": true |
221 |
| - } |
222 |
| - ], |
223 |
| - "space-after-keywords": [ |
224 |
| - 2, |
225 |
| - "always" |
226 |
| - ], |
227 |
| - "space-before-blocks": [ |
228 |
| - 2, |
229 |
| - "always" |
230 |
| - ], |
231 |
| - "space-before-function-paren": [ |
232 |
| - 2, |
233 |
| - "never" |
234 |
| - ], |
235 |
| - "space-before-keywords": [ |
236 |
| - 2, |
237 |
| - "always" |
238 |
| - ], |
239 |
| - "space-in-parens": [ |
240 |
| - 2, |
241 |
| - "never" |
242 |
| - ], |
| 109 | + "semi": [2, "always"], |
| 110 | + "semi-spacing": [2, { "before": false, "after": true }], |
| 111 | + "space-before-blocks": [2, "always"], |
| 112 | + "space-before-function-paren": [2, "never"], |
| 113 | + "space-in-parens": [2, "never"], |
243 | 114 | "space-infix-ops": 2,
|
244 |
| - "space-return-throw-case": 2, |
245 |
| - "space-unary-ops": [ |
246 |
| - 2, |
247 |
| - { |
248 |
| - "words": true, |
249 |
| - "nonwords": false |
250 |
| - } |
251 |
| - ], |
252 |
| - "spaced-comment": [ |
253 |
| - 0, |
254 |
| - "always", |
255 |
| - { |
256 |
| - "markers": [ |
257 |
| - "global", |
258 |
| - "globals", |
259 |
| - "eslint", |
260 |
| - "eslint-disable", |
261 |
| - "*package", |
262 |
| - "!", |
263 |
| - "," |
264 |
| - ] |
265 |
| - } |
266 |
| - ], |
| 115 | + "space-unary-ops": [2, { "words": true, "nonwords": false }], |
| 116 | + "spaced-comment": [0, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","] }], |
267 | 117 | "use-isnan": 2,
|
268 | 118 | "valid-typeof": 2,
|
269 |
| - "wrap-iife": [ |
270 |
| - 2, |
271 |
| - "any" |
272 |
| - ], |
273 |
| - "yoda": [ |
274 |
| - 2, |
275 |
| - "never" |
276 |
| - ] |
| 119 | + "wrap-iife": [2, "any"], |
| 120 | + "yoda": [2, "never"] |
277 | 121 | }
|
278 | 122 | }
|
0 commit comments