eslint-config-typed 3.13.3 → 3.13.4

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 (96) hide show
  1. package/dist/rules/typescript-eslint-rules.d.mts +1 -0
  2. package/dist/rules/typescript-eslint-rules.d.mts.map +1 -1
  3. package/dist/rules/typescript-eslint-rules.mjs +1 -0
  4. package/dist/rules/typescript-eslint-rules.mjs.map +1 -1
  5. package/dist/types/rules/eslint-array-func-rules.d.mts +8 -8
  6. package/dist/types/rules/eslint-array-func-rules.d.mts.map +1 -1
  7. package/dist/types/rules/eslint-cypress-rules.d.mts +27 -23
  8. package/dist/types/rules/eslint-cypress-rules.d.mts.map +1 -1
  9. package/dist/types/rules/eslint-functional-rules.d.mts +426 -425
  10. package/dist/types/rules/eslint-functional-rules.d.mts.map +1 -1
  11. package/dist/types/rules/eslint-import-rules.d.mts +343 -325
  12. package/dist/types/rules/eslint-import-rules.d.mts.map +1 -1
  13. package/dist/types/rules/eslint-jest-rules.d.mts +183 -171
  14. package/dist/types/rules/eslint-jest-rules.d.mts.map +1 -1
  15. package/dist/types/rules/eslint-jsx-a11y-rules.d.mts +211 -209
  16. package/dist/types/rules/eslint-jsx-a11y-rules.d.mts.map +1 -1
  17. package/dist/types/rules/eslint-math-rules.d.mts +49 -48
  18. package/dist/types/rules/eslint-math-rules.d.mts.map +1 -1
  19. package/dist/types/rules/eslint-n-rules.d.mts +296 -293
  20. package/dist/types/rules/eslint-n-rules.d.mts.map +1 -1
  21. package/dist/types/rules/eslint-playwright-rules.d.mts +161 -149
  22. package/dist/types/rules/eslint-playwright-rules.d.mts.map +1 -1
  23. package/dist/types/rules/eslint-plugin-rules.d.mts +95 -85
  24. package/dist/types/rules/eslint-plugin-rules.d.mts.map +1 -1
  25. package/dist/types/rules/eslint-plugin-sort-destructure-keys-rules.d.mts +10 -10
  26. package/dist/types/rules/eslint-plugin-sort-destructure-keys-rules.d.mts.map +1 -1
  27. package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts +23 -16
  28. package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts.map +1 -1
  29. package/dist/types/rules/eslint-promise-rules.d.mts +68 -68
  30. package/dist/types/rules/eslint-promise-rules.d.mts.map +1 -1
  31. package/dist/types/rules/eslint-react-coding-style-rules.d.mts +29 -29
  32. package/dist/types/rules/eslint-react-coding-style-rules.d.mts.map +1 -1
  33. package/dist/types/rules/eslint-react-hooks-rules.d.mts +100 -100
  34. package/dist/types/rules/eslint-react-hooks-rules.d.mts.map +1 -1
  35. package/dist/types/rules/eslint-react-perf-rules.d.mts +28 -28
  36. package/dist/types/rules/eslint-react-perf-rules.d.mts.map +1 -1
  37. package/dist/types/rules/eslint-react-refresh-rules.d.mts +13 -13
  38. package/dist/types/rules/eslint-react-refresh-rules.d.mts.map +1 -1
  39. package/dist/types/rules/eslint-react-rules.d.mts +646 -620
  40. package/dist/types/rules/eslint-react-rules.d.mts.map +1 -1
  41. package/dist/types/rules/eslint-rules.d.mts +1022 -1016
  42. package/dist/types/rules/eslint-rules.d.mts.map +1 -1
  43. package/dist/types/rules/eslint-security-rules.d.mts +16 -16
  44. package/dist/types/rules/eslint-security-rules.d.mts.map +1 -1
  45. package/dist/types/rules/eslint-strict-dependencies-rules.d.mts +18 -18
  46. package/dist/types/rules/eslint-strict-dependencies-rules.d.mts.map +1 -1
  47. package/dist/types/rules/eslint-stylistic-rules.d.mts +1440 -1400
  48. package/dist/types/rules/eslint-stylistic-rules.d.mts.map +1 -1
  49. package/dist/types/rules/eslint-testing-library-rules.d.mts +110 -105
  50. package/dist/types/rules/eslint-testing-library-rules.d.mts.map +1 -1
  51. package/dist/types/rules/eslint-total-functions-rules.d.mts +16 -16
  52. package/dist/types/rules/eslint-total-functions-rules.d.mts.map +1 -1
  53. package/dist/types/rules/eslint-tree-shakable-rules.d.mts +3 -3
  54. package/dist/types/rules/eslint-tree-shakable-rules.d.mts.map +1 -1
  55. package/dist/types/rules/eslint-ts-restrictions-rules.d.mts +30 -30
  56. package/dist/types/rules/eslint-ts-restrictions-rules.d.mts.map +1 -1
  57. package/dist/types/rules/eslint-unicorn-rules.d.mts +398 -392
  58. package/dist/types/rules/eslint-unicorn-rules.d.mts.map +1 -1
  59. package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts +3 -3
  60. package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts.map +1 -1
  61. package/dist/types/rules/eslint-vitest-rules.d.mts +204 -190
  62. package/dist/types/rules/eslint-vitest-rules.d.mts.map +1 -1
  63. package/dist/types/rules/typescript-eslint-rules.d.mts +1107 -1077
  64. package/dist/types/rules/typescript-eslint-rules.d.mts.map +1 -1
  65. package/package.json +23 -23
  66. package/src/rules/typescript-eslint-rules.mts +2 -0
  67. package/src/types/rules/eslint-array-func-rules.mts +8 -8
  68. package/src/types/rules/eslint-cypress-rules.mts +28 -24
  69. package/src/types/rules/eslint-functional-rules.mts +581 -576
  70. package/src/types/rules/eslint-import-rules.mts +403 -384
  71. package/src/types/rules/eslint-jest-rules.mts +212 -196
  72. package/src/types/rules/eslint-jsx-a11y-rules.mts +252 -250
  73. package/src/types/rules/eslint-math-rules.mts +53 -52
  74. package/src/types/rules/eslint-n-rules.mts +1762 -1757
  75. package/src/types/rules/eslint-playwright-rules.mts +187 -171
  76. package/src/types/rules/eslint-plugin-rules.mts +109 -99
  77. package/src/types/rules/eslint-plugin-sort-destructure-keys-rules.mts +11 -11
  78. package/src/types/rules/eslint-prefer-arrow-functions-rules.mts +24 -17
  79. package/src/types/rules/eslint-promise-rules.mts +76 -76
  80. package/src/types/rules/eslint-react-coding-style-rules.mts +32 -32
  81. package/src/types/rules/eslint-react-hooks-rules.mts +129 -129
  82. package/src/types/rules/eslint-react-perf-rules.mts +32 -32
  83. package/src/types/rules/eslint-react-refresh-rules.mts +14 -14
  84. package/src/types/rules/eslint-react-rules.mts +787 -792
  85. package/src/types/rules/eslint-rules.mts +1180 -1173
  86. package/src/types/rules/eslint-security-rules.mts +16 -16
  87. package/src/types/rules/eslint-strict-dependencies-rules.mts +19 -19
  88. package/src/types/rules/eslint-stylistic-rules.mts +1767 -1807
  89. package/src/types/rules/eslint-testing-library-rules.mts +128 -124
  90. package/src/types/rules/eslint-total-functions-rules.mts +16 -16
  91. package/src/types/rules/eslint-tree-shakable-rules.mts +3 -3
  92. package/src/types/rules/eslint-ts-restrictions-rules.mts +34 -33
  93. package/src/types/rules/eslint-unicorn-rules.mts +447 -436
  94. package/src/types/rules/eslint-vitest-coding-style-rules.mts +3 -3
  95. package/src/types/rules/eslint-vitest-rules.mts +232 -219
  96. package/src/types/rules/typescript-eslint-rules.mts +1511 -1489
