|
12 | 12 | "BigInt": true |
13 | 13 | }, |
14 | 14 | "rules": { |
15 | | - "indent": [ |
16 | | - "error", |
17 | | - 2 |
18 | | - ], |
19 | | - "linebreak-style": [ |
20 | | - "error", |
21 | | - "unix" |
22 | | - ], |
23 | | - "quotes": [ |
24 | | - "error", |
25 | | - "single" |
26 | | - ], |
27 | | - "semi": [ |
28 | | - "error", |
29 | | - "always" |
30 | | - ], |
31 | | - "no-console": "off", |
32 | | - "no-loop-func": [ |
33 | | - "error" |
34 | | - ], |
35 | | - "block-spacing": [ |
36 | | - "error", |
37 | | - "always" |
38 | | - ], |
39 | | - "camelcase": [ |
40 | | - "error" |
41 | | - ], |
42 | | - "eqeqeq": [ |
43 | | - "error", |
44 | | - "always" |
45 | | - ], |
46 | | - "strict": [ |
47 | | - "error", |
48 | | - "global" |
49 | | - ], |
| 15 | + "indent": ["error", 2], |
| 16 | + "linebreak-style": ["error", "unix"], |
| 17 | + "quotes": ["error", "single"], |
| 18 | + "semi": ["error", "always"], |
| 19 | + "no-loop-func": ["error"], |
| 20 | + "block-spacing": ["error", "always"], |
| 21 | + "camelcase": ["error"], |
| 22 | + "eqeqeq": ["error", "always"], |
| 23 | + "strict": ["error", "global"], |
50 | 24 | "brace-style": [ |
51 | 25 | "error", |
52 | 26 | "1tbs", |
53 | 27 | { |
54 | 28 | "allowSingleLine": true |
55 | 29 | } |
56 | 30 | ], |
57 | | - "comma-style": [ |
58 | | - "error", |
59 | | - "last" |
60 | | - ], |
| 31 | + "comma-style": ["error", "last"], |
61 | 32 | "comma-spacing": [ |
62 | 33 | "error", |
63 | 34 | { |
64 | 35 | "before": false, |
65 | 36 | "after": true |
66 | 37 | } |
67 | 38 | ], |
68 | | - "eol-last": [ |
69 | | - "error" |
70 | | - ], |
71 | | - "func-call-spacing": [ |
72 | | - "error", |
73 | | - "never" |
74 | | - ], |
| 39 | + "eol-last": ["error"], |
| 40 | + "func-call-spacing": ["error", "never"], |
75 | 41 | "key-spacing": [ |
76 | 42 | "error", |
77 | 43 | { |
|
113 | 79 | "properties": true |
114 | 80 | } |
115 | 81 | ], |
116 | | - "new-parens": [ |
117 | | - "error" |
118 | | - ], |
119 | | - "no-lonely-if": [ |
120 | | - "error" |
121 | | - ], |
122 | | - "no-trailing-spaces": [ |
123 | | - "error" |
124 | | - ], |
125 | | - "no-unneeded-ternary": [ |
126 | | - "error" |
127 | | - ], |
128 | | - "no-whitespace-before-property": [ |
129 | | - "error" |
130 | | - ], |
131 | | - "object-curly-spacing": [ |
132 | | - "error", |
133 | | - "always" |
134 | | - ], |
135 | | - "operator-assignment": [ |
136 | | - "error", |
137 | | - "always" |
138 | | - ], |
139 | | - "operator-linebreak": [ |
140 | | - "error", |
141 | | - "after" |
142 | | - ], |
| 82 | + "new-parens": ["error"], |
| 83 | + "no-lonely-if": ["error"], |
| 84 | + "no-trailing-spaces": ["error"], |
| 85 | + "no-unneeded-ternary": ["error"], |
| 86 | + "no-whitespace-before-property": ["error"], |
| 87 | + "object-curly-spacing": ["error", "always"], |
| 88 | + "operator-assignment": ["error", "always"], |
| 89 | + "operator-linebreak": ["error", "after"], |
143 | 90 | "semi-spacing": [ |
144 | 91 | "error", |
145 | 92 | { |
146 | 93 | "before": false, |
147 | 94 | "after": true |
148 | 95 | } |
149 | 96 | ], |
150 | | - "space-before-blocks": [ |
151 | | - "error", |
152 | | - "always" |
153 | | - ], |
| 97 | + "space-before-blocks": ["error", "always"], |
154 | 98 | "space-before-function-paren": [ |
155 | 99 | "error", |
156 | 100 | { |
|
159 | 103 | "asyncArrow": "always" |
160 | 104 | } |
161 | 105 | ], |
162 | | - "space-in-parens": [ |
163 | | - "error", |
164 | | - "never" |
165 | | - ], |
166 | | - "space-infix-ops": [ |
167 | | - "error" |
168 | | - ], |
| 106 | + "space-in-parens": ["error", "never"], |
| 107 | + "space-infix-ops": ["error"], |
169 | 108 | "space-unary-ops": [ |
170 | 109 | "error", |
171 | 110 | { |
|
176 | 115 | } |
177 | 116 | } |
178 | 117 | ], |
179 | | - "no-unreachable": [ |
180 | | - "error" |
181 | | - ], |
182 | | - "no-global-assign": [ |
183 | | - "error" |
184 | | - ], |
185 | | - "no-self-compare": [ |
186 | | - "error" |
187 | | - ], |
188 | | - "no-unmodified-loop-condition": [ |
189 | | - "error" |
190 | | - ], |
| 118 | + "no-unreachable": ["error"], |
| 119 | + "no-global-assign": ["error"], |
| 120 | + "no-self-compare": ["error"], |
| 121 | + "no-unmodified-loop-condition": ["error"], |
191 | 122 | "no-constant-condition": [ |
192 | 123 | "error", |
193 | 124 | { |
194 | 125 | "checkLoops": false |
195 | 126 | } |
196 | 127 | ], |
197 | | - "no-console": [ |
198 | | - "off" |
199 | | - ], |
200 | | - "no-useless-concat": [ |
201 | | - "error" |
202 | | - ], |
203 | | - "no-useless-escape": [ |
204 | | - "error" |
205 | | - ], |
206 | | - "no-shadow-restricted-names": [ |
207 | | - "error" |
208 | | - ], |
| 128 | + "no-console": ["off"], |
| 129 | + "no-useless-concat": ["error"], |
| 130 | + "no-useless-escape": ["error"], |
| 131 | + "no-shadow-restricted-names": ["error"], |
209 | 132 | "no-use-before-define": [ |
210 | 133 | "error", |
211 | 134 | { |
212 | 135 | "functions": false |
213 | 136 | } |
214 | 137 | ], |
215 | | - "arrow-parens": [ |
216 | | - "error", |
217 | | - "as-needed" |
218 | | - ], |
219 | | - "arrow-body-style": [ |
220 | | - "error", |
221 | | - "as-needed" |
222 | | - ], |
223 | | - "arrow-spacing": [ |
224 | | - "error" |
225 | | - ], |
| 138 | + "arrow-parens": ["error", "as-needed"], |
| 139 | + "arrow-body-style": ["error", "as-needed"], |
| 140 | + "arrow-spacing": ["error"], |
226 | 141 | "no-confusing-arrow": [ |
227 | 142 | "error", |
228 | 143 | { |
229 | 144 | "allowParens": true |
230 | 145 | } |
231 | 146 | ], |
232 | | - "no-useless-computed-key": [ |
233 | | - "error" |
234 | | - ], |
235 | | - "no-useless-rename": [ |
236 | | - "error" |
237 | | - ], |
238 | | - "no-var": [ |
239 | | - "error" |
240 | | - ], |
241 | | - "object-shorthand": [ |
242 | | - "error", |
243 | | - "always" |
244 | | - ], |
245 | | - "prefer-arrow-callback": [ |
246 | | - "error" |
247 | | - ], |
248 | | - "prefer-const": [ |
249 | | - "error" |
250 | | - ], |
251 | | - "prefer-numeric-literals": [ |
252 | | - "error" |
253 | | - ], |
254 | | - "prefer-rest-params": [ |
255 | | - "error" |
256 | | - ], |
257 | | - "prefer-spread": [ |
258 | | - "error" |
259 | | - ], |
260 | | - "rest-spread-spacing": [ |
261 | | - "error", |
262 | | - "never" |
263 | | - ], |
264 | | - "template-curly-spacing": [ |
265 | | - "error", |
266 | | - "never" |
267 | | - ] |
| 147 | + "no-useless-computed-key": ["error"], |
| 148 | + "no-useless-rename": ["error"], |
| 149 | + "no-var": ["error"], |
| 150 | + "object-shorthand": ["error", "always"], |
| 151 | + "prefer-arrow-callback": ["error"], |
| 152 | + "prefer-const": ["error"], |
| 153 | + "prefer-numeric-literals": ["error"], |
| 154 | + "prefer-rest-params": ["error"], |
| 155 | + "prefer-spread": ["error"], |
| 156 | + "rest-spread-spacing": ["error", "never"], |
| 157 | + "template-curly-spacing": ["error", "never"] |
268 | 158 | } |
269 | 159 | } |
0 commit comments