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