@@ -40,15 +40,15 @@ namespace ComponentName {
40
40
  * ]
41
41
  * ```
42
42
  */
43
- export type Options = {
44
- readonly maxLength?: number;
45
- readonly pattern?: UnknownRecord;
46
- };
43
+ export type Options = Readonly<{
44
+ maxLength?: number;
45
+ pattern?: UnknownRecord;
46
+ }>;
47
47
 
48
48
  export type RuleEntry =
49
+ | 'off'
49
50
  | Linter.Severity
50
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
51
- | 'off';
51
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
52
52
  }
53
53
 
54
54
  /**
@@ -98,18 +98,18 @@ namespace ImportStyle {
98
98
  * ]
99
99
  * ```
100
100
  */
101
- export type Options = {
101
+ export type Options = Readonly<{
102
102
  /**
103
103
  * Import style to enforce: "namespace" for `import * as React` or "named"
104
104
  * for `import { ... }`
105
105
  */
106
- readonly importStyle?: 'named' | 'namespace';
107
- };
106
+ importStyle?: 'namespace' | 'named';
107
+ }>;
108
108
 
109
109
  export type RuleEntry =
110
+ | 'off'
110
111
  | Linter.Severity
111
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
112
- | 'off';
112
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
113
113
  }
114
114
 
