|
9 | 9 | },
|
10 | 10 | "rules": {
|
11 | 11 | // Possible errors
|
12 |
| - "for-direction": "error", |
13 |
| - "getter-return": "error", |
14 |
| - "no-await-in-loop": "error", |
15 |
| - "no-compare-neg-zero": "error", |
| 12 | + "comma-dangle": ["error", "never"], |
16 | 13 | "no-cond-assign": ["error", "except-parens"],
|
17 | 14 | "no-console": "error",
|
18 |
| - "no-constant-condition": ["error", { "checkLoops": false }], |
| 15 | + "no-constant-condition": "off", |
19 | 16 | "no-control-regex": "off",
|
20 | 17 | "no-debugger": "error",
|
21 | 18 | "no-dupe-args": "error",
|
|
31 | 28 | "no-inner-declarations": "off",
|
32 | 29 | "no-invalid-regexp": "error",
|
33 | 30 | "no-irregular-whitespace": "error",
|
| 31 | + "no-negated-in-lhs": "error", |
34 | 32 | "no-obj-calls": "error",
|
35 |
| - "no-prototype-builtins": "error", |
36 | 33 | "no-regex-spaces": "error",
|
37 | 34 | "no-sparse-arrays": "error",
|
38 |
| - "no-template-curly-in-string": "error", |
39 | 35 | "no-unexpected-multiline": "error",
|
40 | 36 | "no-unreachable": "error",
|
41 | 37 | "no-unsafe-finally": "off",
|
42 |
| - "no-unsafe-negation": "error", |
43 | 38 | "use-isnan": "error",
|
44 | 39 | "valid-jsdoc": "off",
|
45 | 40 | "valid-typeof": "error",
|
|
48 | 43 | "accessor-pairs": "error",
|
49 | 44 | "array-callback-return": "error",
|
50 | 45 | "block-scoped-var": "off",
|
51 |
| - "class-methods-use-this": "off", |
52 | 46 | "complexity": "off",
|
53 | 47 | "consistent-return": "error",
|
54 | 48 | "curly": ["error", "all"],
|
|
62 | 56 | "no-case-declarations": "error",
|
63 | 57 | "no-div-regex": "off",
|
64 | 58 | "no-else-return": "error",
|
65 |
| - "no-empty-function": "off", |
| 59 | + "no-empty-function": "error", |
66 | 60 | "no-empty-pattern": "error",
|
67 | 61 | "no-eq-null": "error",
|
68 | 62 | "no-eval": "error",
|
|
71 | 65 | "no-extra-label": "error",
|
72 | 66 | "no-fallthrough": "error",
|
73 | 67 | "no-floating-decimal": "error",
|
74 |
| - "no-global-assign": "error", |
75 | 68 | "no-implicit-coercion": "error",
|
76 | 69 | "no-implicit-globals": "error",
|
77 |
| - "no-implied-eval": "off", |
78 |
| - "no-invalid-this": "off", // meh |
| 70 | + "no-implied-eval": "error", |
| 71 | + "no-invalid-this": "error", |
79 | 72 | "no-iterator": "error",
|
80 | 73 | "no-labels": ["error", { "allowLoop": true }],
|
81 | 74 | "no-lone-blocks": "error",
|
82 | 75 | "no-loop-func": "off",
|
83 | 76 | "no-magic-numbers": "off",
|
84 | 77 | "no-multi-spaces": "error",
|
85 | 78 | "no-multi-str": "error",
|
| 79 | + "no-native-reassign": "error", |
86 | 80 | "no-new": "error",
|
87 | 81 | "no-new-func": "error",
|
88 | 82 | "no-new-wrappers": "error",
|
|
92 | 86 | "no-process-env": "error",
|
93 | 87 | "no-proto": "error",
|
94 | 88 | "no-redeclare": "error",
|
95 |
| - "no-restricted-properties": "off", |
96 | 89 | "no-return-assign": ["error", "except-parens"],
|
97 |
| - "no-return-await": "error", |
98 | 90 | "no-script-url": "off",
|
99 | 91 | "no-self-assign": "error",
|
100 | 92 | "no-self-compare": "error",
|
|
106 | 98 | "no-useless-call": "error",
|
107 | 99 | "no-useless-concat": "error",
|
108 | 100 | "no-useless-escape": "error",
|
109 |
| - "no-useless-return": "error", |
110 | 101 | "no-void": "error",
|
111 | 102 | "no-warning-comments": "off",
|
112 | 103 | "no-with": "error",
|
113 |
| - "prefer-promise-reject-errors": "error", |
114 | 104 | "radix": ["error", "as-needed"],
|
115 |
| - "require-await": "error", |
116 | 105 | "vars-on-top": "off",
|
117 | 106 | "wrap-iife": ["error", "outside"],
|
118 | 107 | "yoda": ["error", "never"],
|
|
138 | 127 | "callback-return": "off",
|
139 | 128 | "global-require": "error",
|
140 | 129 | "handle-callback-err": "error",
|
141 |
| - "no-buffer-constructor": "error", |
142 | 130 | "no-mixed-requires": ["error", true],
|
143 | 131 | "no-new-require": "error",
|
144 | 132 | "no-path-concat": "error",
|
145 | 133 | "no-process-exit": "error",
|
| 134 | + "no-restricted-imports": "off", |
146 | 135 | "no-restricted-modules": "off",
|
147 | 136 | "no-sync": "off",
|
148 | 137 |
|
149 | 138 | // Stylistic Issues
|
150 |
| - "array-bracket-newline": ["error", { "multiline": true }], |
151 | 139 | "array-bracket-spacing": ["error", "never"],
|
152 |
| - "array-element-newline": ["off"], |
153 | 140 | "block-spacing": ["error", "always"],
|
154 | 141 | "brace-style": ["error", "1tbs", { "allowSingleLine": false }],
|
155 | 142 | "camelcase": ["error", { "properties": "always" }],
|
156 |
| - "capitalized-comments": "off", |
157 |
| - "comma-dangle": ["error", "never"], |
158 | 143 | "comma-spacing": ["error", { "before": false, "after": true }],
|
159 | 144 | "comma-style": ["error", "last"],
|
160 | 145 | "computed-property-spacing": ["error", "never"],
|
161 | 146 | "consistent-this": "off",
|
162 | 147 | "eol-last": "error",
|
163 |
| - "func-call-spacing": ["error", "never"], |
164 |
| - "func-name-matching": ["error"], |
165 | 148 | "func-names": "off",
|
166 | 149 | "func-style": ["error", "declaration"],
|
167 |
| - "function-paren-newline": ["error", "multiline"], |
168 | 150 | "id-blacklist": "off",
|
169 | 151 | "id-length": "off",
|
170 | 152 | "id-match": "off",
|
171 |
| - "indent": ["error", 2, { "SwitchCase": 1, "CallExpression": {"arguments": "first"}, "FunctionExpression": {"parameters": "first"}, "ignoredNodes": ["ConditionalExpression"] }], |
| 153 | + "indent": ["error", 2, { "SwitchCase": 1 }], |
172 | 154 | "jsx-quotes": "off",
|
173 | 155 | "key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
|
174 | 156 | "keyword-spacing": ["error", { "before": true, "after": true }],
|
175 |
| - "line-comment-position": "off", |
176 | 157 | "linebreak-style": ["error", "unix"],
|
177 | 158 | "lines-around-comment": "off",
|
178 | 159 | "max-depth": "off",
|
179 | 160 | "max-len": ["error", 120, { "ignoreUrls": true }],
|
180 |
| - "max-lines": "off", |
181 | 161 | "max-nested-callbacks": "off",
|
182 | 162 | "max-params": "off",
|
183 | 163 | "max-statements": "off",
|
184 | 164 | "max-statements-per-line": ["error", { "max": 1 }],
|
185 |
| - "multiline-ternary": ["error", "always-multiline"], |
186 |
| - "new-cap": ["error", { "capIsNewExceptions": ["ByteString", "USVString", "DOMString"] }], |
| 165 | + "new-cap": ["error", { "capIsNewExceptions": ["USVString"] }], |
187 | 166 | "new-parens": "error",
|
| 167 | + "newline-after-var": "off", |
| 168 | + "newline-before-return": "off", |
188 | 169 | "newline-per-chained-call": "off",
|
189 | 170 | "no-array-constructor": "error",
|
190 | 171 | "no-bitwise": "off",
|
191 | 172 | "no-continue": "off",
|
192 | 173 | "no-inline-comments": "off",
|
193 | 174 | "no-lonely-if": "error",
|
194 |
| - "no-mixed-operators": [ |
195 |
| - "error", |
196 |
| - { |
197 |
| - "groups": [ |
198 |
| - ["&", "|", "^", "~", "<<", ">>", ">>>"], |
199 |
| - ["==", "!=", "===", "!==", ">", ">=", "<", "<="], |
200 |
| - ["&&", "||"], |
201 |
| - ["in", "instanceof"] |
202 |
| - ] |
203 |
| - } |
204 |
| - ], |
205 | 175 | "no-mixed-spaces-and-tabs": "error",
|
206 |
| - "no-multi-assign": "off", |
207 | 176 | "no-multiple-empty-lines": "error",
|
208 | 177 | "no-negated-condition": "off",
|
209 | 178 | "no-nested-ternary": "error",
|
210 | 179 | "no-new-object": "error",
|
211 | 180 | "no-plusplus": "off",
|
212 | 181 | "no-restricted-syntax": "off",
|
213 |
| - "no-tabs": "error", |
| 182 | + "no-spaced-func": "error", |
214 | 183 | "no-ternary": "off",
|
215 | 184 | "no-trailing-spaces": "error",
|
216 | 185 | "no-underscore-dangle": "off",
|
217 | 186 | "no-unneeded-ternary": "error",
|
218 | 187 | "no-whitespace-before-property": "error",
|
219 |
| - "nonblock-statement-body-position": "error", |
220 |
| - "object-curly-newline": ["error", { "consistent": true }], |
221 | 188 | "object-curly-spacing": ["error", "always"],
|
222 | 189 | "object-property-newline": "off",
|
223 | 190 | "one-var": ["error", "never"],
|
224 | 191 | "one-var-declaration-per-line": ["error", "initializations"],
|
225 | 192 | "operator-assignment": ["error", "always"],
|
226 | 193 | "operator-linebreak": ["error", "after"],
|
227 | 194 | "padded-blocks": ["error", "never"],
|
228 |
| - "padding-line-between-statements": "off", |
229 | 195 | "quote-props": ["error", "as-needed"],
|
230 | 196 | "quotes": ["error", "double", { "avoidEscape": true, "allowTemplateLiterals": true }],
|
231 | 197 | "require-jsdoc": "off",
|
232 | 198 | "semi": ["error", "always"],
|
233 | 199 | "semi-spacing": "error",
|
234 |
| - "semi-style": "error", |
235 |
| - "sort-keys": "off", |
| 200 | + "sort-imports": "off", |
236 | 201 | "sort-vars": "off",
|
237 | 202 | "space-before-blocks": ["error", "always"],
|
238 | 203 | "space-before-function-paren": ["error", { "anonymous": "always", "named": "never" }],
|
239 | 204 | "space-in-parens": ["error", "never"],
|
240 | 205 | "space-infix-ops": "error",
|
241 | 206 | "space-unary-ops": ["error", { "words": true, "nonwords": false }],
|
242 | 207 | "spaced-comment": ["error", "always", { "markers": ["///"] }],
|
243 |
| - "switch-colon-spacing": "error", |
244 |
| - "template-tag-spacing": "error", |
245 |
| - "unicode-bom": "error", |
246 | 208 | "wrap-regex": "off",
|
247 | 209 |
|
248 | 210 | // ECMAScript 6
|
|
257 | 219 | "no-dupe-class-members": "error",
|
258 | 220 | "no-duplicate-imports": "error",
|
259 | 221 | "no-new-symbol": "error",
|
260 |
| - "no-restricted-imports": "off", |
261 | 222 | "no-this-before-super": "error",
|
262 | 223 | "no-useless-computed-key": "error",
|
263 | 224 | "no-useless-constructor": "error",
|
264 |
| - "no-useless-rename": "error", |
265 | 225 | "no-var": "error",
|
266 | 226 | "object-shorthand": "error",
|
267 | 227 | "prefer-arrow-callback": "error",
|
268 | 228 | "prefer-const": ["error", { "ignoreReadBeforeAssign": true }],
|
269 |
| - "prefer-destructuring": ["error", { "VariableDeclarator": { "array": false, "object": true }, "AssignmentExpression": { "array": false, "object": false } }, { "enforceForRenamedProperties": false }], |
270 |
| - "prefer-numeric-literals": "error", |
| 229 | + "prefer-reflect": "off", |
271 | 230 | "prefer-rest-params": "off",
|
272 |
| - "prefer-spread": "error", |
| 231 | + "prefer-spread": "off", // TODO with new Node versions |
273 | 232 | "prefer-template": "off",
|
274 | 233 | "require-yield": "error",
|
275 |
| - "rest-spread-spacing": "error", |
276 |
| - "sort-imports": "off", |
277 |
| - "symbol-description": "error", |
278 | 234 | "template-curly-spacing": ["error", "never"],
|
279 | 235 | "yield-star-spacing": ["error", "after"]
|
280 | 236 | }
|
|
0 commit comments