|
3 | 3 | "env": { |
4 | 4 | "node": true |
5 | 5 | }, |
6 | | - "parserOptions": { |
7 | | - "sourceType": "module" |
8 | | - }, |
9 | 6 | "extends": "eslint:recommended", |
10 | 7 | "rules": { |
11 | | - "array-bracket-spacing": ["error", "never"], |
| 8 | + "array-bracket-spacing": [ |
| 9 | + "error", |
| 10 | + "never" |
| 11 | + ], |
12 | 12 | "array-callback-return": "error", |
| 13 | + "arrow-body-style": [ |
| 14 | + "error", |
| 15 | + "as-needed" |
| 16 | + ], |
| 17 | + "arrow-parens": [ |
| 18 | + "error", |
| 19 | + "always" |
| 20 | + ], |
| 21 | + "arrow-spacing": "error", |
13 | 22 | "block-scoped-var": "error", |
14 | 23 | "block-spacing": "error", |
15 | 24 | "brace-style": [ |
|
35 | 44 | "error", |
36 | 45 | "last" |
37 | 46 | ], |
38 | | - "computed-property-spacing": ["error", "never"], |
39 | | - "consistent-return": "error", |
40 | | - "consistent-this": [ |
| 47 | + "computed-property-spacing": [ |
41 | 48 | "error", |
42 | | - "this" |
| 49 | + "never" |
43 | 50 | ], |
| 51 | + "consistent-return": "error", |
| 52 | + "consistent-this": "off", |
44 | 53 | "curly": "error", |
45 | 54 | "default-case": "error", |
46 | 55 | "dot-notation": "error", |
47 | 56 | "eol-last": "error", |
48 | 57 | "eqeqeq": "error", |
49 | 58 | "func-call-spacing": "error", |
50 | | - "func-names": "off", |
| 59 | + "func-names": [ |
| 60 | + "error", |
| 61 | + "never" |
| 62 | + ], |
51 | 63 | "func-style": [ |
52 | 64 | "error", |
53 | 65 | "declaration" |
|
59 | 71 | "error", |
60 | 72 | 4, |
61 | 73 | { |
| 74 | + "MemberExpression": "off", |
62 | 75 | "SwitchCase": 1 |
63 | 76 | } |
64 | 77 | ], |
|
87 | 100 | "max": 1 |
88 | 101 | } |
89 | 102 | ], |
90 | | - "multiline-ternary": "off", |
91 | | - "new-cap": "error", |
| 103 | + "multiline-ternary": [ |
| 104 | + "off", |
| 105 | + "always-multiline" |
| 106 | + ], |
| 107 | + "new-cap": [ |
| 108 | + "error", |
| 109 | + { |
| 110 | + "properties": false |
| 111 | + } |
| 112 | + ], |
92 | 113 | "newline-after-var": [ |
93 | 114 | "error", |
94 | 115 | "always" |
|
117 | 138 | "no-eval": "error", |
118 | 139 | "no-extra-bind": "error", |
119 | 140 | "no-extra-label": "error", |
120 | | - "no-extra-parens": "error", |
| 141 | + "no-extra-parens": [ |
| 142 | + "error", |
| 143 | + "all", |
| 144 | + { |
| 145 | + "nestedBinaryExpressions": false |
| 146 | + } |
| 147 | + ], |
121 | 148 | "no-floating-decimal": "error", |
122 | 149 | "no-global-assign": "error", |
123 | 150 | "no-implicit-coercion": "error", |
|
153 | 180 | "no-new-object": "error", |
154 | 181 | "no-octal": "error", |
155 | 182 | "no-param-reassign": [ |
156 | | - "error", |
| 183 | + "off", |
157 | 184 | { |
158 | 185 | "props": false |
159 | 186 | } |
160 | 187 | ], |
161 | 188 | "no-path-concat": "error", |
| 189 | + "no-prototype-builtins": "error", |
162 | 190 | "no-return-assign": "error", |
163 | 191 | "no-self-compare": "error", |
164 | 192 | "no-sequences": "error", |
|
221 | 249 | "single" |
222 | 250 | ], |
223 | 251 | "radix": "error", |
| 252 | + "rest-spread-spacing": [ |
| 253 | + "error", |
| 254 | + "never" |
| 255 | + ], |
224 | 256 | "semi": [ |
225 | 257 | "error", |
226 | 258 | "always" |
|
231 | 263 | "error", |
232 | 264 | "always" |
233 | 265 | ], |
234 | | - "spaced-comment": [ |
235 | | - "off", |
236 | | - "always" |
| 266 | + "space-before-function-paren": [ |
| 267 | + "error", |
| 268 | + "never" |
237 | 269 | ], |
| 270 | + "spaced-comment": "off", |
238 | 271 | "space-infix-ops": "error", |
239 | 272 | "space-in-parens": [ |
240 | 273 | "error", |
241 | 274 | "never" |
242 | 275 | ], |
243 | 276 | "space-unary-ops": "error", |
244 | 277 | "strict": "error", |
| 278 | + "symbol-description": "error", |
| 279 | + "template-curly-spacing": "error", |
245 | 280 | "unicode-bom": [ |
246 | 281 | "error", |
247 | 282 | "never" |
|
0 commit comments