115
115
  /**
@@ -212,31 +212,31 @@ namespace DisplayName {
212
212
  * ]
213
213
  * ```
214
214
  */
215
- export type Options = {
215
+ export type Options = Readonly<{
216
216
  /** When true, ignores components that get displayName from variable name */
217
- readonly ignoreTranspilerName?: boolean;
218
- };
217
+ ignoreTranspilerName?: boolean;
218
+ }>;
219
219
 
220
220
  export type RuleEntry =
221
+ | 'off'
221
222
  | Linter.Severity
222
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
223
- | 'off';
223
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
224
224
  }
225
225
 
226
- export type EslintReactCodingStyleRules = {
227
- readonly 'react-coding-style/component-name': ComponentName.RuleEntry;
228
- readonly 'react-coding-style/component-var-type-annotation': ComponentVarTypeAnnotation.RuleEntry;
229
- readonly 'react-coding-style/import-style': ImportStyle.RuleEntry;
230
- readonly 'react-coding-style/props-type-annotation-style': PropsTypeAnnotationStyle.RuleEntry;
231
- readonly 'react-coding-style/react-memo-props-argument-name': ReactMemoPropsArgumentName.RuleEntry;
232
- readonly 'react-coding-style/react-memo-type-parameter': ReactMemoTypeParameter.RuleEntry;
233
- readonly 'react-coding-style/use-memo-hook-style': UseMemoHookStyle.RuleEntry;
234
- readonly 'react-coding-style/ban-use-imperative-handle-hook': BanUseImperativeHandleHook.RuleEntry;
235
- readonly 'react-coding-style/display-name': DisplayName.RuleEntry;
236
- };
226
+ export type EslintReactCodingStyleRules = Readonly<{
227
+ 'react-coding-style/component-name': ComponentName.RuleEntry;
228
+ 'react-coding-style/component-var-type-annotation': ComponentVarTypeAnnotation.RuleEntry;
229
+ 'react-coding-style/import-style': ImportStyle.RuleEntry;
230
+ 'react-coding-style/props-type-annotation-style': PropsTypeAnnotationStyle.RuleEntry;
231
+ 'react-coding-style/react-memo-props-argument-name': ReactMemoPropsArgumentName.RuleEntry;
232
+ 'react-coding-style/react-memo-type-parameter': ReactMemoTypeParameter.RuleEntry;
233
+ 'react-coding-style/use-memo-hook-style': UseMemoHookStyle.RuleEntry;
234
+ 'react-coding-style/ban-use-imperative-handle-hook': BanUseImperativeHandleHook.RuleEntry;
235
+ 'react-coding-style/display-name': DisplayName.RuleEntry;
236
+ }>;
237
237
 
