@newsteam/eslint-config 1.2.13 → 1.2.15

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 +172 -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
@@ -39,6 +39,7 @@ export const typescriptPlugin = [
39
39
  "no-undef": "off",
40
40
  "no-undef-init": "off",
41
41
  "no-undefined": "off",
42
+ "no-unused-private-class-members": "off",
42
43
  "no-unused-vars": "off",
43
44
  "no-use-before-define": "off",
44
45
  "prefer-destructuring": "off",
@@ -56,44 +57,44 @@ export const typescriptPlugin = [
56
57
  *
57
58
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/adjacent-overload-signatures.mdx
58
59
  */
59
- "@typescript-eslint/adjacent-overload-signatures": "error",
60
+ "@typescript-eslint/adjacent-overload-signatures": "warn",
60
61
  /*
61
62
  * Requires using either T[] or Array<T> for arrays
62
63
  *
63
64
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/array-type.mdx
64
65
  */
65
- "@typescript-eslint/array-type": "error",
66
+ "@typescript-eslint/array-type": "warn",
66
67
  /*
67
68
  * Disallows awaiting a value that is not a Promise
68
69
  *
69
70
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/await-thenable.mdx
70
71
  */
71
- "@typescript-eslint/await-thenable": "error",
72
+ "@typescript-eslint/await-thenable": "warn",
72
73
  /*
73
74
  * Bans // @ts-<directive> comments from being used
74
75
  *
75
76
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/ban-ts-comment.mdx
76
77
  */
77
- "@typescript-eslint/ban-ts-comment": "error",
78
+ "@typescript-eslint/ban-ts-comment": "warn",
78
79
  /*
79
80
  * Bans // tslint:<rule-flag> comments from being used
80
81
  *
81
82
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/ban-tslint-comment.mdx
82
83
  */
83
- "@typescript-eslint/ban-tslint-comment": "error",
84
+ "@typescript-eslint/ban-tslint-comment": "warn",
84
85
  /*
85
86
  * Ensures that literals on classes are exposed in a consistent style
86
87
  *
87
88
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/class-literal-property-style.mdx
88
89
  */
89
- "@typescript-eslint/class-literal-property-style": "error",
90
+ "@typescript-eslint/class-literal-property-style": "warn",
90
91
  /*
91
92
  * Enforce that literals on classes are exposed in a consistent style.
92
93
  *
93
94
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/class-methods-use-this.mdx
94
95
  */
95
96
  "@typescript-eslint/class-methods-use-this": [
96
- "error",
97
+ "warn",
97
98
  { ignoreClassesThatImplementAnInterface: true },
98
99
  ],
99
100
  /*
@@ -102,7 +103,7 @@ export const typescriptPlugin = [
102
103
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-generic-constructors.mdx
103
104
  */
104
105
  "@typescript-eslint/consistent-generic-constructors": [
105
- "error",
106
+ "warn",
106
107
  "constructor",
107
108
  ],
108
109
  /*
@@ -110,7 +111,7 @@ export const typescriptPlugin = [
110
111
  *
111
112
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-indexed-object-style.mdx
112
113
  */
113
- "@typescript-eslint/consistent-indexed-object-style": "error",
114
+ "@typescript-eslint/consistent-indexed-object-style": "warn",
114
115
  /*
115
116
  * This rule extends the base eslint/consistent-return rule. This version adds support for functions that return void or Promise<void>.
116
117
  *
@@ -125,7 +126,7 @@ export const typescriptPlugin = [
125
126
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-assertions.mdx
126
127
  */
127
128
  "@typescript-eslint/consistent-type-assertions": [
128
- "error",
129
+ "warn",
129
130
  {
130
131
  assertionStyle: "as",
131
132
  objectLiteralTypeAssertions: "allow",
@@ -144,14 +145,14 @@ export const typescriptPlugin = [
144
145
  *
145
146
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-exports.mdx
146
147
  */
147
- "@typescript-eslint/consistent-type-exports": "error",
148
+ "@typescript-eslint/consistent-type-exports": "warn",
148
149
  /*
149
150
  * Enforces consistent usage of type imports
150
151
  *
151
152
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-imports.mdx
152
153
  */
153
154
  "@typescript-eslint/consistent-type-imports": [
154
- "error",
155
+ "warn",
155
156
  {
156
157
  disallowTypeAnnotations: false,
157
158
  fixStyle: "separate-type-imports",
@@ -163,20 +164,20 @@ export const typescriptPlugin = [
163
164
  *
164
165
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/default-param-last.mdx
165
166
  */
166
- "@typescript-eslint/default-param-last": "error",
167
+ "@typescript-eslint/default-param-last": "warn",
167
168
  /*
168
169
  * Enforce dot notation whenever possible
169
170
  *
170
171
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/dot-notation.mdx
171
172
  */
172
- "@typescript-eslint/dot-notation": "error",
173
+ "@typescript-eslint/dot-notation": "warn",
173
174
  /*
174
175
  * Require explicit return types on functions and class methods
175
176
  *
176
177
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/explicit-function-return-type.mdx
177
178
  */
178
179
  "@typescript-eslint/explicit-function-return-type": [
179
- "error",
180
+ "warn",
180
181
  {
181
182
  allowConciseArrowFunctionExpressionsStartingWithVoid: true,
182
183
  allowExpressions: true,
@@ -190,7 +191,7 @@ export const typescriptPlugin = [
190
191
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/explicit-member-accessibility.mdx
191
192
  */
192
193
  "@typescript-eslint/explicit-member-accessibility": [
193
- "error",
194
+ "warn",
194
195
  {
195
196
  accessibility: "no-public",
196
197
  },
@@ -200,14 +201,14 @@ export const typescriptPlugin = [
200
201
  *
201
202
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.mdx
202
203
  */
203
- "@typescript-eslint/explicit-module-boundary-types": "error",
204
+ "@typescript-eslint/explicit-module-boundary-types": "warn",
204
205
  /*
205
206
  * Require or disallow initialization in variable declarations
206
207
  *
207
208
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/init-declarations.mdx
208
209
  */
209
210
  "@typescript-eslint/init-declarations": [
210
- "error",
211
+ "warn",
211
212
  "always",
212
213
  ],
213
214
  /*
@@ -216,7 +217,7 @@ export const typescriptPlugin = [
216
217
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/max-params.mdx
217
218
  */
218
219
  "@typescript-eslint/max-params": [
219
- "error",
220
+ "warn",
220
221
  {
221
222
  max: MAX_FUNCTION_PARAMETERS,
222
223
  },
@@ -227,7 +228,7 @@ export const typescriptPlugin = [
227
228
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/member-ordering.mdx
228
229
  */
229
230
  "@typescript-eslint/member-ordering": [
230
- "error",
231
+ "warn",
231
232
  {
232
233
  default: [
233
234
  // Index signature
@@ -340,14 +341,14 @@ export const typescriptPlugin = [
340
341
  *
341
342
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/method-signature-style.mdx
342
343
  */
343
- "@typescript-eslint/method-signature-style": "error",
344
+ "@typescript-eslint/method-signature-style": "warn",
344
345
  /*
345
346
  * Enforces naming conventions for everything across a codebase
346
347
  *
347
348
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/naming-convention.mdx
348
349
  */
349
350
  "@typescript-eslint/naming-convention": [
350
- "error",
351
+ "warn",
351
352
  // Group Selectors
352
353
  {
353
354
  format: ["camelCase"],
@@ -376,11 +377,6 @@ export const typescriptPlugin = [
376
377
  format: ["PascalCase"],
377
378
  selector: "typeLike",
378
379
  },
379
- {
380
- format: ["camelCase", "PascalCase", "UPPER_CASE"],
381
- selector: "variableLike",
382
- },
383
- // Individual Selectors
384
380
  {
385
381
  format: ["PascalCase"],
386
382
  selector: "class",
@@ -390,9 +386,32 @@ export const typescriptPlugin = [
390
386
  selector: "import",
391
387
  },
392
388
  {
393
- format: ["camelCase", "PascalCase"],
389
+ format: ["camelCase"],
394
390
  leadingUnderscore: "forbid",
395
391
  selector: "parameter",
392
+ trailingUnderscore: "forbid",
393
+ },
394
+ {
395
+ format: ["UPPER_CASE"],
396
+ modifiers: ["const", "global"],
397
+ selector: "variable",
398
+ types: ["boolean", "string", "number", "array"],
399
+ },
400
+ {
401
+ format: ["camelCase"],
402
+ leadingUnderscore: "forbid",
403
+ selector: "variable",
404
+ trailingUnderscore: "forbid",
405
+ types: ["boolean", "string", "number", "array"],
406
+ },
407
+ {
408
+ format: ["camelCase", "PascalCase"],
409
+ selector: "function",
410
+ },
411
+ {
412
+ format: ["camelCase", "PascalCase"],
413
+ modifiers: ["global"],
414
+ selector: "function",
396
415
  },
397
416
  ],
398
417
  /*
@@ -400,115 +419,115 @@ export const typescriptPlugin = [
400
419
  *
401
420
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-array-constructor.mdx
402
421
  */
403
- "@typescript-eslint/no-array-constructor": "error",
422
+ "@typescript-eslint/no-array-constructor": "warn",
404
423
  /*
405
424
  * Disallow generic `Array` constructors.
406
425
  *
407
426
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-array-delete.mdx
408
427
  */
409
- "@typescript-eslint/no-array-delete": "error",
428
+ "@typescript-eslint/no-array-delete": "warn",
410
429
  /*
411
430
  * Requires that .toString() is only called on objects which provide useful information when stringified
412
431
  *
413
432
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-base-to-string.mdx
414
433
  */
415
- "@typescript-eslint/no-base-to-string": "error",
434
+ "@typescript-eslint/no-base-to-string": "warn",
416
435
  /*
417
436
  * Disallow non-null assertion in locations that may be confusing
418
437
  *
419
438
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-confusing-non-null-assertion.mdx
420
439
  */
421
- "@typescript-eslint/no-confusing-non-null-assertion": "error",
440
+ "@typescript-eslint/no-confusing-non-null-assertion": "warn",
422
441
  /*
423
442
  * Requires expressions of type void to appear in statement position
424
443
  *
425
444
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-confusing-void-expression.mdx
426
445
  */
427
- "@typescript-eslint/no-confusing-void-expression": "error",
446
+ "@typescript-eslint/no-confusing-void-expression": "warn",
428
447
  /*
429
448
  * Disallow using code marked as @deprecated.
430
449
  *
431
450
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-deprecated.mdx
432
451
  */
433
- "@typescript-eslint/no-deprecated": "error",
452
+ "@typescript-eslint/no-deprecated": "warn",
434
453
  /*
435
454
  * Disallow duplicate class members
436
455
  *
437
456
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-dupe-class-members.mdx
438
457
  */
439
- "@typescript-eslint/no-dupe-class-members": "error",
458
+ "@typescript-eslint/no-dupe-class-members": "warn",
440
459
  /*
441
460
  * Disallow duplicate enum member values.
442
461
  *
443
462
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-duplicate-enum-values.mdx
444
463
  */
445
- "@typescript-eslint/no-duplicate-enum-values": "error",
464
+ "@typescript-eslint/no-duplicate-enum-values": "warn",
446
465
  /*
447
466
  * Disallow duplicate enum member values.
448
467
  *
449
468
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-duplicate-type-constituents.mdx
450
469
  */
451
- "@typescript-eslint/no-duplicate-type-constituents": "error",
470
+ "@typescript-eslint/no-duplicate-type-constituents": "warn",
452
471
  /*
453
472
  * Disallow the delete operator with computed key expressions
454
473
  *
455
474
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-dynamic-delete.mdx
456
475
  */
457
- "@typescript-eslint/no-dynamic-delete": "error",
476
+ "@typescript-eslint/no-dynamic-delete": "warn",
458
477
  /*
459
478
  * Disallow Empty Functions
460
479
  *
461
480
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-empty-function.mdx
462
481
  */
463
- "@typescript-eslint/no-empty-function": "error",
482
+ "@typescript-eslint/no-empty-function": "warn",
464
483
  /*
465
484
  * Disallow accidentally using the "empty object" type.
466
485
  *
467
486
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-empty-object-type.mdx
468
487
  */
469
- "@typescript-eslint/no-empty-object-type": "error",
488
+ "@typescript-eslint/no-empty-object-type": "warn",
470
489
  /*
471
490
  * Disallow usage of the any type
472
491
  *
473
492
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-explicit-any.mdx
474
493
  */
475
- "@typescript-eslint/no-explicit-any": "error",
494
+ "@typescript-eslint/no-explicit-any": "warn",
476
495
  /*
477
496
  * Disallow extra non-null assertion
478
497
  *
479
498
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-extra-non-null-assertion.mdx
480
499
  */
481
- "@typescript-eslint/no-extra-non-null-assertion": "error",
500
+ "@typescript-eslint/no-extra-non-null-assertion": "warn",
482
501
  /*
483
502
  * Forbids the use of classes as namespaces
484
503
  *
485
504
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-extraneous-class.mdx
486
505
  */
487
- "@typescript-eslint/no-extraneous-class": "error",
506
+ "@typescript-eslint/no-extraneous-class": "warn",
488
507
  /*
489
508
  * Requires Promise-like values to be handled appropriately
490
509
  *
491
510
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-floating-promises.mdx
492
511
  */
493
- "@typescript-eslint/no-floating-promises": "error",
512
+ "@typescript-eslint/no-floating-promises": "warn",
494
513
  /*
495
514
  * Disallow iterating over an array with a for-in loop
496
515
  *
497
516
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-for-in-array.mdx
498
517
  */
499
- "@typescript-eslint/no-for-in-array": "error",
518
+ "@typescript-eslint/no-for-in-array": "warn",
500
519
  /*
501
520
  * Disallow the use of eval()-like methods
502
521
  *
503
522
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-implied-eval.mdx
504
523
  */
505
- "@typescript-eslint/no-implied-eval": "error",
524
+ "@typescript-eslint/no-implied-eval": "warn",
506
525
  /*
507
526
  * Enforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers.
508
527
  *
509
528
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-import-type-side-effects.mdx
510
529
  */
511
- "@typescript-eslint/no-import-type-side-effects": "error",
530
+ "@typescript-eslint/no-import-type-side-effects": "warn",
512
531
  /*
513
532
  * Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.
514
533
  *
@@ -516,33 +535,33 @@ export const typescriptPlugin = [
516
535
  *
517
536
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-inferrable-types.mdx
518
537
  */
519
- "@typescript-eslint/no-inferrable-types": "error",
538
+ "@typescript-eslint/no-inferrable-types": "warn",
520
539
  /*
521
540
  * Disallow this keywords outside of classes or class-like objects
522
541
  *
523
542
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-invalid-this.mdx
524
543
  */
525
- "@typescript-eslint/no-invalid-this": "error",
544
+ "@typescript-eslint/no-invalid-this": "warn",
526
545
  /*
527
546
  * Disallows usage of void type outside of return types or generic type arguments.
528
547
  * If void is used as return type, it shouldn’t be a part of intersection/union type.
529
548
  *
530
549
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-invalid-void-type.mdx
531
550
  */
532
- "@typescript-eslint/no-invalid-void-type": "error",
551
+ "@typescript-eslint/no-invalid-void-type": "warn",
533
552
  /*
534
553
  * Disallow function declarations that contain unsafe references inside loop statements
535
554
  *
536
555
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-loop-func.mdx
537
556
  */
538
- "@typescript-eslint/no-loop-func": "error",
557
+ "@typescript-eslint/no-loop-func": "warn",
539
558
  /*
540
559
  * Disallow Magic Numbers
541
560
  *
542
561
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-magic-numbers.mdx
543
562
  */
544
563
  "@typescript-eslint/no-magic-numbers": [
545
- "error",
564
+ "warn",
546
565
  {
547
566
  ...NO_MAGIC_NUMBERS_CONFIG,
548
567
  ignoreEnums: true,
@@ -556,20 +575,20 @@ export const typescriptPlugin = [
556
575
  *
557
576
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-meaningless-void-operator.mdx
558
577
  */
559
- "@typescript-eslint/no-meaningless-void-operator": "error",
578
+ "@typescript-eslint/no-meaningless-void-operator": "warn",
560
579
  /*
561
580
  * Enforce valid definition of new and constructor.
562
581
  *
563
582
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-new.mdx
564
583
  */
565
- "@typescript-eslint/no-misused-new": "error",
584
+ "@typescript-eslint/no-misused-new": "warn",
566
585
  /*
567
586
  * Avoid using promises in places not designed to handle them
568
587
  *
569
588
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-promises.mdx
570
589
  */
571
590
  "@typescript-eslint/no-misused-promises": [
572
- "error",
591
+ "warn",
573
592
  {
574
593
  checksConditionals: true,
575
594
  checksSpreads: true,
@@ -589,7 +608,7 @@ export const typescriptPlugin = [
589
608
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-spread.mdx
590
609
  */
591
610
  "@typescript-eslint/no-misused-spread": [
592
- "error",
611
+ "warn",
593
612
  {
594
613
  allow: [
595
614
  {
@@ -604,7 +623,7 @@ export const typescriptPlugin = [
604
623
  *
605
624
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-mixed-enums.mdx
606
625
  */
607
- "@typescript-eslint/no-mixed-enums": "error",
626
+ "@typescript-eslint/no-mixed-enums": "warn",
608
627
  /*
609
628
  * Disallow the use of custom TypeScript modules and namespaces
610
629
  *
@@ -618,13 +637,13 @@ export const typescriptPlugin = [
618
637
  *
619
638
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-non-null-asserted-nullish-coalescing.mdx
620
639
  */
621
- "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
640
+ "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "warn",
622
641
  /*
623
642
  * Disallows using a non-null assertion after an optional chain expression
624
643
  *
625
644
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-non-null-asserted-optional-chain.mdx
626
645
  */
627
- "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
646
+ "@typescript-eslint/no-non-null-asserted-optional-chain": "warn",
628
647
  /*
629
648
  * Disallows non-null assertions using the ! postfix operator
630
649
  *
@@ -638,19 +657,19 @@ export const typescriptPlugin = [
638
657
  *
639
658
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-redeclare.mdx
640
659
  */
641
- "@typescript-eslint/no-redeclare": "error",
660
+ "@typescript-eslint/no-redeclare": "warn",
642
661
  /*
643
662
  * Disallow members of unions and intersections that do nothing or override type information.
644
663
  *
645
664
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-redundant-type-constituents.mdx
646
665
  */
647
- "@typescript-eslint/no-redundant-type-constituents": "error",
666
+ "@typescript-eslint/no-redundant-type-constituents": "warn",
648
667
  /*
649
668
  * Prefer the newer ES6-style imports over require().
650
669
  *
651
670
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-require-imports.mdx
652
671
  */
653
- "@typescript-eslint/no-require-imports": "error",
672
+ "@typescript-eslint/no-require-imports": "warn",
654
673
  /*
655
674
  * Disallows invocation of require()
656
675
  *
@@ -667,7 +686,7 @@ export const typescriptPlugin = [
667
686
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-restricted-types.mdx
668
687
  */
669
688
  "@typescript-eslint/no-restricted-types": [
670
- "error",
689
+ "warn",
671
690
  {
672
691
  types: {
673
692
  "JSX.Element": {
@@ -686,26 +705,26 @@ export const typescriptPlugin = [
686
705
  *
687
706
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-shadow.mdx
688
707
  */
689
- "@typescript-eslint/no-shadow": "error",
708
+ "@typescript-eslint/no-shadow": "warn",
690
709
  /*
691
710
  * Disallow aliasing this
692
711
  *
693
712
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-this-alias.mdx
694
713
  */
695
- "@typescript-eslint/no-this-alias": "error",
714
+ "@typescript-eslint/no-this-alias": "warn",
696
715
  /*
697
716
  * Flags unnecessary equality comparisons against boolean literals
698
717
  *
699
718
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.mdx
700
719
  */
701
- "@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
720
+ "@typescript-eslint/no-unnecessary-boolean-literal-compare": "warn",
702
721
  /*
703
722
  * Condition expressions must be necessary
704
723
  *
705
724
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-condition.mdx
706
725
  */
707
726
  "@typescript-eslint/no-unnecessary-condition": [
708
- "error",
727
+ "warn",
709
728
  {
710
729
  allowConstantLoopConditions: true,
711
730
  },
@@ -715,43 +734,43 @@ export const typescriptPlugin = [
715
734
  *
716
735
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-parameter-property-assignment.mdx
717
736
  */
718
- "@typescript-eslint/no-unnecessary-parameter-property-assignment": "error",
737
+ "@typescript-eslint/no-unnecessary-parameter-property-assignment": "warn",
719
738
  /*
720
739
  * Warns when a namespace qualifier is unnecessary.
721
740
  *
722
741
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-qualifier.mdx
723
742
  */
724
- "@typescript-eslint/no-unnecessary-qualifier": "error",
743
+ "@typescript-eslint/no-unnecessary-qualifier": "warn",
725
744
  /*
726
745
  * Disallow unnecessary template literals.
727
746
  *
728
747
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-template-expression.mdx
729
748
  */
730
- "@typescript-eslint/no-unnecessary-template-expression": "error",
749
+ "@typescript-eslint/no-unnecessary-template-expression": "warn",
731
750
  /*
732
751
  * Enforces that types will not to be used
733
752
  *
734
753
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-arguments.mdx
735
754
  */
736
- "@typescript-eslint/no-unnecessary-type-arguments": "error",
755
+ "@typescript-eslint/no-unnecessary-type-arguments": "warn",
737
756
  /*
738
757
  * Warns if a type assertion does not change the type of an expression
739
758
  *
740
759
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-assertion.mdx
741
760
  */
742
- "@typescript-eslint/no-unnecessary-type-assertion": "error",
761
+ "@typescript-eslint/no-unnecessary-type-assertion": "warn",
743
762
  /*
744
763
  * Disallows unnecessary constraints on generic types
745
764
  *
746
765
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-constraint.mdx
747
766
  */
748
- "@typescript-eslint/no-unnecessary-type-constraint": "error",
767
+ "@typescript-eslint/no-unnecessary-type-constraint": "warn",
749
768
  /*
750
769
  * Disallow conversion idioms when they do not change the type or value of the expression.
751
770
  *
752
771
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unnecessary-type-conversion.mdx
753
772
  */
754
- "@typescript-eslint/no-unnecessary-type-conversion": "error",
773
+ "@typescript-eslint/no-unnecessary-type-conversion": "warn",
755
774
  /*
756
775
  * Disallow type parameters that aren't used multiple times.
757
776
  *
@@ -765,37 +784,37 @@ export const typescriptPlugin = [
765
784
  *
766
785
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-argument.mdx
767
786
  */
768
- "@typescript-eslint/no-unsafe-argument": "error",
787
+ "@typescript-eslint/no-unsafe-argument": "warn",
769
788
  /*
770
789
  * Disallows assigning any to variables and properties
771
790
  *
772
791
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-assignment.mdx
773
792
  */
774
- "@typescript-eslint/no-unsafe-assignment": "error",
793
+ "@typescript-eslint/no-unsafe-assignment": "warn",
775
794
  /*
776
795
  * Disallows calling an any type value
777
796
  *
778
797
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-call.mdx
779
798
  */
780
- "@typescript-eslint/no-unsafe-call": "error",
799
+ "@typescript-eslint/no-unsafe-call": "warn",
781
800
  /*
782
801
  * Disallow unsafe declaration merging.
783
802
  *
784
803
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-declaration-merging.mdx
785
804
  */
786
- "@typescript-eslint/no-unsafe-declaration-merging": "error",
805
+ "@typescript-eslint/no-unsafe-declaration-merging": "warn",
787
806
  /*
788
807
  * Disallow comparing an enum value with a non-enum value.
789
808
  *
790
809
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-enum-comparison.mdx
791
810
  */
792
- "@typescript-eslint/no-unsafe-enum-comparison": "error",
811
+ "@typescript-eslint/no-unsafe-enum-comparison": "warn",
793
812
  /*
794
813
  * Disallow using the unsafe built-in Function type.
795
814
  *
796
815
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-function-type.mdx
797
816
  */
798
- "@typescript-eslint/no-unsafe-function-type": "error",
817
+ "@typescript-eslint/no-unsafe-function-type": "warn",
799
818
  /*
800
819
  * Disallows member access on any typed variables
801
820
  *
@@ -809,38 +828,49 @@ export const typescriptPlugin = [
809
828
  *
810
829
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-return.mdx
811
830
  */
812
- "@typescript-eslint/no-unsafe-return": "error",
831
+ "@typescript-eslint/no-unsafe-return": "warn",
813
832
  /*
814
833
  * Disallow type assertions that narrow a type.
815
834
  *
816
835
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-type-assertion.mdx
817
836
  */
818
- "@typescript-eslint/no-unsafe-type-assertion": "error",
837
+ "@typescript-eslint/no-unsafe-type-assertion": "warn",
819
838
  /*
820
839
  * Require unary negation to take a number.
821
840
  *
822
841
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unsafe-unary-minus.mdx
823
842
  */
824
- "@typescript-eslint/no-unsafe-unary-minus": "error",
843
+ "@typescript-eslint/no-unsafe-unary-minus": "warn",
825
844
  /*
826
845
  * Disallow unused expressions
827
846
  *
828
847
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unused-expressions.mdx
829
848
  */
830
- "@typescript-eslint/no-unused-expressions": "error",
849
+ "@typescript-eslint/no-unused-expressions": "warn",
850
+ /*
851
+ * Disallow unused private class members.
852
+ *
853
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unused-private-class-members.mdx
854
+ */
855
+ "@typescript-eslint/no-unused-private-class-members": "warn",
831
856
  /*
832
857
  * Disallow unused variables
833
858
  *
834
859
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-unused-vars.mdx
835
860
  */
836
- "@typescript-eslint/no-unused-vars": "error",
861
+ "@typescript-eslint/no-unused-vars": [
862
+ "warn",
863
+ {
864
+ varsIgnorePattern: "^discard|^ignore",
865
+ },
866
+ ],
837
867
  /*
838
868
  * Disallow the use of variables before they are defined
839
869
  *
840
870
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-use-before-define.mdx
841
871
  */
842
872
  "@typescript-eslint/no-use-before-define": [
843
- "error",
873
+ "warn",
844
874
  {
845
875
  classes: true,
846
876
  functions: false,
@@ -852,42 +882,44 @@ export const typescriptPlugin = [
852
882
  *
853
883
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-useless-constructor.mdx
854
884
  */
855
- "@typescript-eslint/no-useless-constructor": "error",
885
+ "@typescript-eslint/no-useless-constructor": "warn",
886
+ /*
887
+ * Disallow default values that will never be used.
888
+ *
889
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-useless-default-assignment.mdx
890
+ */
891
+ "@typescript-eslint/no-useless-default-assignment": "warn",
856
892
  /*
857
893
  * Disallow empty exports that don't change anything in a module file.
858
894
  *
859
895
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-useless-empty-export.mdx
860
896
  */
861
- "@typescript-eslint/no-useless-empty-export": "error",
897
+ "@typescript-eslint/no-useless-empty-export": "warn",
862
898
  /*
863
899
  * Disallow using confusing built-in primitive class wrappers.
864
900
  *
865
901
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-wrapper-object-types.mdx
866
902
  */
867
- "@typescript-eslint/no-wrapper-object-types": "error",
903
+ "@typescript-eslint/no-wrapper-object-types": "warn",
868
904
  /*
869
905
  * This rule detects when an as cast is doing the same job as a ! would, and suggests fixing the code to be an !.
870
906
  *
871
907
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/non-nullable-type-assertion-style.mdx
872
908
  */
873
- "@typescript-eslint/non-nullable-type-assertion-style": "error",
909
+ "@typescript-eslint/non-nullable-type-assertion-style": "warn",
874
910
  /*
875
911
  * Disallow throwing non-`Error` values as exceptions.
876
912
  *
877
913
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/only-throw-error.mdx
878
914
  */
879
915
  "@typescript-eslint/only-throw-error": [
880
- "error",
916
+ "warn",
881
917
  {
882
918
  allow: [
883
919
  {
884
920
  from: "package",
885
- name: [
886
- "NotFoundError",
887
- "Redirect",
888
- "Redirect<TRouter, TFrom, TTo, TMaskFrom, TMaskTo>",
889
- ],
890
- package: "@tanstack/react-router",
921
+ name: "Redirect",
922
+ package: "@tanstack/router-core",
891
923
  },
892
924
  ],
893
925
  },
@@ -897,20 +929,20 @@ export const typescriptPlugin = [
897
929
  *
898
930
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/parameter-properties.mdx
899
931
  */
900
- "@typescript-eslint/parameter-properties": "error",
932
+ "@typescript-eslint/parameter-properties": "warn",
901
933
  /*
902
934
  * Prefer usage of as const over literal type
903
935
  *
904
936
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-as-const.mdx
905
937
  */
906
- "@typescript-eslint/prefer-as-const": "error",
938
+ "@typescript-eslint/prefer-as-const": "warn",
907
939
  /*
908
940
  *
909
941
  *
910
942
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-destructuring.mdx
911
943
  */
912
944
  "@typescript-eslint/prefer-destructuring": [
913
- "error",
945
+ "warn",
914
946
  {
915
947
  array: true,
916
948
  object: false,
@@ -921,67 +953,75 @@ export const typescriptPlugin = [
921
953
  *
922
954
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-enum-initializers.mdx
923
955
  */
924
- "@typescript-eslint/prefer-enum-initializers": "error",
956
+ "@typescript-eslint/prefer-enum-initializers": "warn",
925
957
  /*
926
958
  * Enforce the use of Array.prototype.find() over Array.prototype.filter() followed by [0] when looking for a single result.
927
959
  *
928
960
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-find.mdx
929
961
  */
930
- "@typescript-eslint/prefer-find": "error",
962
+ "@typescript-eslint/prefer-find": "warn",
931
963
  /*
932
964
  * Use for-of loops instead of standard for loops over arrays
933
965
  *
934
966
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-for-of.mdx
935
967
  */
936
- "@typescript-eslint/prefer-for-of": "error",
968
+ "@typescript-eslint/prefer-for-of": "warn",
937
969
  /*
938
970
  * Use function types instead of interfaces with call signatures
939
971
  *
940
972
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-function-type.mdx
941
973
  */
942
- "@typescript-eslint/prefer-function-type": "error",
974
+ "@typescript-eslint/prefer-function-type": "warn",
943
975
  /*
944
976
  * Enforce includes method over indexOf method
945
977
  *
946
978
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-includes.mdx
947
979
  */
948
- "@typescript-eslint/prefer-includes": "error",
980
+ "@typescript-eslint/prefer-includes": "warn",
949
981
  /*
950
982
  * Require that all enum members be literal values to prevent unintended enum member name shadow issues
951
983
  *
952
984
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-literal-enum-member.mdx
953
985
  */
954
- "@typescript-eslint/prefer-literal-enum-member": "error",
986
+ "@typescript-eslint/prefer-literal-enum-member": "warn",
955
987
  /*
956
988
  * Require the use of the namespace keyword instead of the module keyword to declare custom TypeScript modules.
957
989
  *
958
990
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-namespace-keyword.mdx
959
991
  */
960
- "@typescript-eslint/prefer-namespace-keyword": "error",
992
+ "@typescript-eslint/prefer-namespace-keyword": "warn",
961
993
  /*
962
994
  * Enforce the usage of the nullish coalescing operator instead of logical chaining
963
995
  *
964
996
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-nullish-coalescing.mdx
965
997
  */
966
- "@typescript-eslint/prefer-nullish-coalescing": "error",
998
+ "@typescript-eslint/prefer-nullish-coalescing": [
999
+ "warn",
1000
+ {
1001
+ ignorePrimitives: {
1002
+ boolean: true,
1003
+ string: true,
1004
+ },
1005
+ },
1006
+ ],
967
1007
  /*
968
1008
  * Prefer using concise optional chain expressions instead of chained logical ands
969
1009
  *
970
1010
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-optional-chain.mdx
971
1011
  */
972
- "@typescript-eslint/prefer-optional-chain": "error",
1012
+ "@typescript-eslint/prefer-optional-chain": "warn",
973
1013
  /*
974
1014
  * Require using Error objects as Promise rejection reasons.
975
1015
  *
976
1016
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-promise-reject-errors.mdx
977
1017
  */
978
- "@typescript-eslint/prefer-promise-reject-errors": "error",
1018
+ "@typescript-eslint/prefer-promise-reject-errors": "warn",
979
1019
  /*
980
1020
  * Require never-modified private members be marked as readonly
981
1021
  *
982
1022
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-readonly.mdx
983
1023
  */
984
- "@typescript-eslint/prefer-readonly": "error",
1024
+ "@typescript-eslint/prefer-readonly": "warn",
985
1025
  /*
986
1026
  * Requires that function parameters are typed as readonly to prevent accidental mutation of inputs
987
1027
  *
@@ -995,25 +1035,25 @@ export const typescriptPlugin = [
995
1035
  *
996
1036
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-reduce-type-parameter.mdx
997
1037
  */
998
- "@typescript-eslint/prefer-reduce-type-parameter": "error",
1038
+ "@typescript-eslint/prefer-reduce-type-parameter": "warn",
999
1039
  /*
1000
1040
  * Enforce to use RegExp#exec over String#match
1001
1041
  *
1002
1042
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-regexp-exec.mdx
1003
1043
  */
1004
- "@typescript-eslint/prefer-regexp-exec": "error",
1044
+ "@typescript-eslint/prefer-regexp-exec": "warn",
1005
1045
  /*
1006
1046
  * Enforce that this is used when only this type is returned
1007
1047
  *
1008
1048
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-return-this-type.mdx
1009
1049
  */
1010
- "@typescript-eslint/prefer-return-this-type": "error",
1050
+ "@typescript-eslint/prefer-return-this-type": "warn",
1011
1051
  /*
1012
1052
  * Enforce the use of String#startsWith and String#endsWith instead of other equivalent methods of checking substrings
1013
1053
  *
1014
1054
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-string-starts-ends-with.mdx
1015
1055
  */
1016
- "@typescript-eslint/prefer-string-starts-ends-with": "error",
1056
+ "@typescript-eslint/prefer-string-starts-ends-with": "warn",
1017
1057
  /*
1018
1058
  * Functions that return promises must be async
1019
1059
  *
@@ -1027,32 +1067,32 @@ export const typescriptPlugin = [
1027
1067
  *
1028
1068
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/related-getter-setter-pairs.mdx
1029
1069
  */
1030
- "@typescript-eslint/related-getter-setter-pairs": "error",
1070
+ "@typescript-eslint/related-getter-setter-pairs": "warn",
1031
1071
  /*
1032
1072
  * Enforce giving compare argument to Array#sort
1033
1073
  *
1034
1074
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/require-array-sort-compare.mdx
1035
1075
  */
1036
- "@typescript-eslint/require-array-sort-compare": "error",
1076
+ "@typescript-eslint/require-array-sort-compare": "warn",
1037
1077
  /*
1038
1078
  * Disallow async functions which have no await expression
1039
1079
  *
1040
1080
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/require-await.mdx
1041
1081
  */
1042
- "@typescript-eslint/require-await": "error",
1082
+ "@typescript-eslint/require-await": "warn",
1043
1083
  /*
1044
1084
  * When adding two variables, operands must both be of type number or of type string.
1045
1085
  *
1046
1086
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/restrict-plus-operands.mdx
1047
1087
  */
1048
- "@typescript-eslint/restrict-plus-operands": "error",
1088
+ "@typescript-eslint/restrict-plus-operands": "warn",
1049
1089
  /*
1050
1090
  * Enforce template literal expressions to be of string type.
1051
1091
  *
1052
1092
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/restrict-template-expressions.mdx
1053
1093
  */
1054
1094
  "@typescript-eslint/restrict-template-expressions": [
1055
- "error",
1095
+ "warn",
1056
1096
  {
1057
1097
  allowBoolean: true,
1058
1098
  allowNullish: false,
@@ -1064,7 +1104,7 @@ export const typescriptPlugin = [
1064
1104
  *
1065
1105
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/return-await.mdx
1066
1106
  */
1067
- "@typescript-eslint/return-await": "error",
1107
+ "@typescript-eslint/return-await": "warn",
1068
1108
  /*
1069
1109
  * Boolean expressions are limited to booleans
1070
1110
  *
@@ -1073,13 +1113,19 @@ export const typescriptPlugin = [
1073
1113
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/strict-boolean-expressions.mdx
1074
1114
  */
1075
1115
  "@typescript-eslint/strict-boolean-expressions": "off",
1116
+ /*
1117
+ * Disallow passing a value-returning function in a position accepting a void function.
1118
+ *
1119
+ * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/strict-void-return.mdx
1120
+ */
1121
+ "@typescript-eslint/strict-void-return": "warn",
1076
1122
  /*
1077
1123
  * Exhaustiveness checking in switch with union type
1078
1124
  *
1079
1125
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/switch-exhaustiveness-check.mdx
1080
1126
  */
1081
1127
  "@typescript-eslint/switch-exhaustiveness-check": [
1082
- "error",
1128
+ "warn",
1083
1129
  {
1084
1130
  allowDefaultCaseForExhaustiveSwitch: false,
1085
1131
  considerDefaultExhaustiveForUnions: false,
@@ -1092,7 +1138,7 @@ export const typescriptPlugin = [
1092
1138
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/triple-slash-reference.mdx
1093
1139
  */
1094
1140
  "@typescript-eslint/triple-slash-reference": [
1095
- "error",
1141
+ "warn",
1096
1142
  {
1097
1143
  lib: "never",
1098
1144
  path: "never",
@@ -1104,19 +1150,19 @@ export const typescriptPlugin = [
1104
1150
  *
1105
1151
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/unbound-method.mdx
1106
1152
  */
1107
- "@typescript-eslint/unbound-method": "error",
1153
+ "@typescript-eslint/unbound-method": "warn",
1108
1154
  /*
1109
1155
  * Warns for any two overloads that could be unified into one by using a union or an optional/rest parameter.
1110
1156
  *
1111
1157
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/unified-signatures.mdx
1112
1158
  */
1113
- "@typescript-eslint/unified-signatures": "error",
1159
+ "@typescript-eslint/unified-signatures": "warn",
1114
1160
  /*
1115
1161
  * This rule enforces that you always use the `unknown` type for the parameter of a `Promise.prototype.catch()` callback.
1116
1162
  *
1117
1163
  * https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/use-unknown-in-catch-callback-variable.mdx
1118
1164
  */
1119
- "@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
1165
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": "warn",
1120
1166
  },
1121
1167
  },
1122
1168
  ];