eslint-config-seekingalpha-base 12.1.0 → 12.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -1
- package/package.json +1 -1
- package/rules/eslint-plugin-unicorn/index.js +265 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -28,6 +28,9 @@ export default {
|
|
|
28
28
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-assert.md
|
|
29
29
|
'unicorn/consistent-assert': 'error',
|
|
30
30
|
|
|
31
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-boolean-name.md
|
|
32
|
+
'unicorn/consistent-boolean-name': 'off',
|
|
33
|
+
|
|
31
34
|
// prefer @typescript-eslint/member-ordering
|
|
32
35
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-class-member-order.md
|
|
33
36
|
'unicorn/consistent-class-member-order': 'off',
|
|
@@ -35,6 +38,9 @@ export default {
|
|
|
35
38
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-compound-words.md
|
|
36
39
|
'unicorn/consistent-compound-words': 'off',
|
|
37
40
|
|
|
41
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-conditional-object-spread.md
|
|
42
|
+
'unicorn/consistent-conditional-object-spread': ['error', 'logical'],
|
|
43
|
+
|
|
38
44
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-date-clone.md
|
|
39
45
|
'unicorn/consistent-date-clone': 'error',
|
|
40
46
|
|
|
@@ -66,9 +72,18 @@ export default {
|
|
|
66
72
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-template-literal-escape.md
|
|
67
73
|
'unicorn/consistent-template-literal-escape': 'error',
|
|
68
74
|
|
|
75
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-tuple-labels.md
|
|
76
|
+
'unicorn/consistent-tuple-labels': 'error',
|
|
77
|
+
|
|
69
78
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/custom-error-definition.md
|
|
70
79
|
'unicorn/custom-error-definition': 'error',
|
|
71
80
|
|
|
81
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/default-export-style.md
|
|
82
|
+
'unicorn/default-export-style': [
|
|
83
|
+
'error',
|
|
84
|
+
{ classes: 'separate', functions: 'separate' },
|
|
85
|
+
],
|
|
86
|
+
|
|
72
87
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-dom-node-dataset.md
|
|
73
88
|
'unicorn/dom-node-dataset': 'error',
|
|
74
89
|
|
|
@@ -108,9 +123,15 @@ export default {
|
|
|
108
123
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/isolated-functions.md
|
|
109
124
|
'unicorn/isolated-functions': 'off',
|
|
110
125
|
|
|
126
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/logical-assignment-operators.md
|
|
127
|
+
'unicorn/logical-assignment-operators': 'error',
|
|
128
|
+
|
|
111
129
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/max-nested-calls.md
|
|
112
130
|
'unicorn/max-nested-calls': 'off',
|
|
113
131
|
|
|
132
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/name-replacements.md
|
|
133
|
+
'unicorn/name-replacements': 'off',
|
|
134
|
+
|
|
114
135
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/new-for-builtins.md
|
|
115
136
|
'unicorn/new-for-builtins': 'error',
|
|
116
137
|
|
|
@@ -120,6 +141,9 @@ export default {
|
|
|
120
141
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-accessor-recursion.md
|
|
121
142
|
'unicorn/no-accessor-recursion': 'error',
|
|
122
143
|
|
|
144
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-accidental-bitwise-operator.md
|
|
145
|
+
'unicorn/no-accidental-bitwise-operator': 'error',
|
|
146
|
+
|
|
123
147
|
/*
|
|
124
148
|
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-anonymous-default-export.md
|
|
125
149
|
* Duplicates import/no-anonymous-default-export
|
|
@@ -129,6 +153,9 @@ export default {
|
|
|
129
153
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-array-callback-reference.md
|
|
130
154
|
'unicorn/no-array-callback-reference': 'error',
|
|
131
155
|
|
|
156
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-concat-in-loop.md
|
|
157
|
+
'unicorn/no-array-concat-in-loop': 'error',
|
|
158
|
+
|
|
132
159
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-fill-with-reference-type.md
|
|
133
160
|
'unicorn/no-array-fill-with-reference-type': 'error',
|
|
134
161
|
|
|
@@ -138,6 +165,9 @@ export default {
|
|
|
138
165
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-from-fill.md
|
|
139
166
|
'unicorn/no-array-from-fill': 'error',
|
|
140
167
|
|
|
168
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-front-mutation.md
|
|
169
|
+
'unicorn/no-array-front-mutation': 'off',
|
|
170
|
+
|
|
141
171
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-method-this-argument.md
|
|
142
172
|
'unicorn/no-array-method-this-argument': 'error',
|
|
143
173
|
|
|
@@ -150,9 +180,18 @@ export default {
|
|
|
150
180
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-sort.md
|
|
151
181
|
'unicorn/no-array-sort': 'error',
|
|
152
182
|
|
|
183
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-sort-for-min-max.md
|
|
184
|
+
'unicorn/no-array-sort-for-min-max': 'error',
|
|
185
|
+
|
|
186
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-splice.md
|
|
187
|
+
'unicorn/no-array-splice': 'error',
|
|
188
|
+
|
|
153
189
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-asterisk-prefix-in-documentation-comments.md
|
|
154
190
|
'unicorn/no-asterisk-prefix-in-documentation-comments': 'error',
|
|
155
191
|
|
|
192
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-async-promise-finally.md
|
|
193
|
+
'unicorn/no-async-promise-finally': 'error',
|
|
194
|
+
|
|
156
195
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-expression-member.md
|
|
157
196
|
'unicorn/no-await-expression-member': 'error',
|
|
158
197
|
|
|
@@ -162,12 +201,21 @@ export default {
|
|
|
162
201
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-blob-to-file.md
|
|
163
202
|
'unicorn/no-blob-to-file': 'error',
|
|
164
203
|
|
|
204
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-boolean-sort-comparator.md
|
|
205
|
+
'unicorn/no-boolean-sort-comparator': 'error',
|
|
206
|
+
|
|
165
207
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-break-in-nested-loop.md
|
|
166
208
|
'unicorn/no-break-in-nested-loop': 'error',
|
|
167
209
|
|
|
168
210
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-canvas-to-image.md
|
|
169
211
|
'unicorn/no-canvas-to-image': 'error',
|
|
170
212
|
|
|
213
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-chained-comparison.md
|
|
214
|
+
'unicorn/no-chained-comparison': 'error',
|
|
215
|
+
|
|
216
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-collection-bracket-access.md
|
|
217
|
+
'unicorn/no-collection-bracket-access': 'error',
|
|
218
|
+
|
|
171
219
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-computed-property-existence-check.md
|
|
172
220
|
'unicorn/no-computed-property-existence-check': 'off',
|
|
173
221
|
|
|
@@ -180,12 +228,24 @@ export default {
|
|
|
180
228
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-console-spaces.md
|
|
181
229
|
'unicorn/no-console-spaces': 'error',
|
|
182
230
|
|
|
231
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-constant-zero-expression.md
|
|
232
|
+
'unicorn/no-constant-zero-expression': 'error',
|
|
233
|
+
|
|
183
234
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-declarations-before-early-exit.md
|
|
184
235
|
'unicorn/no-declarations-before-early-exit': 'error',
|
|
185
236
|
|
|
186
237
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-document-cookie.md
|
|
187
238
|
'unicorn/no-document-cookie': 'error',
|
|
188
239
|
|
|
240
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-double-comparison.md
|
|
241
|
+
'unicorn/no-double-comparison': 'error',
|
|
242
|
+
|
|
243
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-duplicate-if-branches.md
|
|
244
|
+
'unicorn/no-duplicate-if-branches': 'error',
|
|
245
|
+
|
|
246
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-duplicate-logical-operands.md
|
|
247
|
+
'unicorn/no-duplicate-logical-operands': 'error',
|
|
248
|
+
|
|
189
249
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-duplicate-loops.md
|
|
190
250
|
'unicorn/no-duplicate-loops': 'error',
|
|
191
251
|
|
|
@@ -213,6 +273,9 @@ export default {
|
|
|
213
273
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-immediate-mutation.md
|
|
214
274
|
'unicorn/no-immediate-mutation': 'error',
|
|
215
275
|
|
|
276
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-impossible-length-comparison.md
|
|
277
|
+
'unicorn/no-impossible-length-comparison': 'error',
|
|
278
|
+
|
|
216
279
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-incorrect-query-selector.md
|
|
217
280
|
'unicorn/no-incorrect-query-selector': 'error',
|
|
218
281
|
|
|
@@ -226,6 +289,12 @@ export default {
|
|
|
226
289
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-instanceof-builtins.md
|
|
227
290
|
'unicorn/no-instanceof-builtins': 'error',
|
|
228
291
|
|
|
292
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-argument-count.md
|
|
293
|
+
'unicorn/no-invalid-argument-count': 'error',
|
|
294
|
+
|
|
295
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-character-comparison.md
|
|
296
|
+
'unicorn/no-invalid-character-comparison': 'error',
|
|
297
|
+
|
|
229
298
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-fetch-options.md
|
|
230
299
|
'unicorn/no-invalid-fetch-options': 'error',
|
|
231
300
|
|
|
@@ -235,6 +304,9 @@ export default {
|
|
|
235
304
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-remove-event-listener.md
|
|
236
305
|
'unicorn/no-invalid-remove-event-listener': 'error',
|
|
237
306
|
|
|
307
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-well-known-symbol-methods.md
|
|
308
|
+
'unicorn/no-invalid-well-known-symbol-methods': 'error',
|
|
309
|
+
|
|
238
310
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-keyword-prefix.md
|
|
239
311
|
'unicorn/no-keyword-prefix': [
|
|
240
312
|
'error',
|
|
@@ -247,9 +319,15 @@ export default {
|
|
|
247
319
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-late-current-target-access.md
|
|
248
320
|
'unicorn/no-late-current-target-access': 'error',
|
|
249
321
|
|
|
322
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-late-event-control.md
|
|
323
|
+
'unicorn/no-late-event-control': 'error',
|
|
324
|
+
|
|
250
325
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-lonely-if.md
|
|
251
326
|
'unicorn/no-lonely-if': 'error',
|
|
252
327
|
|
|
328
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-loop-iterable-mutation.md
|
|
329
|
+
'unicorn/no-loop-iterable-mutation': 'error',
|
|
330
|
+
|
|
253
331
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-magic-array-flat-depth.md
|
|
254
332
|
'unicorn/no-magic-array-flat-depth': 'error',
|
|
255
333
|
|
|
@@ -259,6 +337,16 @@ export default {
|
|
|
259
337
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-mismatched-map-key.md
|
|
260
338
|
'unicorn/no-mismatched-map-key': 'error',
|
|
261
339
|
|
|
340
|
+
// oxlint-disable-next-line @cspell/spellchecker
|
|
341
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-misrefactored-assignment.md
|
|
342
|
+
'unicorn/no-misrefactored-assignment': 'error',
|
|
343
|
+
|
|
344
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-missing-local-resource.md
|
|
345
|
+
'unicorn/no-missing-local-resource': 'off',
|
|
346
|
+
|
|
347
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-multiple-promise-resolver-calls.md
|
|
348
|
+
'unicorn/no-multiple-promise-resolver-calls': 'error',
|
|
349
|
+
|
|
262
350
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-named-default.md
|
|
263
351
|
'unicorn/no-named-default': 'error',
|
|
264
352
|
|
|
@@ -290,6 +378,12 @@ export default {
|
|
|
290
378
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-new-buffer.md
|
|
291
379
|
'unicorn/no-new-buffer': 'error',
|
|
292
380
|
|
|
381
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-non-function-verb-prefix.md
|
|
382
|
+
'unicorn/no-non-function-verb-prefix': 'off',
|
|
383
|
+
|
|
384
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-nonstandard-builtin-properties.md
|
|
385
|
+
'unicorn/no-nonstandard-builtin-properties': 'error',
|
|
386
|
+
|
|
293
387
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-null.md
|
|
294
388
|
'unicorn/no-null': 'off',
|
|
295
389
|
|
|
@@ -311,6 +405,13 @@ export default {
|
|
|
311
405
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-return-array-push.md
|
|
312
406
|
'unicorn/no-return-array-push': 'error',
|
|
313
407
|
|
|
408
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-selector-as-dom-name.md
|
|
409
|
+
'unicorn/no-selector-as-dom-name': 'error',
|
|
410
|
+
|
|
411
|
+
// handled by stylelint
|
|
412
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-shorthand-property-overrides.md
|
|
413
|
+
'unicorn/no-shorthand-property-overrides': 'off',
|
|
414
|
+
|
|
314
415
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-single-promise-in-promise-methods.md
|
|
315
416
|
'unicorn/no-single-promise-in-promise-methods': 'error',
|
|
316
417
|
|
|
@@ -329,12 +430,22 @@ export default {
|
|
|
329
430
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-this-outside-of-class.md
|
|
330
431
|
'unicorn/no-this-outside-of-class': 'off',
|
|
331
432
|
|
|
433
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-top-level-assignment-in-function.md
|
|
434
|
+
'unicorn/no-top-level-assignment-in-function': 'off',
|
|
435
|
+
|
|
332
436
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-top-level-side-effects.md
|
|
333
437
|
'unicorn/no-top-level-side-effects': 'error',
|
|
334
438
|
|
|
439
|
+
// handled by stylelint
|
|
440
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-transition-all.md
|
|
441
|
+
'unicorn/no-transition-all': 'off',
|
|
442
|
+
|
|
335
443
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-typeof-undefined.md
|
|
336
444
|
'unicorn/no-typeof-undefined': 'error',
|
|
337
445
|
|
|
446
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-uncalled-method.md
|
|
447
|
+
'unicorn/no-uncalled-method': 'error',
|
|
448
|
+
|
|
338
449
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-undeclared-class-members.md
|
|
339
450
|
'unicorn/no-undeclared-class-members': 'error',
|
|
340
451
|
|
|
@@ -347,6 +458,12 @@ export default {
|
|
|
347
458
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-await.md
|
|
348
459
|
'unicorn/no-unnecessary-await': 'error',
|
|
349
460
|
|
|
461
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-boolean-comparison.md
|
|
462
|
+
'unicorn/no-unnecessary-boolean-comparison': 'error',
|
|
463
|
+
|
|
464
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-fetch-options.md
|
|
465
|
+
'unicorn/no-unnecessary-fetch-options': 'error',
|
|
466
|
+
|
|
350
467
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-global-this.md
|
|
351
468
|
'unicorn/no-unnecessary-global-this': 'error',
|
|
352
469
|
|
|
@@ -362,9 +479,15 @@ export default {
|
|
|
362
479
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-splice.md
|
|
363
480
|
'unicorn/no-unnecessary-splice': 'error',
|
|
364
481
|
|
|
482
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-string-trim.md
|
|
483
|
+
'unicorn/no-unnecessary-string-trim': 'error',
|
|
484
|
+
|
|
365
485
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-unreadable-array-destructuring.md
|
|
366
486
|
'unicorn/no-unreadable-array-destructuring': 'error',
|
|
367
487
|
|
|
488
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-for-of-expression.md
|
|
489
|
+
'unicorn/no-unreadable-for-of-expression': 'error',
|
|
490
|
+
|
|
368
491
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-iife.md
|
|
369
492
|
'unicorn/no-unreadable-iife': 'error',
|
|
370
493
|
|
|
@@ -381,6 +504,9 @@ export default {
|
|
|
381
504
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unsafe-dom-html.md
|
|
382
505
|
'unicorn/no-unsafe-dom-html': 'off',
|
|
383
506
|
|
|
507
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unsafe-promise-all-settled-values.md
|
|
508
|
+
'unicorn/no-unsafe-promise-all-settled-values': 'error',
|
|
509
|
+
|
|
384
510
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unsafe-property-key.md
|
|
385
511
|
'unicorn/no-unsafe-property-key': 'off',
|
|
386
512
|
|
|
@@ -396,12 +522,25 @@ export default {
|
|
|
396
522
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-boolean-cast.md
|
|
397
523
|
'unicorn/no-useless-boolean-cast': 'error',
|
|
398
524
|
|
|
525
|
+
// conflict with translation String()
|
|
526
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-coercion.md
|
|
527
|
+
'unicorn/no-useless-coercion': 'off',
|
|
528
|
+
|
|
399
529
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-collection-argument.md
|
|
400
530
|
'unicorn/no-useless-collection-argument': 'error',
|
|
401
531
|
|
|
532
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-compound-assignment.md
|
|
533
|
+
'unicorn/no-useless-compound-assignment': 'error',
|
|
534
|
+
|
|
402
535
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-concat.md
|
|
403
536
|
'unicorn/no-useless-concat': 'error',
|
|
404
537
|
|
|
538
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-continue.md
|
|
539
|
+
'unicorn/no-useless-continue': 'error',
|
|
540
|
+
|
|
541
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-delete-check.md
|
|
542
|
+
'unicorn/no-useless-delete-check': 'error',
|
|
543
|
+
|
|
405
544
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-else.md
|
|
406
545
|
'unicorn/no-useless-else': 'error',
|
|
407
546
|
|
|
@@ -417,9 +556,18 @@ export default {
|
|
|
417
556
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-length-check.md
|
|
418
557
|
'unicorn/no-useless-length-check': 'error',
|
|
419
558
|
|
|
559
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-logical-operand.md
|
|
560
|
+
'unicorn/no-useless-logical-operand': 'error',
|
|
561
|
+
|
|
562
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-override.md
|
|
563
|
+
'unicorn/no-useless-override': 'error',
|
|
564
|
+
|
|
420
565
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-promise-resolve-reject.md
|
|
421
566
|
'unicorn/no-useless-promise-resolve-reject': 'error',
|
|
422
567
|
|
|
568
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-re-export.md
|
|
569
|
+
'unicorn/no-useless-re-export': 'error',
|
|
570
|
+
|
|
423
571
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-recursion.md
|
|
424
572
|
'unicorn/no-useless-recursion': 'error',
|
|
425
573
|
|
|
@@ -435,6 +583,9 @@ export default {
|
|
|
435
583
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-useless-undefined.md
|
|
436
584
|
'unicorn/no-useless-undefined': 'error',
|
|
437
585
|
|
|
586
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-xor-as-exponentiation.md
|
|
587
|
+
'unicorn/no-xor-as-exponentiation': 'error',
|
|
588
|
+
|
|
438
589
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-zero-fractions.md
|
|
439
590
|
'unicorn/no-zero-fractions': 'error',
|
|
440
591
|
|
|
@@ -447,12 +598,24 @@ export default {
|
|
|
447
598
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/numeric-separators-style.md
|
|
448
599
|
'unicorn/numeric-separators-style': 'off',
|
|
449
600
|
|
|
601
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/operator-assignment.md
|
|
602
|
+
'unicorn/operator-assignment': ['error', 'never'],
|
|
603
|
+
|
|
604
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-abort-signal-any.md
|
|
605
|
+
'unicorn/prefer-abort-signal-any': 'error',
|
|
606
|
+
|
|
607
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-abort-signal-timeout.md
|
|
608
|
+
'unicorn/prefer-abort-signal-timeout': 'error',
|
|
609
|
+
|
|
450
610
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-add-event-listener.md
|
|
451
611
|
'unicorn/prefer-add-event-listener': 'error',
|
|
452
612
|
|
|
453
613
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-add-event-listener-options.md
|
|
454
614
|
'unicorn/prefer-add-event-listener-options': 'error',
|
|
455
615
|
|
|
616
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-aggregate-error.md
|
|
617
|
+
'unicorn/prefer-aggregate-error': 'error',
|
|
618
|
+
|
|
456
619
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-array-find.md
|
|
457
620
|
'unicorn/prefer-array-find': 'error',
|
|
458
621
|
|
|
@@ -467,15 +630,27 @@ export default {
|
|
|
467
630
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-array-flat-map.md
|
|
468
631
|
'unicorn/prefer-array-flat-map': 'error',
|
|
469
632
|
|
|
633
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-from-async.md
|
|
634
|
+
'unicorn/prefer-array-from-async': 'error',
|
|
635
|
+
|
|
470
636
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-from-map.md
|
|
471
637
|
'unicorn/prefer-array-from-map': 'error',
|
|
472
638
|
|
|
639
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-from-range.md
|
|
640
|
+
'unicorn/prefer-array-from-range': 'error',
|
|
641
|
+
|
|
473
642
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-array-index-of.md
|
|
474
643
|
'unicorn/prefer-array-index-of': 'error',
|
|
475
644
|
|
|
645
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-iterable-methods.md
|
|
646
|
+
'unicorn/prefer-array-iterable-methods': 'error',
|
|
647
|
+
|
|
476
648
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-last-methods.md
|
|
477
649
|
'unicorn/prefer-array-last-methods': 'error',
|
|
478
650
|
|
|
651
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-slice.md
|
|
652
|
+
'unicorn/prefer-array-slice': 'error',
|
|
653
|
+
|
|
479
654
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-array-some.md
|
|
480
655
|
'unicorn/prefer-array-some': 'error',
|
|
481
656
|
|
|
@@ -491,6 +666,12 @@ export default {
|
|
|
491
666
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-blob-reading-methods.md
|
|
492
667
|
'unicorn/prefer-blob-reading-methods': 'error',
|
|
493
668
|
|
|
669
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-block-statement-over-iife.md
|
|
670
|
+
'unicorn/prefer-block-statement-over-iife': 'error',
|
|
671
|
+
|
|
672
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-boolean-return.md
|
|
673
|
+
'unicorn/prefer-boolean-return': 'error',
|
|
674
|
+
|
|
494
675
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-class-fields.md
|
|
495
676
|
'unicorn/prefer-class-fields': 'error',
|
|
496
677
|
|
|
@@ -500,6 +681,9 @@ export default {
|
|
|
500
681
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-code-point.md
|
|
501
682
|
'unicorn/prefer-code-point': 'error',
|
|
502
683
|
|
|
684
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-continue.md
|
|
685
|
+
'unicorn/prefer-continue': 'off',
|
|
686
|
+
|
|
503
687
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-date-now.md
|
|
504
688
|
'unicorn/prefer-date-now': 'error',
|
|
505
689
|
|
|
@@ -523,18 +707,36 @@ export default {
|
|
|
523
707
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-dom-node-remove.md
|
|
524
708
|
'unicorn/prefer-dom-node-remove': 'error',
|
|
525
709
|
|
|
710
|
+
// low browser support
|
|
711
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-replace-children.md
|
|
712
|
+
'unicorn/prefer-dom-node-replace-children': 'off',
|
|
713
|
+
|
|
526
714
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-dom-node-text-content.md
|
|
527
715
|
'unicorn/prefer-dom-node-text-content': 'error',
|
|
528
716
|
|
|
529
717
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-early-return.md
|
|
530
718
|
'unicorn/prefer-early-return': 'off',
|
|
531
719
|
|
|
720
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-else-if.md
|
|
721
|
+
'unicorn/prefer-else-if': 'off',
|
|
722
|
+
|
|
723
|
+
// low browser support
|
|
724
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-error-is-error.md
|
|
725
|
+
'unicorn/prefer-error-is-error': 'off',
|
|
726
|
+
|
|
532
727
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-event-target.md
|
|
533
728
|
'unicorn/prefer-event-target': 'error',
|
|
534
729
|
|
|
730
|
+
// handled by stylelint
|
|
731
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-explicit-viewport-units.md
|
|
732
|
+
'unicorn/prefer-explicit-viewport-units': 'off',
|
|
733
|
+
|
|
535
734
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-export-from.md
|
|
536
735
|
'unicorn/prefer-export-from': 'error',
|
|
537
736
|
|
|
737
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-flat-math-min-max.md
|
|
738
|
+
'unicorn/prefer-flat-math-min-max': 'error',
|
|
739
|
+
|
|
538
740
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-get-or-insert-computed.md
|
|
539
741
|
'unicorn/prefer-get-or-insert-computed': 'error',
|
|
540
742
|
|
|
@@ -544,6 +746,15 @@ export default {
|
|
|
544
746
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-global-this.md
|
|
545
747
|
'unicorn/prefer-global-this': 'off',
|
|
546
748
|
|
|
749
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-group-by.md
|
|
750
|
+
'unicorn/prefer-group-by': 'error',
|
|
751
|
+
|
|
752
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-has-check.md
|
|
753
|
+
'unicorn/prefer-has-check': 'error',
|
|
754
|
+
|
|
755
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-hoisting-branch-code.md
|
|
756
|
+
'unicorn/prefer-hoisting-branch-code': 'error',
|
|
757
|
+
|
|
547
758
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-https.md
|
|
548
759
|
'unicorn/prefer-https': 'error',
|
|
549
760
|
|
|
@@ -565,6 +776,10 @@ export default {
|
|
|
565
776
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-iterator-concat.md
|
|
566
777
|
'unicorn/prefer-iterator-concat': 'off',
|
|
567
778
|
|
|
779
|
+
// not yet supported by TS
|
|
780
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-iterator-helpers.md
|
|
781
|
+
'unicorn/prefer-iterator-helpers': 'off',
|
|
782
|
+
|
|
568
783
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-iterator-to-array.md
|
|
569
784
|
'unicorn/prefer-iterator-to-array': 'off',
|
|
570
785
|
|
|
@@ -583,9 +798,15 @@ export default {
|
|
|
583
798
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-logical-operator-over-ternary.md
|
|
584
799
|
'unicorn/prefer-logical-operator-over-ternary': 'error',
|
|
585
800
|
|
|
801
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-map-from-entries.md
|
|
802
|
+
'unicorn/prefer-map-from-entries': 'error',
|
|
803
|
+
|
|
586
804
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-abs.md
|
|
587
805
|
'unicorn/prefer-math-abs': 'error',
|
|
588
806
|
|
|
807
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-constants.md
|
|
808
|
+
'unicorn/prefer-math-constants': 'error',
|
|
809
|
+
|
|
589
810
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-min-max.md
|
|
590
811
|
'unicorn/prefer-math-min-max': 'error',
|
|
591
812
|
|
|
@@ -635,6 +856,9 @@ export default {
|
|
|
635
856
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-iterable-methods.md
|
|
636
857
|
'unicorn/prefer-object-iterable-methods': 'error',
|
|
637
858
|
|
|
859
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-observer-apis.md
|
|
860
|
+
'unicorn/prefer-observer-apis': 'error',
|
|
861
|
+
|
|
638
862
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-optional-catch-binding.md
|
|
639
863
|
'unicorn/prefer-optional-catch-binding': 'error',
|
|
640
864
|
|
|
@@ -644,6 +868,13 @@ export default {
|
|
|
644
868
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-private-class-fields.md
|
|
645
869
|
'unicorn/prefer-private-class-fields': 'error',
|
|
646
870
|
|
|
871
|
+
// enable. Need to wait for support
|
|
872
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-promise-try.md
|
|
873
|
+
'unicorn/prefer-promise-try': 'off',
|
|
874
|
+
|
|
875
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-promise-with-resolvers.md
|
|
876
|
+
'unicorn/prefer-promise-with-resolvers': 'error',
|
|
877
|
+
|
|
647
878
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-prototype-methods.md
|
|
648
879
|
'unicorn/prefer-prototype-methods': 'error',
|
|
649
880
|
|
|
@@ -656,6 +887,9 @@ export default {
|
|
|
656
887
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-reflect-apply.md
|
|
657
888
|
'unicorn/prefer-reflect-apply': 'off',
|
|
658
889
|
|
|
890
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-regexp-escape.md
|
|
891
|
+
'unicorn/prefer-regexp-escape': 'error',
|
|
892
|
+
|
|
659
893
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-regexp-test.md
|
|
660
894
|
'unicorn/prefer-regexp-test': 'error',
|
|
661
895
|
|
|
@@ -668,6 +902,10 @@ export default {
|
|
|
668
902
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-set-has.md
|
|
669
903
|
'unicorn/prefer-set-has': 'error',
|
|
670
904
|
|
|
905
|
+
// enable. Need to wait for support
|
|
906
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-methods.md
|
|
907
|
+
'unicorn/prefer-set-methods': 'off',
|
|
908
|
+
|
|
671
909
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-size.md
|
|
672
910
|
'unicorn/prefer-set-size': 'error',
|
|
673
911
|
|
|
@@ -682,6 +920,9 @@ export default {
|
|
|
682
920
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-simple-sort-comparator.md
|
|
683
921
|
'unicorn/prefer-simple-sort-comparator': 'off',
|
|
684
922
|
|
|
923
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-simplified-conditions.md
|
|
924
|
+
'unicorn/prefer-simplified-conditions': 'error',
|
|
925
|
+
|
|
685
926
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-single-array-predicate.md
|
|
686
927
|
'unicorn/prefer-single-array-predicate': 'error',
|
|
687
928
|
|
|
@@ -691,6 +932,9 @@ export default {
|
|
|
691
932
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-single-object-destructuring.md
|
|
692
933
|
'unicorn/prefer-single-object-destructuring': 'error',
|
|
693
934
|
|
|
935
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-single-replace.md
|
|
936
|
+
'unicorn/prefer-single-replace': 'error',
|
|
937
|
+
|
|
694
938
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-smaller-scope.md
|
|
695
939
|
'unicorn/prefer-smaller-scope': 'error',
|
|
696
940
|
|
|
@@ -737,6 +981,13 @@ export default {
|
|
|
737
981
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-ternary.md
|
|
738
982
|
'unicorn/prefer-ternary': 'error',
|
|
739
983
|
|
|
984
|
+
// handled by oxlint promise plugin
|
|
985
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-then-catch.md
|
|
986
|
+
'unicorn/prefer-then-catch': 'off',
|
|
987
|
+
|
|
988
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-toggle-attribute.md
|
|
989
|
+
'unicorn/prefer-toggle-attribute': 'error',
|
|
990
|
+
|
|
740
991
|
/*
|
|
741
992
|
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-top-level-await.md
|
|
742
993
|
* low browser support
|
|
@@ -752,14 +1003,23 @@ export default {
|
|
|
752
1003
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-uint8array-base64.md
|
|
753
1004
|
'unicorn/prefer-uint8array-base64': 'off',
|
|
754
1005
|
|
|
1006
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-unary-minus.md
|
|
1007
|
+
'unicorn/prefer-unary-minus': 'error',
|
|
1008
|
+
|
|
755
1009
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-unicode-code-point-escapes.md
|
|
756
1010
|
'unicorn/prefer-unicode-code-point-escapes': 'error',
|
|
757
1011
|
|
|
1012
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-url-can-parse.md
|
|
1013
|
+
'unicorn/prefer-url-can-parse': 'error',
|
|
1014
|
+
|
|
758
1015
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-url-href.md
|
|
759
1016
|
'unicorn/prefer-url-href': 'error',
|
|
760
1017
|
|
|
761
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
762
|
-
'unicorn/
|
|
1018
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-url-search-parameters.md
|
|
1019
|
+
'unicorn/prefer-url-search-parameters': 'error',
|
|
1020
|
+
|
|
1021
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-while-loop-condition.md
|
|
1022
|
+
'unicorn/prefer-while-loop-condition': 'error',
|
|
763
1023
|
|
|
764
1024
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/relative-url-style.md
|
|
765
1025
|
'unicorn/relative-url-style': ['error', 'never'],
|
|
@@ -774,6 +1034,9 @@ export default {
|
|
|
774
1034
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-css-escape.md
|
|
775
1035
|
'unicorn/require-css-escape': 'off',
|
|
776
1036
|
|
|
1037
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-frontmatter-fields.md
|
|
1038
|
+
'unicorn/require-frontmatter-fields': 'off',
|
|
1039
|
+
|
|
777
1040
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-module-attributes.md
|
|
778
1041
|
'unicorn/require-module-attributes': 'error',
|
|
779
1042
|
|