238
- export type EslintReactCodingStyleRulesOption = {
239
- readonly 'react-coding-style/component-name': ComponentName.Options;
240
- readonly 'react-coding-style/import-style': ImportStyle.Options;
241
- readonly 'react-coding-style/display-name': DisplayName.Options;
242
- };
238
+ export type EslintReactCodingStyleRulesOption = Readonly<{
239
+ 'react-coding-style/component-name': ComponentName.Options;
240
+ 'react-coding-style/import-style': ImportStyle.Options;
241
+ 'react-coding-style/display-name': DisplayName.Options;
242
+ }>;
@@ -53,17 +53,17 @@ namespace ExhaustiveDeps {
53
53
  * ]
54
54
  * ```
55
55
  */
56
- export type Options = {
57
- readonly additionalHooks?: string;
58
- readonly enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
59
- readonly experimental_autoDependenciesHooks?: readonly string[];
60
- readonly requireExplicitEffectDeps?: boolean;
61
- };
56
+ export type Options = Readonly<{
57
+ additionalHooks?: string;
58
+ enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean;
59
+ experimental_autoDependenciesHooks?: readonly string[];
60
+ requireExplicitEffectDeps?: boolean;
61
+ }>;
62
62
 
63
63
  export type RuleEntry =
64
+ | 'off'
64
65
  | Linter.Severity
65
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
66
- | 'off';
66
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
67
67
  }
68
68
 
69
69
  /**
@@ -97,14 +97,14 @@ namespace RulesOfHooks {
97
97
  * ]
98
98
  * ```
99
99
  */
100
- export type Options = {
101
- readonly additionalHooks?: string;
102
- };
100
+ export type Options = Readonly<{
101
+ additionalHooks?: string;
102
+ }>;
103
103
 
104
104
  export type RuleEntry =
105
+ | 'off'
105
106
  | Linter.Severity
106
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
107
- | 'off';
107
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
108
108
  }
109
109
 
