@newsteam/eslint-config 1.2.13 → 1.2.14

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.
Files changed (40) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +11 -24
  4. package/dist/plugins/array-function.js +5 -5
  5. package/dist/plugins/css-modules.js +2 -2
  6. package/dist/plugins/destructuring.js +2 -2
  7. package/dist/plugins/eslint-comments.js +19 -19
  8. package/dist/plugins/import-newlines.js +1 -1
  9. package/dist/plugins/import-x.js +19 -19
  10. package/dist/plugins/newline-destructuring.js +1 -1
  11. package/dist/plugins/next.js +21 -21
  12. package/dist/plugins/no-unsanitized.js +2 -2
  13. package/dist/plugins/no-useless-assign.js +1 -1
  14. package/dist/plugins/node.js +31 -31
  15. package/dist/plugins/perfectionist.d.ts.map +1 -1
  16. package/dist/plugins/perfectionist.js +21 -20
  17. package/dist/plugins/promise.js +13 -13
  18. package/dist/plugins/react-19-upgrade.js +7 -7
  19. package/dist/plugins/react-compiler.js +1 -1
  20. package/dist/plugins/react-hooks.js +22 -22
  21. package/dist/plugins/react-perf.js +1 -1
  22. package/dist/plugins/react-refresh.js +1 -1
  23. package/dist/plugins/react.js +69 -69
  24. package/dist/plugins/security.js +13 -13
  25. package/dist/plugins/sort-react-dependency-arrays.js +1 -1
  26. package/dist/plugins/stylistic.d.ts.map +1 -1
  27. package/dist/plugins/stylistic.js +102 -88
  28. package/dist/plugins/typescript.d.ts.map +1 -1
  29. package/dist/plugins/typescript.js +164 -126
  30. package/dist/plugins/unicorn.js +127 -127
  31. package/dist/rules.js +186 -186
  32. package/dist/settings.d.ts.map +1 -1
  33. package/dist/settings.js +0 -1
  34. package/package.json +38 -44
  35. package/dist/plugins/const-case.d.ts +0 -3
  36. package/dist/plugins/const-case.d.ts.map +0 -1
  37. package/dist/plugins/const-case.js +0 -16
  38. package/dist/plugins/more.d.ts +0 -3
  39. package/dist/plugins/more.d.ts.map +0 -1
  40. package/dist/plugins/more.js +0 -101
