eslint-config-seekingalpha-base 12.1.0 → 12.3.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 +9 -1
- package/README.md +1 -1
- package/package.json +3 -3
- package/rules/eslint-plugin-unicorn/index.js +264 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 12.3.0 - 2026-07-25
|
|
4
|
+
|
|
5
|
+
- [deps] update `eslint` to version `10.8.0`
|
|
6
|
+
|
|
7
|
+
## 12.2.0 - 2026-07-22
|
|
8
|
+
|
|
9
|
+
- [new] unicorn rules
|
|
10
|
+
|
|
3
11
|
## 12.1.0 - 2026-07-21
|
|
4
12
|
|
|
5
|
-
- [new]
|
|
13
|
+
- [new] unicorn rules
|
|
6
14
|
|
|
7
15
|
## 12.0.2 - 2026-07-19
|
|
8
16
|
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ This package includes the shareable ESLint config used by [SeekingAlpha](https:/
|
|
|
6
6
|
|
|
7
7
|
Install ESLint and all [Peer Dependencies](https://nodejs.org/en/blog/npm/peer-dependencies/):
|
|
8
8
|
|
|
9
|
-
npm install eslint@10.
|
|
9
|
+
npm install eslint@10.8.0 eslint-plugin-import-x@4.17.1 eslint-plugin-promise@7.3.0 eslint-plugin-unicorn@65.0.1 --save-dev
|
|
10
10
|
|
|
11
11
|
Install SeekingAlpha shareable ESLint:
|
|
12
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-seekingalpha-base",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.3.0",
|
|
4
4
|
"description": "SeekingAlpha's sharable base ESLint config",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"node": ">= 24"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"eslint": "10.
|
|
51
|
+
"eslint": "10.8.0",
|
|
52
52
|
"eslint-plugin-import-x": "4.17.1",
|
|
53
53
|
"eslint-plugin-promise": "7.3.0",
|
|
54
54
|
"eslint-plugin-unicorn": "72.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"eslint": "10.
|
|
57
|
+
"eslint": "10.8.0",
|
|
58
58
|
"eslint-plugin-import-x": "4.17.1",
|
|
59
59
|
"eslint-plugin-promise": "7.3.0",
|
|
60
60
|
"eslint-plugin-unicorn": "72.0.0"
|
|
@@ -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,15 @@ 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
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-misrefactored-assignment.md
|
|
341
|
+
'unicorn/no-misrefactored-assignment': 'error',
|
|
342
|
+
|
|
343
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-missing-local-resource.md
|
|
344
|
+
'unicorn/no-missing-local-resource': 'off',
|
|
345
|
+
|
|
346
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-multiple-promise-resolver-calls.md
|
|
347
|
+
'unicorn/no-multiple-promise-resolver-calls': 'error',
|
|
348
|
+
|
|
262
349
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-named-default.md
|
|
263
350
|
'unicorn/no-named-default': 'error',
|
|
264
351
|
|
|
@@ -290,6 +377,12 @@ export default {
|
|
|
290
377
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-new-buffer.md
|
|
291
378
|
'unicorn/no-new-buffer': 'error',
|
|
292
379
|
|
|
380
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-non-function-verb-prefix.md
|
|
381
|
+
'unicorn/no-non-function-verb-prefix': 'off',
|
|
382
|
+
|
|
383
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-nonstandard-builtin-properties.md
|
|
384
|
+
'unicorn/no-nonstandard-builtin-properties': 'error',
|
|
385
|
+
|
|
293
386
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-null.md
|
|
294
387
|
'unicorn/no-null': 'off',
|
|
295
388
|
|
|
@@ -311,6 +404,13 @@ export default {
|
|
|
311
404
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-return-array-push.md
|
|
312
405
|
'unicorn/no-return-array-push': 'error',
|
|
313
406
|
|
|
407
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-selector-as-dom-name.md
|
|
408
|
+
'unicorn/no-selector-as-dom-name': 'error',
|
|
409
|
+
|
|
410
|
+
// handled by stylelint
|
|
411
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-shorthand-property-overrides.md
|
|
412
|
+
'unicorn/no-shorthand-property-overrides': 'off',
|
|
413
|
+
|
|
314
414
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-single-promise-in-promise-methods.md
|
|
315
415
|
'unicorn/no-single-promise-in-promise-methods': 'error',
|
|
316
416
|
|
|
@@ -329,12 +429,22 @@ export default {
|
|
|
329
429
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-this-outside-of-class.md
|
|
330
430
|
'unicorn/no-this-outside-of-class': 'off',
|
|
331
431
|
|
|
432
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-top-level-assignment-in-function.md
|
|
433
|
+
'unicorn/no-top-level-assignment-in-function': 'off',
|
|
434
|
+
|
|
332
435
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-top-level-side-effects.md
|
|
333
436
|
'unicorn/no-top-level-side-effects': 'error',
|
|
334
437
|
|
|
438
|
+
// handled by stylelint
|
|
439
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-transition-all.md
|
|
440
|
+
'unicorn/no-transition-all': 'off',
|
|
441
|
+
|
|
335
442
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-typeof-undefined.md
|
|
336
443
|
'unicorn/no-typeof-undefined': 'error',
|
|
337
444
|
|
|
445
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-uncalled-method.md
|
|
446
|
+
'unicorn/no-uncalled-method': 'error',
|
|
447
|
+
|
|
338
448
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-undeclared-class-members.md
|
|
339
449
|
'unicorn/no-undeclared-class-members': 'error',
|
|
340
450
|
|
|
@@ -347,6 +457,12 @@ export default {
|
|
|
347
457
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-await.md
|
|
348
458
|
'unicorn/no-unnecessary-await': 'error',
|
|
349
459
|
|
|
460
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-boolean-comparison.md
|
|
461
|
+
'unicorn/no-unnecessary-boolean-comparison': 'error',
|
|
462
|
+
|
|
463
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-fetch-options.md
|
|
464
|
+
'unicorn/no-unnecessary-fetch-options': 'error',
|
|
465
|
+
|
|
350
466
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-global-this.md
|
|
351
467
|
'unicorn/no-unnecessary-global-this': 'error',
|
|
352
468
|
|
|
@@ -362,9 +478,15 @@ export default {
|
|
|
362
478
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-splice.md
|
|
363
479
|
'unicorn/no-unnecessary-splice': 'error',
|
|
364
480
|
|
|
481
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-string-trim.md
|
|
482
|
+
'unicorn/no-unnecessary-string-trim': 'error',
|
|
483
|
+
|
|
365
484
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-unreadable-array-destructuring.md
|
|
366
485
|
'unicorn/no-unreadable-array-destructuring': 'error',
|
|
367
486
|
|
|
487
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-for-of-expression.md
|
|
488
|
+
'unicorn/no-unreadable-for-of-expression': 'error',
|
|
489
|
+
|
|
368
490
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-iife.md
|
|
369
491
|
'unicorn/no-unreadable-iife': 'error',
|
|
370
492
|
|
|
@@ -381,6 +503,9 @@ export default {
|
|
|
381
503
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unsafe-dom-html.md
|
|
382
504
|
'unicorn/no-unsafe-dom-html': 'off',
|
|
383
505
|
|
|
506
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unsafe-promise-all-settled-values.md
|
|
507
|
+
'unicorn/no-unsafe-promise-all-settled-values': 'error',
|
|
508
|
+
|
|
384
509
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unsafe-property-key.md
|
|
385
510
|
'unicorn/no-unsafe-property-key': 'off',
|
|
386
511
|
|
|
@@ -396,12 +521,25 @@ export default {
|
|
|
396
521
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-boolean-cast.md
|
|
397
522
|
'unicorn/no-useless-boolean-cast': 'error',
|
|
398
523
|
|
|
524
|
+
// conflict with translation String()
|
|
525
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-coercion.md
|
|
526
|
+
'unicorn/no-useless-coercion': 'off',
|
|
527
|
+
|
|
399
528
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-collection-argument.md
|
|
400
529
|
'unicorn/no-useless-collection-argument': 'error',
|
|
401
530
|
|
|
531
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-compound-assignment.md
|
|
532
|
+
'unicorn/no-useless-compound-assignment': 'error',
|
|
533
|
+
|
|
402
534
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-concat.md
|
|
403
535
|
'unicorn/no-useless-concat': 'error',
|
|
404
536
|
|
|
537
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-continue.md
|
|
538
|
+
'unicorn/no-useless-continue': 'error',
|
|
539
|
+
|
|
540
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-delete-check.md
|
|
541
|
+
'unicorn/no-useless-delete-check': 'error',
|
|
542
|
+
|
|
405
543
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-else.md
|
|
406
544
|
'unicorn/no-useless-else': 'error',
|
|
407
545
|
|
|
@@ -417,9 +555,18 @@ export default {
|
|
|
417
555
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-length-check.md
|
|
418
556
|
'unicorn/no-useless-length-check': 'error',
|
|
419
557
|
|
|
558
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-logical-operand.md
|
|
559
|
+
'unicorn/no-useless-logical-operand': 'error',
|
|
560
|
+
|
|
561
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-override.md
|
|
562
|
+
'unicorn/no-useless-override': 'error',
|
|
563
|
+
|
|
420
564
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-promise-resolve-reject.md
|
|
421
565
|
'unicorn/no-useless-promise-resolve-reject': 'error',
|
|
422
566
|
|
|
567
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-re-export.md
|
|
568
|
+
'unicorn/no-useless-re-export': 'error',
|
|
569
|
+
|
|
423
570
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-recursion.md
|
|
424
571
|
'unicorn/no-useless-recursion': 'error',
|
|
425
572
|
|
|
@@ -435,6 +582,9 @@ export default {
|
|
|
435
582
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-useless-undefined.md
|
|
436
583
|
'unicorn/no-useless-undefined': 'error',
|
|
437
584
|
|
|
585
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-xor-as-exponentiation.md
|
|
586
|
+
'unicorn/no-xor-as-exponentiation': 'error',
|
|
587
|
+
|
|
438
588
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-zero-fractions.md
|
|
439
589
|
'unicorn/no-zero-fractions': 'error',
|
|
440
590
|
|
|
@@ -447,12 +597,24 @@ export default {
|
|
|
447
597
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/numeric-separators-style.md
|
|
448
598
|
'unicorn/numeric-separators-style': 'off',
|
|
449
599
|
|
|
600
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/operator-assignment.md
|
|
601
|
+
'unicorn/operator-assignment': ['error', 'never'],
|
|
602
|
+
|
|
603
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-abort-signal-any.md
|
|
604
|
+
'unicorn/prefer-abort-signal-any': 'error',
|
|
605
|
+
|
|
606
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-abort-signal-timeout.md
|
|
607
|
+
'unicorn/prefer-abort-signal-timeout': 'error',
|
|
608
|
+
|
|
450
609
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-add-event-listener.md
|
|
451
610
|
'unicorn/prefer-add-event-listener': 'error',
|
|
452
611
|
|
|
453
612
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-add-event-listener-options.md
|
|
454
613
|
'unicorn/prefer-add-event-listener-options': 'error',
|
|
455
614
|
|
|
615
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-aggregate-error.md
|
|
616
|
+
'unicorn/prefer-aggregate-error': 'error',
|
|
617
|
+
|
|
456
618
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-array-find.md
|
|
457
619
|
'unicorn/prefer-array-find': 'error',
|
|
458
620
|
|
|
@@ -467,15 +629,27 @@ export default {
|
|
|
467
629
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-array-flat-map.md
|
|
468
630
|
'unicorn/prefer-array-flat-map': 'error',
|
|
469
631
|
|
|
632
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-from-async.md
|
|
633
|
+
'unicorn/prefer-array-from-async': 'error',
|
|
634
|
+
|
|
470
635
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-from-map.md
|
|
471
636
|
'unicorn/prefer-array-from-map': 'error',
|
|
472
637
|
|
|
638
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-from-range.md
|
|
639
|
+
'unicorn/prefer-array-from-range': 'error',
|
|
640
|
+
|
|
473
641
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-array-index-of.md
|
|
474
642
|
'unicorn/prefer-array-index-of': 'error',
|
|
475
643
|
|
|
644
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-iterable-methods.md
|
|
645
|
+
'unicorn/prefer-array-iterable-methods': 'error',
|
|
646
|
+
|
|
476
647
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-last-methods.md
|
|
477
648
|
'unicorn/prefer-array-last-methods': 'error',
|
|
478
649
|
|
|
650
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-slice.md
|
|
651
|
+
'unicorn/prefer-array-slice': 'error',
|
|
652
|
+
|
|
479
653
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-array-some.md
|
|
480
654
|
'unicorn/prefer-array-some': 'error',
|
|
481
655
|
|
|
@@ -491,6 +665,12 @@ export default {
|
|
|
491
665
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-blob-reading-methods.md
|
|
492
666
|
'unicorn/prefer-blob-reading-methods': 'error',
|
|
493
667
|
|
|
668
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-block-statement-over-iife.md
|
|
669
|
+
'unicorn/prefer-block-statement-over-iife': 'error',
|
|
670
|
+
|
|
671
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-boolean-return.md
|
|
672
|
+
'unicorn/prefer-boolean-return': 'error',
|
|
673
|
+
|
|
494
674
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-class-fields.md
|
|
495
675
|
'unicorn/prefer-class-fields': 'error',
|
|
496
676
|
|
|
@@ -500,6 +680,9 @@ export default {
|
|
|
500
680
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-code-point.md
|
|
501
681
|
'unicorn/prefer-code-point': 'error',
|
|
502
682
|
|
|
683
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-continue.md
|
|
684
|
+
'unicorn/prefer-continue': 'off',
|
|
685
|
+
|
|
503
686
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-date-now.md
|
|
504
687
|
'unicorn/prefer-date-now': 'error',
|
|
505
688
|
|
|
@@ -523,18 +706,36 @@ export default {
|
|
|
523
706
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-dom-node-remove.md
|
|
524
707
|
'unicorn/prefer-dom-node-remove': 'error',
|
|
525
708
|
|
|
709
|
+
// low browser support
|
|
710
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-replace-children.md
|
|
711
|
+
'unicorn/prefer-dom-node-replace-children': 'off',
|
|
712
|
+
|
|
526
713
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-dom-node-text-content.md
|
|
527
714
|
'unicorn/prefer-dom-node-text-content': 'error',
|
|
528
715
|
|
|
529
716
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-early-return.md
|
|
530
717
|
'unicorn/prefer-early-return': 'off',
|
|
531
718
|
|
|
719
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-else-if.md
|
|
720
|
+
'unicorn/prefer-else-if': 'off',
|
|
721
|
+
|
|
722
|
+
// low browser support
|
|
723
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-error-is-error.md
|
|
724
|
+
'unicorn/prefer-error-is-error': 'off',
|
|
725
|
+
|
|
532
726
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-event-target.md
|
|
533
727
|
'unicorn/prefer-event-target': 'error',
|
|
534
728
|
|
|
729
|
+
// handled by stylelint
|
|
730
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-explicit-viewport-units.md
|
|
731
|
+
'unicorn/prefer-explicit-viewport-units': 'off',
|
|
732
|
+
|
|
535
733
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-export-from.md
|
|
536
734
|
'unicorn/prefer-export-from': 'error',
|
|
537
735
|
|
|
736
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-flat-math-min-max.md
|
|
737
|
+
'unicorn/prefer-flat-math-min-max': 'error',
|
|
738
|
+
|
|
538
739
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-get-or-insert-computed.md
|
|
539
740
|
'unicorn/prefer-get-or-insert-computed': 'error',
|
|
540
741
|
|
|
@@ -544,6 +745,15 @@ export default {
|
|
|
544
745
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-global-this.md
|
|
545
746
|
'unicorn/prefer-global-this': 'off',
|
|
546
747
|
|
|
748
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-group-by.md
|
|
749
|
+
'unicorn/prefer-group-by': 'error',
|
|
750
|
+
|
|
751
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-has-check.md
|
|
752
|
+
'unicorn/prefer-has-check': 'error',
|
|
753
|
+
|
|
754
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-hoisting-branch-code.md
|
|
755
|
+
'unicorn/prefer-hoisting-branch-code': 'error',
|
|
756
|
+
|
|
547
757
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-https.md
|
|
548
758
|
'unicorn/prefer-https': 'error',
|
|
549
759
|
|
|
@@ -565,6 +775,10 @@ export default {
|
|
|
565
775
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-iterator-concat.md
|
|
566
776
|
'unicorn/prefer-iterator-concat': 'off',
|
|
567
777
|
|
|
778
|
+
// not yet supported by TS
|
|
779
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-iterator-helpers.md
|
|
780
|
+
'unicorn/prefer-iterator-helpers': 'off',
|
|
781
|
+
|
|
568
782
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-iterator-to-array.md
|
|
569
783
|
'unicorn/prefer-iterator-to-array': 'off',
|
|
570
784
|
|
|
@@ -583,9 +797,15 @@ export default {
|
|
|
583
797
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-logical-operator-over-ternary.md
|
|
584
798
|
'unicorn/prefer-logical-operator-over-ternary': 'error',
|
|
585
799
|
|
|
800
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-map-from-entries.md
|
|
801
|
+
'unicorn/prefer-map-from-entries': 'error',
|
|
802
|
+
|
|
586
803
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-abs.md
|
|
587
804
|
'unicorn/prefer-math-abs': 'error',
|
|
588
805
|
|
|
806
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-constants.md
|
|
807
|
+
'unicorn/prefer-math-constants': 'error',
|
|
808
|
+
|
|
589
809
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-min-max.md
|
|
590
810
|
'unicorn/prefer-math-min-max': 'error',
|
|
591
811
|
|
|
@@ -635,6 +855,9 @@ export default {
|
|
|
635
855
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-iterable-methods.md
|
|
636
856
|
'unicorn/prefer-object-iterable-methods': 'error',
|
|
637
857
|
|
|
858
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-observer-apis.md
|
|
859
|
+
'unicorn/prefer-observer-apis': 'error',
|
|
860
|
+
|
|
638
861
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-optional-catch-binding.md
|
|
639
862
|
'unicorn/prefer-optional-catch-binding': 'error',
|
|
640
863
|
|
|
@@ -644,6 +867,13 @@ export default {
|
|
|
644
867
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-private-class-fields.md
|
|
645
868
|
'unicorn/prefer-private-class-fields': 'error',
|
|
646
869
|
|
|
870
|
+
// enable. Need to wait for support
|
|
871
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-promise-try.md
|
|
872
|
+
'unicorn/prefer-promise-try': 'off',
|
|
873
|
+
|
|
874
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-promise-with-resolvers.md
|
|
875
|
+
'unicorn/prefer-promise-with-resolvers': 'error',
|
|
876
|
+
|
|
647
877
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-prototype-methods.md
|
|
648
878
|
'unicorn/prefer-prototype-methods': 'error',
|
|
649
879
|
|
|
@@ -656,6 +886,9 @@ export default {
|
|
|
656
886
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-reflect-apply.md
|
|
657
887
|
'unicorn/prefer-reflect-apply': 'off',
|
|
658
888
|
|
|
889
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-regexp-escape.md
|
|
890
|
+
'unicorn/prefer-regexp-escape': 'error',
|
|
891
|
+
|
|
659
892
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-regexp-test.md
|
|
660
893
|
'unicorn/prefer-regexp-test': 'error',
|
|
661
894
|
|
|
@@ -668,6 +901,10 @@ export default {
|
|
|
668
901
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-set-has.md
|
|
669
902
|
'unicorn/prefer-set-has': 'error',
|
|
670
903
|
|
|
904
|
+
// enable. Need to wait for support
|
|
905
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-methods.md
|
|
906
|
+
'unicorn/prefer-set-methods': 'off',
|
|
907
|
+
|
|
671
908
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-size.md
|
|
672
909
|
'unicorn/prefer-set-size': 'error',
|
|
673
910
|
|
|
@@ -682,6 +919,9 @@ export default {
|
|
|
682
919
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-simple-sort-comparator.md
|
|
683
920
|
'unicorn/prefer-simple-sort-comparator': 'off',
|
|
684
921
|
|
|
922
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-simplified-conditions.md
|
|
923
|
+
'unicorn/prefer-simplified-conditions': 'error',
|
|
924
|
+
|
|
685
925
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-single-array-predicate.md
|
|
686
926
|
'unicorn/prefer-single-array-predicate': 'error',
|
|
687
927
|
|
|
@@ -691,6 +931,9 @@ export default {
|
|
|
691
931
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-single-object-destructuring.md
|
|
692
932
|
'unicorn/prefer-single-object-destructuring': 'error',
|
|
693
933
|
|
|
934
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-single-replace.md
|
|
935
|
+
'unicorn/prefer-single-replace': 'error',
|
|
936
|
+
|
|
694
937
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-smaller-scope.md
|
|
695
938
|
'unicorn/prefer-smaller-scope': 'error',
|
|
696
939
|
|
|
@@ -737,6 +980,13 @@ export default {
|
|
|
737
980
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-ternary.md
|
|
738
981
|
'unicorn/prefer-ternary': 'error',
|
|
739
982
|
|
|
983
|
+
// handled by oxlint promise plugin
|
|
984
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-then-catch.md
|
|
985
|
+
'unicorn/prefer-then-catch': 'off',
|
|
986
|
+
|
|
987
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-toggle-attribute.md
|
|
988
|
+
'unicorn/prefer-toggle-attribute': 'error',
|
|
989
|
+
|
|
740
990
|
/*
|
|
741
991
|
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-top-level-await.md
|
|
742
992
|
* low browser support
|
|
@@ -752,14 +1002,23 @@ export default {
|
|
|
752
1002
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-uint8array-base64.md
|
|
753
1003
|
'unicorn/prefer-uint8array-base64': 'off',
|
|
754
1004
|
|
|
1005
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-unary-minus.md
|
|
1006
|
+
'unicorn/prefer-unary-minus': 'error',
|
|
1007
|
+
|
|
755
1008
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-unicode-code-point-escapes.md
|
|
756
1009
|
'unicorn/prefer-unicode-code-point-escapes': 'error',
|
|
757
1010
|
|
|
1011
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-url-can-parse.md
|
|
1012
|
+
'unicorn/prefer-url-can-parse': 'error',
|
|
1013
|
+
|
|
758
1014
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-url-href.md
|
|
759
1015
|
'unicorn/prefer-url-href': 'error',
|
|
760
1016
|
|
|
761
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
762
|
-
'unicorn/
|
|
1017
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-url-search-parameters.md
|
|
1018
|
+
'unicorn/prefer-url-search-parameters': 'error',
|
|
1019
|
+
|
|
1020
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-while-loop-condition.md
|
|
1021
|
+
'unicorn/prefer-while-loop-condition': 'error',
|
|
763
1022
|
|
|
764
1023
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/relative-url-style.md
|
|
765
1024
|
'unicorn/relative-url-style': ['error', 'never'],
|
|
@@ -774,6 +1033,9 @@ export default {
|
|
|
774
1033
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-css-escape.md
|
|
775
1034
|
'unicorn/require-css-escape': 'off',
|
|
776
1035
|
|
|
1036
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-frontmatter-fields.md
|
|
1037
|
+
'unicorn/require-frontmatter-fields': 'off',
|
|
1038
|
+
|
|
777
1039
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-module-attributes.md
|
|
778
1040
|
'unicorn/require-module-attributes': 'error',
|
|
779
1041
|
|