110
110
  /**
@@ -136,9 +136,9 @@ namespace Hooks {
136
136
  export type Options = UnknownRecord;
137
137
 
138
138
  export type RuleEntry =
139
+ | 'off'
139
140
  | Linter.Severity
140
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
141
- | 'off';
141
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
142
142
  }
143
143
 
144
144
  /**
@@ -170,9 +170,9 @@ namespace CapitalizedCalls {
170
170
  export type Options = UnknownRecord;
171
171
 
172
172
  export type RuleEntry =
173
+ | 'off'
173
174
  | Linter.Severity
174
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
175
- | 'off';
175
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
176
176
  }
177
177
 
178
178
  /**
@@ -206,9 +206,9 @@ namespace StaticComponents {
206
206
  export type Options = UnknownRecord;
207
207
 
208
208
  export type RuleEntry =
209
+ | 'off'
209
210
  | Linter.Severity
210
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
211
- | 'off';
211
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
212
212
  }
213
213
 
214
214
  /**
@@ -242,9 +242,9 @@ namespace UseMemo {
242
242
  export type Options = UnknownRecord;
243
243
 
244
244
  export type RuleEntry =
245
+ | 'off'
245
246
  | Linter.Severity
246
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
247
- | 'off';
247
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
248
248
  }
249
249
 
250
250
  /**
@@ -278,9 +278,9 @@ namespace VoidUseMemo {
278
278
  export type Options = UnknownRecord;
279
279
 
280
280
  export type RuleEntry =
281
+ | 'off'
281
282
  | Linter.Severity
282
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
283
- | 'off';
283
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
284
284
  }
285
285
 
286
286
  /**
@@ -313,9 +313,9 @@ namespace ComponentHookFactories {
313
313
  export type Options = UnknownRecord;
314
314
 
315
315
  export type RuleEntry =
316
+ | 'off'
316
317
  | Linter.Severity
317
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
318
- | 'off';
318
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
319
319
  }
320
320
 
321
321
  /**
@@ -350,9 +350,9 @@ namespace PreserveManualMemoization {
350
350
  export type Options = UnknownRecord;
351
351
 
352
352
  export type RuleEntry =
353
+ | 'off'
353
354
  | Linter.Severity
354
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
355
- | 'off';
355
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
356
356
  }
357
357
 
358
358
  /**
@@ -385,9 +385,9 @@ namespace IncompatibleLibrary {
385
385
  export type Options = UnknownRecord;
386
386
 
387
387
  export type RuleEntry =
388
+ | 'off'
388
389
  | Linter.Severity
389
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
390
- | 'off';
390
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
391
391
  }
392
392
 
393
393
  /**
@@ -420,9 +420,9 @@ namespace Immutability {
420
420
  export type Options = UnknownRecord;
421
421
 
422
422
  export type RuleEntry =
423
+ | 'off'
423
424
  | Linter.Severity
424
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
425
- | 'off';
425
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
426
426
  }
427
427
 
428
428
  /**
@@ -456,9 +456,9 @@ namespace Globals {
456
456
  export type Options = UnknownRecord;
457
457
 
458
458
  export type RuleEntry =
459
+ | 'off'
459
460
  | Linter.Severity
460
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
461
- | 'off';
461
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
462
462
  }
463
463
 
464
464
  /**
@@ -492,9 +492,9 @@ namespace Refs {
492
492
  export type Options = UnknownRecord;
493
493
 
494
494
  export type RuleEntry =
495
+ | 'off'
495
496
  | Linter.Severity
496
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
497
- | 'off';
497
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
498
498
  }
499
499
 
500
500
  /**
@@ -526,9 +526,9 @@ namespace MemoizedEffectDependencies {
526
526
  export type Options = UnknownRecord;
527
527
 
528
528
  export type RuleEntry =
529
+ | 'off'
529
530
  | Linter.Severity
530
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
531
- | 'off';
531
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
532
532
  }
533
533
 
534
534
  /**
@@ -561,9 +561,9 @@ namespace SetStateInEffect {
561
561
  export type Options = UnknownRecord;
562
562
 
563
563
  export type RuleEntry =
564
+ | 'off'
564
565
  | Linter.Severity
565
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
566
- | 'off';
566
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
567
567
  }
568
568
 
569
569
  /**
@@ -595,9 +595,9 @@ namespace NoDerivingStateInEffects {
595
595
  export type Options = UnknownRecord;
596
596
 
597
597
  export type RuleEntry =
598
+ | 'off'
598
599
  | Linter.Severity
599
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
600
- | 'off';
600
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
601
601
  }
602
602
 
603
603
  /**
@@ -630,9 +630,9 @@ namespace ErrorBoundaries {
630
630
  export type Options = UnknownRecord;
631
631
 
632
632
  export type RuleEntry =
633
+ | 'off'
633
634
  | Linter.Severity
634
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
635
- | 'off';
635
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
636
636
  }
637
637
 
638
638
  /**
@@ -666,9 +666,9 @@ namespace Purity {
666
666
  export type Options = UnknownRecord;
667
667
 
668
668
  export type RuleEntry =
669
+ | 'off'
669
670
  | Linter.Severity
670
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
671
- | 'off';
671
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
672
672
  }
673
673
 
674
674
  /**
@@ -701,9 +701,9 @@ namespace SetStateInRender {
701
701
  export type Options = UnknownRecord;
702
702
 
703
703
  export type RuleEntry =
704
+ | 'off'
704
705
  | Linter.Severity
705
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
706
- | 'off';
706
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
707
707
  }
708
708
 
709
709
  /**
@@ -735,9 +735,9 @@ namespace Invariant {
735
735
  export type Options = UnknownRecord;
736
736
 
737
737
  export type RuleEntry =
738
+ | 'off'
738
739
  | Linter.Severity
739
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
740
- | 'off';
740
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
741
741
  }
742
742
 
743
743
  /**
@@ -769,9 +769,9 @@ namespace Todo {
769
769
  export type Options = UnknownRecord;
770
770
 
771
771
  export type RuleEntry =
772
+ | 'off'
772
773
  | Linter.Severity
773
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
774
- | 'off';
774
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
775
775
  }
776
776
 
777
777
  /**
@@ -803,9 +803,9 @@ namespace Syntax {
803
803
  export type Options = UnknownRecord;
804
804
 
805
805
  export type RuleEntry =
806
+ | 'off'
806
807
  | Linter.Severity
807
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
808
- | 'off';
808
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
809
809
  }
810
810
 
811
811
  /**
@@ -837,9 +837,9 @@ namespace UnsupportedSyntax {
837
837
  export type Options = UnknownRecord;
838
838
 
839
839
  export type RuleEntry =
840
+ | 'off'
840
841
  | Linter.Severity
841
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
842
- | 'off';
842
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
843
843
  }
844
844
 
845
845
  /**
@@ -871,9 +871,9 @@ namespace Config {
871
871
  export type Options = UnknownRecord;
872
872
 
873
873
  export type RuleEntry =
874
+ | 'off'
874
875
  | Linter.Severity
875
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
876
- | 'off';
876
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
877
877
  }
878
878
 
879
879
  /**
@@ -906,9 +906,9 @@ namespace Gating {
906
906
  export type Options = UnknownRecord;
907
907
 
908
908
  export type RuleEntry =
909
+ | 'off'
909
910
  | Linter.Severity
910
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
911
- | 'off';
911
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
912
912
  }
913
913
 
914
914
  /**
@@ -940,9 +940,9 @@ namespace RuleSuppression {
940
940
  export type Options = UnknownRecord;
941
941
 
942
942
  export type RuleEntry =
943
+ | 'off'
943
944
  | Linter.Severity
944
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
945
- | 'off';
945
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
946
946
  }
947
947
 
948
948
  /**
@@ -974,9 +974,9 @@ namespace AutomaticEffectDependencies {
974
974
  export type Options = UnknownRecord;
975
975
 
976
976
  export type RuleEntry =
977
+ | 'off'
977
978
  | Linter.Severity
978
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
979
- | 'off';
979
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
980
980
  }
981
981
 
982
982
  /**
@@ -1008,9 +1008,9 @@ namespace Fire {
1008
1008
  export type Options = UnknownRecord;
1009
1009
 
1010
1010
  export type RuleEntry =
1011
+ | 'off'
1011
1012
  | Linter.Severity
1012
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1013
- | 'off';
1013
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1014
1014
  }
1015
1015
 
1016
1016
  /**
@@ -1042,71 +1042,71 @@ namespace Fbt {
1042
1042
  export type Options = UnknownRecord;
1043
1043
 
1044
1044
  export type RuleEntry =
1045
+ | 'off'
1045
1046
  | Linter.Severity
1046
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1047
- | 'off';
1047
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1048
1048
  }
1049
1049
 
1050
- export type EslintReactHooksRules = {
1051
- readonly 'react-hooks/exhaustive-deps': ExhaustiveDeps.RuleEntry;
1052
- readonly 'react-hooks/rules-of-hooks': RulesOfHooks.RuleEntry;
1053
- readonly 'react-hooks/hooks': Hooks.RuleEntry;
1054
- readonly 'react-hooks/capitalized-calls': CapitalizedCalls.RuleEntry;
1055
- readonly 'react-hooks/static-components': StaticComponents.RuleEntry;
1056
- readonly 'react-hooks/use-memo': UseMemo.RuleEntry;
1057
- readonly 'react-hooks/void-use-memo': VoidUseMemo.RuleEntry;
1058
- readonly 'react-hooks/component-hook-factories': ComponentHookFactories.RuleEntry;
1059
- readonly 'react-hooks/preserve-manual-memoization': PreserveManualMemoization.RuleEntry;
1060
- readonly 'react-hooks/incompatible-library': IncompatibleLibrary.RuleEntry;
1061
- readonly 'react-hooks/immutability': Immutability.RuleEntry;
1062
- readonly 'react-hooks/globals': Globals.RuleEntry;
1063
- readonly 'react-hooks/refs': Refs.RuleEntry;
1064
- readonly 'react-hooks/memoized-effect-dependencies': MemoizedEffectDependencies.RuleEntry;
1065
- readonly 'react-hooks/set-state-in-effect': SetStateInEffect.RuleEntry;
1066
- readonly 'react-hooks/no-deriving-state-in-effects': NoDerivingStateInEffects.RuleEntry;
1067
- readonly 'react-hooks/error-boundaries': ErrorBoundaries.RuleEntry;
1068
- readonly 'react-hooks/purity': Purity.RuleEntry;
1069
- readonly 'react-hooks/set-state-in-render': SetStateInRender.RuleEntry;
1070
- readonly 'react-hooks/invariant': Invariant.RuleEntry;
1071
- readonly 'react-hooks/todo': Todo.RuleEntry;
1072
- readonly 'react-hooks/syntax': Syntax.RuleEntry;
1073
- readonly 'react-hooks/unsupported-syntax': UnsupportedSyntax.RuleEntry;
1074
- readonly 'react-hooks/config': Config.RuleEntry;
1075
- readonly 'react-hooks/gating': Gating.RuleEntry;
1076
- readonly 'react-hooks/rule-suppression': RuleSuppression.RuleEntry;
1077
- readonly 'react-hooks/automatic-effect-dependencies': AutomaticEffectDependencies.RuleEntry;
1078
- readonly 'react-hooks/fire': Fire.RuleEntry;
1079
- readonly 'react-hooks/fbt': Fbt.RuleEntry;
1080
- };
1050
+ export type EslintReactHooksRules = Readonly<{
1051
+ 'react-hooks/exhaustive-deps': ExhaustiveDeps.RuleEntry;
1052
+ 'react-hooks/rules-of-hooks': RulesOfHooks.RuleEntry;
1053
+ 'react-hooks/hooks': Hooks.RuleEntry;
1054
+ 'react-hooks/capitalized-calls': CapitalizedCalls.RuleEntry;
1055
+ 'react-hooks/static-components': StaticComponents.RuleEntry;
1056
+ 'react-hooks/use-memo': UseMemo.RuleEntry;
1057
+ 'react-hooks/void-use-memo': VoidUseMemo.RuleEntry;
1058
+ 'react-hooks/component-hook-factories': ComponentHookFactories.RuleEntry;
1059
+ 'react-hooks/preserve-manual-memoization': PreserveManualMemoization.RuleEntry;
1060
+ 'react-hooks/incompatible-library': IncompatibleLibrary.RuleEntry;
1061
+ 'react-hooks/immutability': Immutability.RuleEntry;
1062
+ 'react-hooks/globals': Globals.RuleEntry;
1063
+ 'react-hooks/refs': Refs.RuleEntry;
1064
+ 'react-hooks/memoized-effect-dependencies': MemoizedEffectDependencies.RuleEntry;
1065
+ 'react-hooks/set-state-in-effect': SetStateInEffect.RuleEntry;
1066
+ 'react-hooks/no-deriving-state-in-effects': NoDerivingStateInEffects.RuleEntry;
1067
+ 'react-hooks/error-boundaries': ErrorBoundaries.RuleEntry;
1068
+ 'react-hooks/purity': Purity.RuleEntry;
1069
+ 'react-hooks/set-state-in-render': SetStateInRender.RuleEntry;
1070
+ 'react-hooks/invariant': Invariant.RuleEntry;
1071
+ 'react-hooks/todo': Todo.RuleEntry;
1072
+ 'react-hooks/syntax': Syntax.RuleEntry;
1073
+ 'react-hooks/unsupported-syntax': UnsupportedSyntax.RuleEntry;
1074
+ 'react-hooks/config': Config.RuleEntry;
1075
+ 'react-hooks/gating': Gating.RuleEntry;
1076
+ 'react-hooks/rule-suppression': RuleSuppression.RuleEntry;
1077
+ 'react-hooks/automatic-effect-dependencies': AutomaticEffectDependencies.RuleEntry;
1078
+ 'react-hooks/fire': Fire.RuleEntry;
1079
+ 'react-hooks/fbt': Fbt.RuleEntry;
1080
+ }>;
1081
1081
 
1082
- export type EslintReactHooksRulesOption = {
1083
- readonly 'react-hooks/exhaustive-deps': ExhaustiveDeps.Options;
1084
- readonly 'react-hooks/rules-of-hooks': RulesOfHooks.Options;
1085
- readonly 'react-hooks/hooks': Hooks.Options;
1086
- readonly 'react-hooks/capitalized-calls': CapitalizedCalls.Options;
1087
- readonly 'react-hooks/static-components': StaticComponents.Options;
1088
- readonly 'react-hooks/use-memo': UseMemo.Options;
1089
- readonly 'react-hooks/void-use-memo': VoidUseMemo.Options;
1090
- readonly 'react-hooks/component-hook-factories': ComponentHookFactories.Options;
1091
- readonly 'react-hooks/preserve-manual-memoization': PreserveManualMemoization.Options;
1092
- readonly 'react-hooks/incompatible-library': IncompatibleLibrary.Options;
1093
- readonly 'react-hooks/immutability': Immutability.Options;
1094
- readonly 'react-hooks/globals': Globals.Options;
1095
- readonly 'react-hooks/refs': Refs.Options;
1096
- readonly 'react-hooks/memoized-effect-dependencies': MemoizedEffectDependencies.Options;
1097
- readonly 'react-hooks/set-state-in-effect': SetStateInEffect.Options;
1098
- readonly 'react-hooks/no-deriving-state-in-effects': NoDerivingStateInEffects.Options;
1099
- readonly 'react-hooks/error-boundaries': ErrorBoundaries.Options;
1100
- readonly 'react-hooks/purity': Purity.Options;
1101
- readonly 'react-hooks/set-state-in-render': SetStateInRender.Options;
1102
- readonly 'react-hooks/invariant': Invariant.Options;
1103
- readonly 'react-hooks/todo': Todo.Options;
1104
- readonly 'react-hooks/syntax': Syntax.Options;
1105
- readonly 'react-hooks/unsupported-syntax': UnsupportedSyntax.Options;
1106
- readonly 'react-hooks/config': Config.Options;
1107
- readonly 'react-hooks/gating': Gating.Options;
1108
- readonly 'react-hooks/rule-suppression': RuleSuppression.Options;
1109
- readonly 'react-hooks/automatic-effect-dependencies': AutomaticEffectDependencies.Options;
1110
- readonly 'react-hooks/fire': Fire.Options;
1111
- readonly 'react-hooks/fbt': Fbt.Options;
1112
- };
1082
+ export type EslintReactHooksRulesOption = Readonly<{
1083
+ 'react-hooks/exhaustive-deps': ExhaustiveDeps.Options;
1084
+ 'react-hooks/rules-of-hooks': RulesOfHooks.Options;
1085
+ 'react-hooks/hooks': Hooks.Options;
1086
+ 'react-hooks/capitalized-calls': CapitalizedCalls.Options;
1087
+ 'react-hooks/static-components': StaticComponents.Options;
1088
+ 'react-hooks/use-memo': UseMemo.Options;
1089
+ 'react-hooks/void-use-memo': VoidUseMemo.Options;
1090
+ 'react-hooks/component-hook-factories': ComponentHookFactories.Options;
1091
+ 'react-hooks/preserve-manual-memoization': PreserveManualMemoization.Options;
1092
+ 'react-hooks/incompatible-library': IncompatibleLibrary.Options;
1093
+ 'react-hooks/immutability': Immutability.Options;
1094
+ 'react-hooks/globals': Globals.Options;
1095
+ 'react-hooks/refs': Refs.Options;
1096
+ 'react-hooks/memoized-effect-dependencies': MemoizedEffectDependencies.Options;
1097
+ 'react-hooks/set-state-in-effect': SetStateInEffect.Options;
1098
+ 'react-hooks/no-deriving-state-in-effects': NoDerivingStateInEffects.Options;
1099
+ 'react-hooks/error-boundaries': ErrorBoundaries.Options;
1100
+ 'react-hooks/purity': Purity.Options;
1101
+ 'react-hooks/set-state-in-render': SetStateInRender.Options;
1102
+ 'react-hooks/invariant': Invariant.Options;
1103
+ 'react-hooks/todo': Todo.Options;
1104
+ 'react-hooks/syntax': Syntax.Options;
1105
+ 'react-hooks/unsupported-syntax': UnsupportedSyntax.Options;
1106
+ 'react-hooks/config': Config.Options;
1107
+ 'react-hooks/gating': Gating.Options;
1108
+ 'react-hooks/rule-suppression': RuleSuppression.Options;
1109
+ 'react-hooks/automatic-effect-dependencies': AutomaticEffectDependencies.Options;
1110
+ 'react-hooks/fire': Fire.Options;
1111
+ 'react-hooks/fbt': Fbt.Options;
1112
+ }>;