@@ -26,16 +26,16 @@ export const unicornPlugin = [
26
26
  *
27
27
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/better-regex.md
28
28
  */
29
- "unicorn/better-regex": "error",
29
+ "unicorn/better-regex": "warn",
30
30
  /*
31
31
  * Enforce a specific parameter name in catch clauses.
32
32
  *
33
33
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/catch-error-name.md
34
34
  */
35
35
  "unicorn/catch-error-name": [
36
- "error",
36
+ "warn",
37
37
  {
38
- name: "error",
38
+ name: "warn",
39
39
  },
40
40
  ],
41
41
  /*
@@ -43,61 +43,61 @@ export const unicornPlugin = [
43
43
  *
44
44
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-assert.md
45
45
  */
46
- "unicorn/consistent-assert": "error",
46
+ "unicorn/consistent-assert": "warn",
47
47
  /*
48
48
  * Prefer passing Date directly to the constructor when cloning
49
49
  *
50
50
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-date-clone.md
51
51
  */
52
- "unicorn/consistent-date-clone": "error",
52
+ "unicorn/consistent-date-clone": "warn",
53
53
  /*
54
54
  * Use destructured variables over properties
55
55
  *
56
56
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-destructuring.md
57
57
  */
58
- "unicorn/consistent-destructuring": "error",
58
+ "unicorn/consistent-destructuring": "warn",
59
59
  /*
60
60
  * Prefer consistent types when spreading a ternary in an array literal
61
61
  *
62
62
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-empty-array-spread.md
63
63
  */
64
- "unicorn/consistent-empty-array-spread": "error",
64
+ "unicorn/consistent-empty-array-spread": "warn",
65
65
  /*
66
66
  * Enforce consistent style for element existence checks with indexOf(), lastIndexOf(), findIndex(), and findLastIndex()
67
67
  *
68
68
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-existence-index-check.md
69
69
  */
70
- "unicorn/consistent-existence-index-check": "error",
70
+ "unicorn/consistent-existence-index-check": "warn",
71
71
  /*
72
72
  * Move function definitions to the highest possible scope.
73
73
  *
74
74
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-function-scoping.md
75
75
  */
76
- "unicorn/consistent-function-scoping": "error",
76
+ "unicorn/consistent-function-scoping": "warn",
77
77
  /*
78
78
  * Enforce correct Error subclassing. (fixable)
79
79
  *
80
80
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/custom-error-definition.md
81
81
  */
82
- "unicorn/custom-error-definition": "error",
82
+ "unicorn/custom-error-definition": "warn",
83
83
  /*
84
84
  * Enforce no spaces between braces. (fixable)
85
85
  *
86
86
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/empty-brace-spaces.md
87
87
  */
88
- "unicorn/empty-brace-spaces": "error",
88
+ "unicorn/empty-brace-spaces": "warn",
89
89
  /*
90
90
  * Enforce passing a message value when throwing a built-in error.
91
91
  *
92
92
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/error-message.md
93
93
  */
94
- "unicorn/error-message": "error",
94
+ "unicorn/error-message": "warn",
95
95
  /*
96
96
  * Require escape sequences to use uppercase values. (fixable)
97
97
  *
98
98
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/escape-case.md
99
99
  */
100
- "unicorn/escape-case": "error",
100
+ "unicorn/escape-case": "warn",
101
101
  /*
102
102
  * Add expiration conditions to TODO comments
103
103
  *
@@ -109,14 +109,14 @@ export const unicornPlugin = [
109
109
  *
110
110
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/explicit-length-check.md
111
111
  */
112
- "unicorn/explicit-length-check": "error",
112
+ "unicorn/explicit-length-check": "warn",
113
113
  /*
114
114
  * Enforce a case style for filenames.
115
115
  *
116
116
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/filename-case.md
117
117
  */
118
118
  "unicorn/filename-case": [
119
- "error",
119
+ "warn",
120
120
  {
121
121
  case: "kebabCase",
122
122
  },
@@ -134,31 +134,31 @@ export const unicornPlugin = [
134
134
  *
135
135
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/new-for-builtins.md
136
136
  */
137
- "unicorn/new-for-builtins": "error",
137
+ "unicorn/new-for-builtins": "warn",
138
138
  /*
139
139
  * Enforce specifying rules to disable in eslint-disable comments.
140
140
  *
141
141
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-abusive-eslint-disable.md
142
142
  */
143
- "unicorn/no-abusive-eslint-disable": "error",
143
+ "unicorn/no-abusive-eslint-disable": "warn",
144
144
  /*
145
145
  * Disallow recursive access to this within getters and setters
146
146
  *
147
147
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-accessor-recursion.md
148
148
  */
149
- "unicorn/no-accessor-recursion": "error",
149
+ "unicorn/no-accessor-recursion": "warn",
150
150
  /*
151
151
  * Disallow anonymous functions and classes as the default export
152
152
  *
153
153
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-anonymous-default-export.md
154
154
  */
155
- "unicorn/no-anonymous-default-export": "error",
155
+ "unicorn/no-anonymous-default-export": "warn",
156
156
  /*
157
157
  * Prevent passing a function reference directly to iterator methods
158
158
  *
159
159
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-callback-reference.md
160
160
  */
161
- "unicorn/no-array-callback-reference": "error",
161
+ "unicorn/no-array-callback-reference": "warn",
162
162
  /*
163
163
  * Prefer for...of over Array#forEach(...)
164
164
  *
@@ -173,80 +173,80 @@ export const unicornPlugin = [
173
173
  *
174
174
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-method-this-argument.md
175
175
  */
176
- "unicorn/no-array-method-this-argument": "error",
176
+ "unicorn/no-array-method-this-argument": "warn",
177
177
  /*
178
178
  * Disallow Array#reduce() and Array#reduceRight()
179
179
  *
180
180
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-reduce.md
181
181
  */
182
- "unicorn/no-array-reduce": "error",
182
+ "unicorn/no-array-reduce": "warn",
183
183
  /*
184
184
  * Prefer Array#toReversed() over Array#reverse()
185
185
  *
186
186
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-reverse.md
187
187
  */
188
- "unicorn/no-array-reverse": "error",
188
+ "unicorn/no-array-reverse": "warn",
189
189
  /*
190
190
  * Prefer using Array#toSorted() over Array#sort().
191
191
  *
192
192
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-sort.md
193
193
  */
194
- "unicorn/no-array-sort": "error",
194
+ "unicorn/no-array-sort": "warn",
195
195
  /*
196
196
  * Forbid member access from await expression
197
197
  *
198
198
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-expression-member.md
199
199
  */
200
- "unicorn/no-await-expression-member": "error",
200
+ "unicorn/no-await-expression-member": "warn",
201
201
  /*
202
202
  * Disallow member access from await expression
203
203
  *
204
204
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-await-in-promise-methods.md
205
205
  */
206
- "unicorn/no-await-in-promise-methods": "error",
206
+ "unicorn/no-await-in-promise-methods": "warn",
207
207
  /*
208
208
  * Do not use leading/trailing space between console.log parameters. (fixable)
209
209
  *
210
210
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-console-spaces.md
211
211
  */
212
- "unicorn/no-console-spaces": "error",
212
+ "unicorn/no-console-spaces": "warn",
213
213
  /*
214
214
  * Do not use document.cookie directly
215
215
  *
216
216
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-document-cookie.md
217
217
  */
218
- "unicorn/no-document-cookie": "error",
218
+ "unicorn/no-document-cookie": "warn",
219
219
  /*
220
220
  * Disallow empty files
221
221
  *
222
222
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-empty-file.md
223
223
  */
224
- "unicorn/no-empty-file": "error",
224
+ "unicorn/no-empty-file": "warn",
225
225
  /*
226
226
  * Do not use a for loop that can be replaced with a for-of loop
227
227
  *
228
228
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-for-loop.md
229
229
  */
230
- "unicorn/no-for-loop": "error",
230
+ "unicorn/no-for-loop": "warn",
231
231
  /*
232
232
  * Enforce the use of unicode escapes instead of hexadecimal escapes. (fixable)
233
233
  *
234
234
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-hex-escape.md
235
235
  */
236
- "unicorn/no-hex-escape": "error",
236
+ "unicorn/no-hex-escape": "warn",
237
237
  /*
238
238
  * Disallow immediate mutation after variable assignment
239
239
  *
240
240
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-immediate-mutation.md
241
241
  */
242
- "unicorn/no-immediate-mutation": "error",
242
+ "unicorn/no-immediate-mutation": "warn",
243
243
  /*
244
244
  * Require Array.isArray() instead of instanceof Array
245
245
  *
246
246
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-instanceof-array.md
247
247
  */
248
248
  "unicorn/no-instanceof-builtins": [
249
- "error",
249
+ "warn",
250
250
  {
251
251
  strategy: "loose",
252
252
  },
@@ -256,13 +256,13 @@ export const unicornPlugin = [
256
256
  *
257
257
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-fetch-options.md
258
258
  */
259
- "unicorn/no-invalid-fetch-options": "error",
259
+ "unicorn/no-invalid-fetch-options": "warn",
260
260
  /*
261
261
  * Prevent calling EventTarget#removeEventListener() with the result of an expression
262
262
  *
263
263
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-invalid-remove-event-listener.md
264
264
  */
265
- "unicorn/no-invalid-remove-event-listener": "error",
265
+ "unicorn/no-invalid-remove-event-listener": "warn",
266
266
  /*
267
267
  * Disallow identifiers starting with new or class
268
268
  *
@@ -274,19 +274,19 @@ export const unicornPlugin = [
274
274
  *
275
275
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-lonely-if.md
276
276
  */
277
- "unicorn/no-lonely-if": "error",
277
+ "unicorn/no-lonely-if": "warn",
278
278
  /*
279
279
  * Disallow a magic number as the depth argument in Array#flat(…).
280
280
  *
281
281
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-magic-array-flat-depth.md
282
282
  */
283
- "unicorn/no-magic-array-flat-depth": "error",
283
+ "unicorn/no-magic-array-flat-depth": "warn",
284
284
  /*
285
285
  * Disallow named usage of default import and export
286
286
  *
287
287
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-named-default.md
288
288
  */
289
- "unicorn/no-named-default": "error",
289
+ "unicorn/no-named-default": "warn",
290
290
  /*
291
291
  * Disallow negated conditions
292
292
  *
@@ -296,43 +296,43 @@ export const unicornPlugin = [
296
296
  *
297
297
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negated-condition.md
298
298
  */
299
- "unicorn/no-negated-condition": "error",
299
+ "unicorn/no-negated-condition": "warn",
300
300
  /*
301
301
  * Disallow negated expression in equality check
302
302
  *
303
303
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negation-in-equality-check.md
304
304
  */
305
- "unicorn/no-negation-in-equality-check": "error",
305
+ "unicorn/no-negation-in-equality-check": "warn",
306
306
  /*
307
307
  * Disallow nested ternary expressions. (partly fixable)
308
308
  *
309
309
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-nested-ternary.md
310
310
  */
311
- "unicorn/no-nested-ternary": "error",
311
+ "unicorn/no-nested-ternary": "warn",
312
312
  /*
313
313
  * Disallow new Array()
314
314
  *
315
315
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-new-array.md
316
316
  */
317
- "unicorn/no-new-array": "error",
317
+ "unicorn/no-new-array": "warn",
318
318
  /*
319
319
  * Enforce the use of Buffer.from() and Buffer.alloc() instead of the deprecated new Buffer(). (fixable)
320
320
  *
321
321
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-new-buffer.md
322
322
  */
323
- "unicorn/no-new-buffer": "error",
323
+ "unicorn/no-new-buffer": "warn",
324
324
  /*
325
325
  * Disallow the use of the null literal, to encourage using undefined instead.
326
326
  *
327
327
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-null.md
328
328
  */
329
- "unicorn/no-null": "error",
329
+ "unicorn/no-null": "warn",
330
330
  /*
331
331
  * Disallow the use of objects as default parameters
332
332
  *
333
333
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-object-as-default-parameter.md
334
334
  */
335
- "unicorn/no-object-as-default-parameter": "error",
335
+ "unicorn/no-object-as-default-parameter": "warn",
336
336
  /*
337
337
  * Disallow process.exit().
338
338
  *
@@ -346,121 +346,121 @@ export const unicornPlugin = [
346
346
  *
347
347
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-single-promise-in-promise-methods.md
348
348
  */
349
- "unicorn/no-single-promise-in-promise-methods": "error",
349
+ "unicorn/no-single-promise-in-promise-methods": "warn",
350
350
  /*
351
351
  * Forbid classes that only have static members
352
352
  *
353
353
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-static-only-class.md
354
354
  */
355
- "unicorn/no-static-only-class": "error",
355
+ "unicorn/no-static-only-class": "warn",
356
356
  /*
357
357
  * Disallow then property
358
358
  *
359
359
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-thenable.md
360
360
  */
361
- "unicorn/no-thenable": "error",
361
+ "unicorn/no-thenable": "warn",
362
362
  /*
363
363
  * Disallow assigning this to a variable
364
364
  *
365
365
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-this-assignment.md
366
366
  */
367
- "unicorn/no-this-assignment": "error",
367
+ "unicorn/no-this-assignment": "warn",
368
368
  /*
369
369
  * Disallow comparing undefined using typeof
370
370
  *
371
371
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-typeof-undefined.md
372
372
  */
373
- "unicorn/no-typeof-undefined": "error",
373
+ "unicorn/no-typeof-undefined": "warn",
374
374
  /*
375
375
  * Disallow using 1 as the depth argument of Array#flat()
376
376
  *
377
377
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-array-flat-depth.md
378
378
  */
379
- "unicorn/no-unnecessary-array-flat-depth": "error",
379
+ "unicorn/no-unnecessary-array-flat-depth": "warn",
380
380
  /*
381
381
  * Disallow using .length or Infinity as the deleteCount or skipCount argument of Array#{splice,toSpliced}()
382
382
  *
383
383
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-array-splice-count.md
384
384
  */
385
- "unicorn/no-unnecessary-array-splice-count": "error",
385
+ "unicorn/no-unnecessary-array-splice-count": "warn",
386
386
  /*
387
387
  * Disallow awaiting non-promise values
388
388
  *
389
389
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-await.md
390
390
  */
391
- "unicorn/no-unnecessary-await": "error",
391
+ "unicorn/no-unnecessary-await": "warn",
392
392
  /*
393
393
  * Enforce the use of built-in methods instead of unnecessary polyfills
394
394
  *
395
395
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-polyfills.md
396
396
  */
397
- "unicorn/no-unnecessary-polyfills": "error",
397
+ "unicorn/no-unnecessary-polyfills": "warn",
398
398
  /*
399
399
  * Disallow using .length or Infinity as the end argument of {Array,String,TypedArray}#slice()
400
400
  *
401
401
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-slice-end.md
402
402
  */
403
- "unicorn/no-unnecessary-slice-end": "error",
403
+ "unicorn/no-unnecessary-slice-end": "warn",
404
404
  /*
405
405
  * Disallow unreadable array destructuring.
406
406
  *
407
407
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-array-destructuring.md
408
408
  */
409
- "unicorn/no-unreadable-array-destructuring": "error",
409
+ "unicorn/no-unreadable-array-destructuring": "warn",
410
410
  /*
411
411
  * Disallow unreadable IIFEs
412
412
  *
413
413
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-iife.md
414
414
  */
415
- "unicorn/no-unreadable-iife": "error",
415
+ "unicorn/no-unreadable-iife": "warn",
416
416
  /*
417
417
  * Disallow unused object properties.
418
418
  *
419
419
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unused-properties.md
420
420
  */
421
- "unicorn/no-unused-properties": "error",
421
+ "unicorn/no-unused-properties": "warn",
422
422
  /*
423
423
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
424
424
  *
425
425
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-collection-argument.md
426
426
  */
427
- "unicorn/no-useless-collection-argument": "error",
427
+ "unicorn/no-useless-collection-argument": "warn",
428
428
  /*
429
429
  * Disallow unnecessary Error.captureStackTrace(…)
430
430
  *
431
431
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-error-capture-stack-trace.md
432
432
  */
433
- "unicorn/no-useless-error-capture-stack-trace": "error",
433
+ "unicorn/no-useless-error-capture-stack-trace": "warn",
434
434
  /*
435
435
  * Forbid useless fallback when spreading in object literals
436
436
  *
437
437
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-fallback-in-spread.md
438
438
  */
439
- "unicorn/no-useless-fallback-in-spread": "error",
439
+ "unicorn/no-useless-fallback-in-spread": "warn",
440
440
  /*
441
441
  * Disallow useless array length check
442
442
  *
443
443
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-length-check.md
444
444
  */
445
- "unicorn/no-useless-length-check": "error",
445
+ "unicorn/no-useless-length-check": "warn",
446
446
  /*
447
447
  * Disallow returning/yielding Promise.resolve/reject() in async functions or promise callbacks
448
448
  *
449
449
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-promise-resolve-reject.md
450
450
  */
451
- "unicorn/no-useless-promise-resolve-reject": "error",
451
+ "unicorn/no-useless-promise-resolve-reject": "warn",
452
452
  /*
453
453
  * Disallow useless spread
454
454
  *
455
455
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-spread.md
456
456
  */
457
- "unicorn/no-useless-spread": "error",
457
+ "unicorn/no-useless-spread": "warn",
458
458
  /*
459
459
  * Disallow useless case in switch statements
460
460
  *
461
461
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-switch-case.md
462
462
  */
463
- "unicorn/no-useless-switch-case": "error",
463
+ "unicorn/no-useless-switch-case": "warn",
464
464
  /*
465
465
  * Disallow useless undefined
466
466
  *
@@ -474,55 +474,55 @@ export const unicornPlugin = [
474
474
  *
475
475
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-zero-fractions.md
476
476
  */
477
- "unicorn/no-zero-fractions": "error",
477
+ "unicorn/no-zero-fractions": "warn",
478
478
  /*
479
479
  * Enforce lowercase identifier and uppercase value for number literals. (fixable)
480
480
  *
481
481
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/number-literal-case.md
482
482
  */
483
- "unicorn/number-literal-case": "error",
483
+ "unicorn/number-literal-case": "warn",
484
484
  /*
485
485
  * Enforce the style of numeric separators by correctly grouping digits
486
486
  *
487
487
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/numeric-separators-style.md
488
488
  */
489
- "unicorn/numeric-separators-style": "error",
489
+ "unicorn/numeric-separators-style": "warn",
490
490
  /*
491
491
  * Prefer addEventListener over on-functions. (fixable)
492
492
  *
493
493
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-add-event-listener.md
494
494
  */
495
- "unicorn/prefer-add-event-listener": "error",
495
+ "unicorn/prefer-add-event-listener": "warn",
496
496
  /*
497
497
  * Prefer .find(...) over the first element from .filter(...)
498
498
  *
499
499
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-find.md
500
500
  */
501
- "unicorn/prefer-array-find": "error",
501
+ "unicorn/prefer-array-find": "warn",
502
502
  /*
503
503
  * Prefer Array#flat() over legacy techniques to flatten arrays
504
504
  *
505
505
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat.md
506
506
  */
507
- "unicorn/prefer-array-flat": "error",
507
+ "unicorn/prefer-array-flat": "warn",
508
508
  /*
509
509
  * Prefer .flatMap(...) over .map(...).flat()
510
510
  *
511
511
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-flat-map.md
512
512
  */
513
- "unicorn/prefer-array-flat-map": "error",
513
+ "unicorn/prefer-array-flat-map": "warn",
514
514
  /*
515
515
  * Prefer Array#indexOf() over Array#findIndex() when looking for the index of an item
516
516
  *
517
517
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-index-of.md
518
518
  */
519
- "unicorn/prefer-array-index-of": "error",
519
+ "unicorn/prefer-array-index-of": "warn",
520
520
  /*
521
521
  * Prefer .some(...) over .find(...).
522
522
  *
523
523
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-some.md
524
524
  */
525
- "unicorn/prefer-array-some": "error",
525
+ "unicorn/prefer-array-some": "warn",
526
526
  /*
527
527
  * Prefer .at() method for index access and String#charAt()
528
528
  *
@@ -536,67 +536,67 @@ export const unicornPlugin = [
536
536
  *
537
537
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-bigint-literals.md
538
538
  */
539
- "unicorn/prefer-bigint-literals": "error",
539
+ "unicorn/prefer-bigint-literals": "warn",
540
540
  /*
541
541
  * Prefer .at() method for index access and String#charAt()
542
542
  *
543
543
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-blob-reading-methods.md
544
544
  */
545
- "unicorn/prefer-blob-reading-methods": "error",
545
+ "unicorn/prefer-blob-reading-methods": "warn",
546
546
  /*
547
547
  * Prefer class field declarations over this assignments in constructors
548
548
  *
549
549
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-class-fields.md
550
550
  */
551
- "unicorn/prefer-class-fields": "error",
551
+ "unicorn/prefer-class-fields": "warn",
552
552
  /*
553
553
  * Prefer using Element#classList.toggle() to toggle class names
554
554
  *
555
555
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-classlist-toggle.md
556
556
  */
557
- "unicorn/prefer-classlist-toggle": "error",
557
+ "unicorn/prefer-classlist-toggle": "warn",
558
558
  /*
559
559
  * Prefer String#codePointAt(...) over String#charCodeAt(...) and String.fromCodePoint(...) over String.fromCharCode(...)
560
560
  *
561
561
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-code-point.md
562
562
  */
563
- "unicorn/prefer-code-point": "error",
563
+ "unicorn/prefer-code-point": "warn",
564
564
  /*
565
565
  * Prefer Date.now() to get the number of milliseconds since the Unix Epoch
566
566
  *
567
567
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-date-now.md
568
568
  */
569
- "unicorn/prefer-date-now": "error",
569
+ "unicorn/prefer-date-now": "warn",
570
570
  /*
571
571
  * Prefer default parameters over reassignment
572
572
  *
573
573
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-default-parameters.md
574
574
  */
575
- "unicorn/prefer-default-parameters": "error",
575
+ "unicorn/prefer-default-parameters": "warn",
576
576
  /*
577
577
  * Prefer Node#append() over Node#appendChild()
578
578
  *
579
579
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-append.md
580
580
  */
581
- "unicorn/prefer-dom-node-append": "error",
581
+ "unicorn/prefer-dom-node-append": "warn",
582
582
  /*
583
583
  * Prefer using .dataset on DOM elements over .setAttribute(...)
584
584
  *
585
585
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-dataset.md
586
586
  */
587
- "unicorn/prefer-dom-node-dataset": "error",
587
+ "unicorn/prefer-dom-node-dataset": "warn",
588
588
  /*
589
589
  * Prefer childNode.remove() over parentNode.removeChild(childNode)
590
590
  *
591
591
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-remove.md
592
592
  */
593
- "unicorn/prefer-dom-node-remove": "error",
593
+ "unicorn/prefer-dom-node-remove": "warn",
594
594
  /*
595
595
  * Prefer .textContent over .innerText
596
596
  *
597
597
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-dom-node-text-content.md
598
598
  */
599
- "unicorn/prefer-dom-node-text-content": "error",
599
+ "unicorn/prefer-dom-node-text-content": "warn",
600
600
  /*
601
601
  * While EventEmitter is only available in Node.js, EventTarget is also available in Deno and browsers.
602
602
  *
@@ -610,67 +610,67 @@ export const unicornPlugin = [
610
610
  *
611
611
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-export-from.md
612
612
  */
613
- "unicorn/prefer-export-from": "error",
613
+ "unicorn/prefer-export-from": "warn",
614
614
  /*
615
615
  * Prefer `globalThis` over `window`, `self`, and `global`.
616
616
  *
617
617
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-global-this.md
618
618
  */
619
- "unicorn/prefer-global-this": "error",
619
+ "unicorn/prefer-global-this": "warn",
620
620
  /*
621
621
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths
622
622
  *
623
623
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-import-meta-properties.md
624
624
  */
625
- "unicorn/prefer-import-meta-properties": "error",
625
+ "unicorn/prefer-import-meta-properties": "warn",
626
626
  /*
627
627
  * Prefer .includes() over .indexOf() when checking for existence or non-existence
628
628
  *
629
629
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-includes.md
630
630
  */
631
- "unicorn/prefer-includes": "error",
631
+ "unicorn/prefer-includes": "warn",
632
632
  /*
633
633
  * Prefer reading a JSON file as a buffer
634
634
  *
635
635
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-json-parse-buffer.md
636
636
  */
637
- "unicorn/prefer-json-parse-buffer": "error",
637
+ "unicorn/prefer-json-parse-buffer": "warn",
638
638
  /*
639
639
  * Prefer KeyboardEvent#key over KeyboardEvent#keyCode
640
640
  *
641
641
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-keyboard-event-key.md
642
642
  */
643
- "unicorn/prefer-keyboard-event-key": "error",
643
+ "unicorn/prefer-keyboard-event-key": "warn",
644
644
  /*
645
645
  * Prefer using a logical operator over a ternary
646
646
  *
647
647
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-logical-operator-over-ternary.md
648
648
  */
649
- "unicorn/prefer-logical-operator-over-ternary": "error",
649
+ "unicorn/prefer-logical-operator-over-ternary": "warn",
650
650
  /*
651
651
  * Prefer Math.min() and Math.max() over ternaries for simple comparisons
652
652
  *
653
653
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-min-max.md
654
654
  */
655
- "unicorn/prefer-math-min-max": "error",
655
+ "unicorn/prefer-math-min-max": "warn",
656
656
  /*
657
657
  * Enforce the use of Math.trunc instead of bitwise operators. (partly fixable)
658
658
  *
659
659
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-math-trunc.md
660
660
  */
661
- "unicorn/prefer-math-trunc": "error",
661
+ "unicorn/prefer-math-trunc": "warn",
662
662
  /*
663
663
  * Prefer modern DOM APIs
664
664
  *
665
665
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-dom-apis.md
666
666
  */
667
- "unicorn/prefer-modern-dom-apis": "error",
667
+ "unicorn/prefer-modern-dom-apis": "warn",
668
668
  /*
669
669
  * Prefer modern Math APIs over legacy patterns
670
670
  *
671
671
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-math-apis.md
672
672
  */
673
- "unicorn/prefer-modern-math-apis": "error",
673
+ "unicorn/prefer-modern-math-apis": "warn",
674
674
  /*
675
675
  * Prefer JavaScript modules (ESM) over CommonJS
676
676
  *
@@ -684,13 +684,13 @@ export const unicornPlugin = [
684
684
  *
685
685
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-native-coercion-functions.md
686
686
  */
687
- "unicorn/prefer-native-coercion-functions": "error",
687
+ "unicorn/prefer-native-coercion-functions": "warn",
688
688
  /*
689
689
  * Prefer negative index over .length - index for {String,Array,TypedArray}#slice() and Array#splice()
690
690
  *
691
691
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-negative-index.md
692
692
  */
693
- "unicorn/prefer-negative-index": "error",
693
+ "unicorn/prefer-negative-index": "warn",
694
694
  /*
695
695
  * Prefer using the node: protocol when importing Node.js builtin modules
696
696
  *
@@ -704,49 +704,49 @@ export const unicornPlugin = [
704
704
  *
705
705
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-number-properties.md
706
706
  */
707
- "unicorn/prefer-number-properties": "error",
707
+ "unicorn/prefer-number-properties": "warn",
708
708
  /*
709
709
  * Prefer using Object.fromEntries(...) to transform a list of key-value pairs into an object
710
710
  *
711
711
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-from-entries.md
712
712
  */
713
- "unicorn/prefer-object-from-entries": "error",
713
+ "unicorn/prefer-object-from-entries": "warn",
714
714
  /*
715
715
  * Prefer omitting the catch binding parameter
716
716
  *
717
717
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-optional-catch-binding.md
718
718
  */
719
- "unicorn/prefer-optional-catch-binding": "error",
719
+ "unicorn/prefer-optional-catch-binding": "warn",
720
720
  /*
721
721
  * Prefer borrowing methods from the prototype instead of methods from an instance
722
722
  *
723
723
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-prototype-methods.md
724
724
  */
725
- "unicorn/prefer-prototype-methods": "error",
725
+ "unicorn/prefer-prototype-methods": "warn",
726
726
  /*
727
727
  * Prefer String#replaceAll() over regex searches with the global flag
728
728
  *
729
729
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-replace-all.md
730
730
  */
731
- "unicorn/prefer-query-selector": "error",
731
+ "unicorn/prefer-query-selector": "warn",
732
732
  /*
733
733
  * Prefer querySelector over getElementById, querySelectorAll over getElementsByClassName and getElementsByTagName. (partly fixable)
734
734
  *
735
735
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-query-selector.md
736
736
  */
737
- "unicorn/prefer-reflect-apply": "error",
737
+ "unicorn/prefer-reflect-apply": "warn",
738
738
  /*
739
739
  * Prefer RegExp#test() over String#match() and RegExp#exec()
740
740
  *
741
741
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-regexp-test.md
742
742
  */
743
- "unicorn/prefer-regexp-test": "error",
743
+ "unicorn/prefer-regexp-test": "warn",
744
744
  /*
745
745
  * Prefer Response.json() over new Response(JSON.stringify())
746
746
  *
747
747
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-response-static-json.md
748
748
  */
749
- "unicorn/prefer-response-static-json": "error",
749
+ "unicorn/prefer-response-static-json": "warn",
750
750
  /*
751
751
  * Prefer Set#has() over Array#includes() when checking for existence or non-existenc (fixable)
752
752
  *
@@ -760,56 +760,56 @@ export const unicornPlugin = [
760
760
  *
761
761
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-size.md
762
762
  */
763
- "unicorn/prefer-set-size": "error",
763
+ "unicorn/prefer-set-size": "warn",
764
764
  /*
765
765
  * Prefer using Set#size instead of Array#length
766
766
  *
767
767
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-single-call.md
768
768
  */
769
- "unicorn/prefer-single-call": "error",
769
+ "unicorn/prefer-single-call": "warn",
770
770
  /*
771
771
  * Prefer the spread operator over Array.from(). (fixable)
772
772
  *
773
773
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-spread.md
774
774
  */
775
- "unicorn/prefer-spread": "error",
775
+ "unicorn/prefer-spread": "warn",
776
776
  /*
777
777
  * Prefer using the String.raw tag to avoid escaping \
778
778
  *
779
779
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-raw.md
780
780
  */
781
- "unicorn/prefer-string-raw": "error",
781
+ "unicorn/prefer-string-raw": "warn",
782
782
  /*
783
783
  * Prefer String#replaceAll() over regex searches with the global flag
784
784
  *
785
785
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-replace-all.md
786
786
  */
787
- "unicorn/prefer-string-replace-all": "error",
787
+ "unicorn/prefer-string-replace-all": "warn",
788
788
  /*
789
789
  * Prefer String#slice() over String#substr() and String#substring()
790
790
  *
791
791
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-slice.md
792
792
  */
793
- "unicorn/prefer-string-slice": "error",
793
+ "unicorn/prefer-string-slice": "warn",
794
794
  /*
795
795
  * Prefer String#startsWith() & String#endsWith() over more complex alternatives
796
796
  *
797
797
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-starts-ends-with.md
798
798
  */
799
- "unicorn/prefer-string-starts-ends-with": "error",
799
+ "unicorn/prefer-string-starts-ends-with": "warn",
800
800
  /*
801
801
  * Prefer String#trimStart() / String#trimEnd() over String#trimLeft() / String#trimRight()
802
802
  *
803
803
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-trim-start-end.md
804
804
  */
805
- "unicorn/prefer-string-trim-start-end": "error",
805
+ "unicorn/prefer-string-trim-start-end": "warn",
806
806
  /*
807
807
  * Prefer using structuredClone to create a deep clone
808
808
  *
809
809
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-structured-clone.md
810
810
  */
811
811
  "unicorn/prefer-structured-clone": [
812
- "error",
812
+ "warn",
813
813
  {
814
814
  functions: [
815
815
  "cloneDeep",
@@ -823,7 +823,7 @@ export const unicornPlugin = [
823
823
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-switch.md
824
824
  */
825
825
  "unicorn/prefer-switch": [
826
- "error",
826
+ "warn",
827
827
  {
828
828
  emptyDefaultCase: "do-nothing-comment",
829
829
  minimumCases: 3,
@@ -850,7 +850,7 @@ export const unicornPlugin = [
850
850
  *
851
851
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-type-error.md
852
852
  */
853
- "unicorn/prefer-type-error": "error",
853
+ "unicorn/prefer-type-error": "warn",
854
854
  /*
855
855
  * Prevent abbreviations
856
856
  *
@@ -860,7 +860,7 @@ export const unicornPlugin = [
860
860
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prevent-abbreviations.md
861
861
  */
862
862
  "unicorn/prevent-abbreviations": [
863
- "error",
863
+ "warn",
864
864
  {
865
865
  /*
866
866
  * We disable this because of how often Objects are used to interface
@@ -917,7 +917,7 @@ export const unicornPlugin = [
917
917
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/relative-url-style.md
918
918
  */
919
919
  "unicorn/relative-url-style": [
920
- "error",
920
+ "warn",
921
921
  "always",
922
922
  ],
923
923
  /*
@@ -925,31 +925,31 @@ export const unicornPlugin = [
925
925
  *
926
926
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-array-join-separator.md
927
927
  */
928
- "unicorn/require-array-join-separator": "error",
928
+ "unicorn/require-array-join-separator": "warn",
929
929
  /*
930
930
  * Require non-empty module attributes for imports and exports
931
931
  *
932
932
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-module-attributes.md
933
933
  */
934
- "unicorn/require-module-attributes": "error",
934
+ "unicorn/require-module-attributes": "warn",
935
935
  /*
936
936
  * Require non-empty specifier list in import and export statements
937
937
  *
938
938
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-module-specifiers.md
939
939
  */
940
- "unicorn/require-module-specifiers": "error",
940
+ "unicorn/require-module-specifiers": "warn",
941
941
  /*
942
942
  * Enforce using the digits argument with Number#toFixed()
943
943
  *
944
944
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-number-to-fixed-digits-argument.md
945
945
  */
946
- "unicorn/require-number-to-fixed-digits-argument": "error",
946
+ "unicorn/require-number-to-fixed-digits-argument": "warn",
947
947
  /*
948
948
  * Enforce using the targetOrigin argument with window.postMessage()
949
949
  *
950
950
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/require-post-message-target-origin.md
951
951
  */
952
- "unicorn/require-post-message-target-origin": "error",
952
+ "unicorn/require-post-message-target-origin": "warn",
953
953
  /*
954
954
  * Enforce certain things about the contents of strings. For example, you
955
955
  * can enforce using ’ instead of ' to avoid escaping. Or you could block
@@ -966,7 +966,7 @@ export const unicornPlugin = [
966
966
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/switch-case-braces.md
967
967
  */
968
968
  "unicorn/switch-case-braces": [
969
- "error",
969
+ "warn",
970
970
  "always",
971
971
  ],
972
972
  /*
@@ -982,13 +982,13 @@ export const unicornPlugin = [
982
982
  *
983
983
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/text-encoding-identifier-case.md
984
984
  */
985
- "unicorn/text-encoding-identifier-case": "error",
985
+ "unicorn/text-encoding-identifier-case": "warn",
986
986
  /*
987
987
  * Require new when throwing an error. (fixable)
988
988
  *
989
989
  * https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/throw-new-error.md
990
990
  */
991
- "unicorn/throw-new-error": "error",
991
+ "unicorn/throw-new-error": "warn",
992
992
  },
993
993
  },
994
994
  ];