eslint-config-typed 3.13.3 → 3.13.5

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 +3 -1
  2. package/dist/rules/typescript-eslint-rules.d.mts.map +1 -1
  3. package/dist/rules/typescript-eslint-rules.mjs +8 -1
  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 +9 -1
  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
@@ -71,20 +71,20 @@ namespace ArrayType {
71
71
  * ]
72
72
  * ```
73
73
  */
74
- export type Options = {
74
+ export type Options = Readonly<{
75
75
  /** The array type expected for mutable cases. */
76
- readonly default?: 'array-simple' | 'array' | 'generic';
76
+ default?: 'array' | 'generic' | 'array-simple';
77
77
  /**
78
78
  * The array type expected for readonly cases. If omitted, the value for
79
79
  * `default` will be used.
80
80
  */
81
- readonly readonly?: 'array-simple' | 'array' | 'generic';
82
- };
81
+ readonly?: 'array' | 'generic' | 'array-simple';
82
+ }>;
83
83
 
84
84
  export type RuleEntry =
85
+ | 'off'
85
86
  | Linter.Severity
86
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
87
- | 'off';
87
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
88
88
  }
89
89
 
90
90
  /**
@@ -179,46 +179,46 @@ namespace BanTsComment {
179
179
  * ]
180
180
  * ```
181
181
  */
182
- export type Options = {
182
+ export type Options = Readonly<{
183
183
  /**
184
184
  * A minimum character length for descriptions when `allow-with-description`
185
185
  * is enabled.
186
186
  */
187
- readonly minimumDescriptionLength?: number;
187
+ minimumDescriptionLength?: number;
188
188
  /** Whether allow ts-check directives, and with which restrictions. */
189
- readonly 'ts-check'?:
189
+ 'ts-check'?:
190
190
  | boolean
191
191
  | 'allow-with-description'
192
- | {
193
- readonly descriptionFormat?: string;
194
- };
192
+ | Readonly<{
193
+ descriptionFormat?: string;
194
+ }>;
195
195
  /** Whether and when expect-error directives, and with which restrictions. */
196
- readonly 'ts-expect-error'?:
196
+ 'ts-expect-error'?:
197
197
  | boolean
198
198
  | 'allow-with-description'
199
- | {
200
- readonly descriptionFormat?: string;
201
- };
199
+ | Readonly<{
200
+ descriptionFormat?: string;
201
+ }>;
202
202
  /** Whether allow ts-ignore directives, and with which restrictions. */
203
- readonly 'ts-ignore'?:
203
+ 'ts-ignore'?:
204
204
  | boolean
205
205
  | 'allow-with-description'
206
- | {
207
- readonly descriptionFormat?: string;
208
- };
206
+ | Readonly<{
207
+ descriptionFormat?: string;
208
+ }>;
209
209
  /** Whether allow ts-nocheck directives, and with which restrictions. */
210
- readonly 'ts-nocheck'?:
210
+ 'ts-nocheck'?:
211
211
  | boolean
212
212
  | 'allow-with-description'
213
- | {
214
- readonly descriptionFormat?: string;
215
- };
216
- };
213
+ | Readonly<{
214
+ descriptionFormat?: string;
215
+ }>;
216
+ }>;
217
217
 
218
218
  export type RuleEntry =
219
+ | 'off'
219
220
  | Linter.Severity
220
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
221
- | 'off';
221
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
222
222
  }
223
223
 
224
224
  /**
@@ -274,9 +274,9 @@ namespace ClassLiteralPropertyStyle {
274
274
  export type Options = 'fields' | 'getters';
275
275
 
276
276
  export type RuleEntry =
277
+ | 'off'
277
278
  | Linter.Severity
278
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
279
- | 'off';
279
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
280
280
  }
281
281
 
282
282
  /**
@@ -338,27 +338,27 @@ namespace ClassMethodsUseThis {
338
338
  * ]
339
339
  * ```
340
340
  */
341
- export type Options = {
341
+ export type Options = Readonly<{
342
342
  /**
343
343
  * Enforces that functions used as instance field initializers utilize
344
344
  * `this`.
345
345
  */
346
- readonly enforceForClassFields?: boolean;
346
+ enforceForClassFields?: boolean;
347
347
  /** Allows specified method names to be ignored with this rule. */
348
- readonly exceptMethods?: readonly string[];
348
+ exceptMethods?: readonly string[];
349
349
  /**
350
350
  * Whether to ignore class members that are defined within a class that
351
351
  * `implements` a type.
352
352
  */
353
- readonly ignoreClassesThatImplementAnInterface?: boolean | 'public-fields';
353
+ ignoreClassesThatImplementAnInterface?: boolean | 'public-fields';
354
354
  /** Whether to ignore members marked with the `override` modifier. */
355
- readonly ignoreOverrideMethods?: boolean;
356
- };
355
+ ignoreOverrideMethods?: boolean;
356
+ }>;
357
357
 
358
358
  export type RuleEntry =
359
+ | 'off'
359
360
  | Linter.Severity
360
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
361
- | 'off';
361
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
362
362
  }
363
363
 
364
364
  /**
@@ -394,12 +394,12 @@ namespace ConsistentGenericConstructors {
394
394
  * ```
395
395
  */
396
396
  /** Which constructor call syntax to prefer. */
397
- export type Options = 'constructor' | 'type-annotation';
397
+ export type Options = 'type-annotation' | 'constructor';
398
398
 
399
399
  export type RuleEntry =
400
+ | 'off'
400
401
  | Linter.Severity
401
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
402
- | 'off';
402
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
403
403
  }
404
404
 
405
405
  /**
@@ -435,12 +435,12 @@ namespace ConsistentIndexedObjectStyle {
435
435
  * ```
436
436
  */
437
437
  /** Which indexed object syntax to prefer. */
438
- export type Options = 'index-signature' | 'record';
438
+ export type Options = 'record' | 'index-signature';
439
439
 
440
440
  export type RuleEntry =
441
+ | 'off'
441
442
  | Linter.Severity
442
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
443
- | 'off';
443
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
444
444
  }
445
445
 
446
446
  /**
@@ -474,14 +474,14 @@ namespace ConsistentReturn {
474
474
  * ]
475
475
  * ```
476
476
  */
477
- export type Options = {
478
- readonly treatUndefinedAsUnspecified?: boolean;
479
- };
477
+ export type Options = Readonly<{
478
+ treatUndefinedAsUnspecified?: boolean;
479
+ }>;
480
480
 
481
481
  export type RuleEntry =
482
+ | 'off'
482
483
  | Linter.Severity
483
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
484
- | 'off';
484
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
485
485
  }
486
486
 
487
487
  /**
@@ -560,36 +560,31 @@ namespace ConsistentTypeAssertions {
560
560
  * ]
561
561
  * ```
562
562
  */
563
- export type Options =
563
+ export type Options = Readonly<
564
+ | {
565
+ /** The expected assertion style to enforce. */
566
+ assertionStyle: 'never';
567
+ }
564
568
  | {
565
569
  /**
566
570
  * Whether to always prefer type declarations for array literals used as
567
571
  * variable initializers, rather than type assertions.
568
572
  */
569
- readonly arrayLiteralTypeAssertions?:
570
- | 'allow-as-parameter'
571
- | 'allow'
572
- | 'never';
573
+ arrayLiteralTypeAssertions?: 'allow' | 'allow-as-parameter' | 'never';
573
574
  /** The expected assertion style to enforce. */
574
- readonly assertionStyle?: 'angle-bracket' | 'as';
575
+ assertionStyle?: 'as' | 'angle-bracket';
575
576
  /**
576
577
  * Whether to always prefer type declarations for object literals used
577
578
  * as variable initializers, rather than type assertions.
578
579
  */
579
- readonly objectLiteralTypeAssertions?:
580
- | 'allow-as-parameter'
581
- | 'allow'
582
- | 'never';
580
+ objectLiteralTypeAssertions?: 'allow' | 'allow-as-parameter' | 'never';
583
581
  }
584
- | {
585
- /** The expected assertion style to enforce. */
586
- readonly assertionStyle: 'never';
587
- };
582
+ >;
588
583
 
589
584
  export type RuleEntry =
585
+ | 'off'
590
586
  | Linter.Severity
591
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
592
- | 'off';
587
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
593
588
  }
594
589
 
595
590
  /**
@@ -627,9 +622,9 @@ namespace ConsistentTypeDefinitions {
627
622
  export type Options = 'interface' | 'type';
628
623
 
629
624
  export type RuleEntry =
625
+ | 'off'
630
626
  | Linter.Severity
631
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
632
- | 'off';
627
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
633
628
  }
634
629
 
635
630
  /**
@@ -665,18 +660,18 @@ namespace ConsistentTypeExports {
665
660
  * ]
666
661
  * ```
667
662
  */
668
- export type Options = {
663
+ export type Options = Readonly<{
669
664
  /**
670
665
  * Whether the rule will autofix "mixed" export cases using TS inline type
671
666
  * specifiers.
672
667
  */
673
- readonly fixMixedExportsWithInlineTypeSpecifier?: boolean;
674
- };
668
+ fixMixedExportsWithInlineTypeSpecifier?: boolean;
669
+ }>;
675
670
 
676
671
  export type RuleEntry =
672
+ | 'off'
677
673
  | Linter.Severity
678
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
679
- | 'off';
674
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
680
675
  }
681
676
 
682
677
  /**
@@ -727,22 +722,22 @@ namespace ConsistentTypeImports {
727
722
  * ]
728
723
  * ```
729
724
  */
730
- export type Options = {
725
+ export type Options = Readonly<{
731
726
  /** Whether to disallow type imports in type annotations (`import()`). */
732
- readonly disallowTypeAnnotations?: boolean;
727
+ disallowTypeAnnotations?: boolean;
733
728
  /**
734
729
  * The expected type modifier to be added when an import is detected as used
735
730
  * only in the type position.
736
731
  */
737
- readonly fixStyle?: 'inline-type-imports' | 'separate-type-imports';
732
+ fixStyle?: 'separate-type-imports' | 'inline-type-imports';
738
733
  /** The expected import kind for type-only imports. */
739
- readonly prefer?: 'no-type-imports' | 'type-imports';
740
- };
734
+ prefer?: 'type-imports' | 'no-type-imports';
735
+ }>;
741
736
 
742
737
  export type RuleEntry =
738
+ | 'off'
743
739
  | Linter.Severity
744
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
745
- | 'off';
740
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
746
741
  }
747
742
 
748
743
  /**
@@ -811,32 +806,32 @@ namespace DotNotation {
811
806
  * ]
812
807
  * ```
813
808
  */
814
- export type Options = {
809
+ export type Options = Readonly<{
815
810
  /**
816
811
  * Whether to allow accessing properties matching an index signature with
817
812
  * array notation.
818
813
  */
819
- readonly allowIndexSignaturePropertyAccess?: boolean;
814
+ allowIndexSignaturePropertyAccess?: boolean;
820
815
  /** Whether to allow keywords such as ["class"]`. */
821
- readonly allowKeywords?: boolean;
816
+ allowKeywords?: boolean;
822
817
  /** Regular expression of names to allow. */
823
- readonly allowPattern?: string;
818
+ allowPattern?: string;
824
819
  /**
825
820
  * Whether to allow accessing class members marked as `private` with array
826
821
  * notation.
827
822
  */
828
- readonly allowPrivateClassPropertyAccess?: boolean;
823
+ allowPrivateClassPropertyAccess?: boolean;
829
824
  /**
830
825
  * Whether to allow accessing class members marked as `protected` with array
831
826
  * notation.
832
827
  */
833
- readonly allowProtectedClassPropertyAccess?: boolean;
834
- };
828
+ allowProtectedClassPropertyAccess?: boolean;
829
+ }>;
835
830
 
836
831
  export type RuleEntry =
832
+ | 'off'
837
833
  | Linter.Severity
838
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
839
- | 'off';
834
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
840
835
  }
841
836
 
842
837
  /**
@@ -901,44 +896,44 @@ namespace ExplicitFunctionReturnType {
901
896
  * ]
902
897
  * ```
903
898
  */
904
- export type Options = {
899
+ export type Options = Readonly<{
905
900
  /** Whether to allow arrow functions that start with the `void` keyword. */
906
- readonly allowConciseArrowFunctionExpressionsStartingWithVoid?: boolean;
901
+ allowConciseArrowFunctionExpressionsStartingWithVoid?: boolean;
907
902
  /**
908
903
  * Whether to ignore arrow functions immediately returning a `as const`
909
904
  * value.
910
905
  */
911
- readonly allowDirectConstAssertionInArrowFunctions?: boolean;
906
+ allowDirectConstAssertionInArrowFunctions?: boolean;
912
907
  /**
913
908
  * An array of function/method names that will not have their arguments or
914
909
  * return values checked.
915
910
  */
916
- readonly allowedNames?: readonly string[];
911
+ allowedNames?: readonly string[];
917
912
  /**
918
913
  * Whether to ignore function expressions (functions which are not part of a
919
914
  * declaration).
920
915
  */
921
- readonly allowExpressions?: boolean;
916
+ allowExpressions?: boolean;
922
917
  /** Whether to ignore functions that don't have generic type parameters. */
923
- readonly allowFunctionsWithoutTypeParameters?: boolean;
918
+ allowFunctionsWithoutTypeParameters?: boolean;
924
919
  /**
925
920
  * Whether to ignore functions immediately returning another function
926
921
  * expression.
927
922
  */
928
- readonly allowHigherOrderFunctions?: boolean;
923
+ allowHigherOrderFunctions?: boolean;
929
924
  /** Whether to ignore immediately invoked function expressions (IIFEs). */
930
- readonly allowIIFEs?: boolean;
925
+ allowIIFEs?: boolean;
931
926
  /**
932
927
  * Whether to ignore type annotations on the variable of function
933
928
  * expressions.
934
929
  */
935
- readonly allowTypedFunctionExpressions?: boolean;
936
- };
930
+ allowTypedFunctionExpressions?: boolean;
931
+ }>;
937
932
 
938
933
  export type RuleEntry =
934
+ | 'off'
939
935
  | Linter.Severity
940
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
941
- | 'off';
936
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
942
937
  }
943
938
 
944
939
  /**
@@ -1035,45 +1030,45 @@ namespace ExplicitMemberAccessibility {
1035
1030
  * ]
1036
1031
  * ```
1037
1032
  */
1038
- export type Options = {
1033
+ export type Options = Readonly<{
1039
1034
  /** Which accessibility modifier is required to exist or not exist. */
1040
- readonly accessibility?: 'explicit' | 'no-public' | 'off';
1035
+ accessibility?: 'explicit' | 'no-public' | 'off';
1041
1036
  /** Specific method names that may be ignored. */
1042
- readonly ignoredMethodNames?: readonly string[];
1037
+ ignoredMethodNames?: readonly string[];
1043
1038
  /**
1044
1039
  * Changes to required accessibility modifiers for specific kinds of class
1045
1040
  * members.
1046
1041
  */
1047
- readonly overrides?: {
1042
+ overrides?: Readonly<{
1048
1043
  /**
1049
1044
  * Which member accessibility modifier requirements to apply for
1050
1045
  * accessors.
1051
1046
  */
1052
- readonly accessors?: 'explicit' | 'no-public' | 'off';
1047
+ accessors?: 'explicit' | 'no-public' | 'off';
1053
1048
  /**
1054
1049
  * Which member accessibility modifier requirements to apply for
1055
1050
  * constructors.
1056
1051
  */
1057
- readonly constructors?: 'explicit' | 'no-public' | 'off';
1052
+ constructors?: 'explicit' | 'no-public' | 'off';
1058
1053
  /** Which member accessibility modifier requirements to apply for methods. */
1059
- readonly methods?: 'explicit' | 'no-public' | 'off';
1054
+ methods?: 'explicit' | 'no-public' | 'off';
1060
1055
  /**
1061
1056
  * Which member accessibility modifier requirements to apply for
1062
1057
  * parameterProperties.
1063
1058
  */
1064
- readonly parameterProperties?: 'explicit' | 'no-public' | 'off';
1059
+ parameterProperties?: 'explicit' | 'no-public' | 'off';
1065
1060
  /**
1066
1061
  * Which member accessibility modifier requirements to apply for
1067
1062
  * properties.
1068
1063
  */
1069
- readonly properties?: 'explicit' | 'no-public' | 'off';
1070
- };
1071
- };
1064
+ properties?: 'explicit' | 'no-public' | 'off';
1065
+ }>;
1066
+ }>;
1072
1067
 
1073
1068
  export type RuleEntry =
1069
+ | 'off'
1074
1070
  | Linter.Severity
1075
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1076
- | 'off';
1071
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1077
1072
  }
1078
1073
 
1079
1074
  /**
@@ -1131,42 +1126,42 @@ namespace ExplicitModuleBoundaryTypes {
1131
1126
  * ]
1132
1127
  * ```
1133
1128
  */
1134
- export type Options = {
1129
+ export type Options = Readonly<{
1135
1130
  /** Whether to ignore arguments that are explicitly typed as `any`. */
1136
- readonly allowArgumentsExplicitlyTypedAsAny?: boolean;
1131
+ allowArgumentsExplicitlyTypedAsAny?: boolean;
1137
1132
  /**
1138
1133
  * Whether to ignore return type annotations on body-less arrow functions
1139
1134
  * that return an `as const` type assertion. You must still type the
1140
1135
  * parameters of the function.
1141
1136
  */
1142
- readonly allowDirectConstAssertionInArrowFunctions?: boolean;
1137
+ allowDirectConstAssertionInArrowFunctions?: boolean;
1143
1138
  /**
1144
1139
  * An array of function/method names that will not have their arguments or
1145
1140
  * return values checked.
1146
1141
  */
1147
- readonly allowedNames?: readonly string[];
1142
+ allowedNames?: readonly string[];
1148
1143
  /**
1149
1144
  * Whether to ignore return type annotations on functions immediately
1150
1145
  * returning another function expression. You must still type the parameters
1151
1146
  * of the function.
1152
1147
  */
1153
- readonly allowHigherOrderFunctions?: boolean;
1148
+ allowHigherOrderFunctions?: boolean;
1154
1149
  /**
1155
1150
  * Whether to ignore return type annotations on functions with overload
1156
1151
  * signatures.
1157
1152
  */
1158
- readonly allowOverloadFunctions?: boolean;
1153
+ allowOverloadFunctions?: boolean;
1159
1154
  /**
1160
1155
  * Whether to ignore type annotations on the variable of a function
1161
1156
  * expression.
1162
1157
  */
1163
- readonly allowTypedFunctionExpressions?: boolean;
1164
- };
1158
+ allowTypedFunctionExpressions?: boolean;
1159
+ }>;
1165
1160
 
1166
1161
  export type RuleEntry =
1162
+ | 'off'
1167
1163
  | Linter.Severity
1168
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1169
- | 'off';
1164
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1170
1165
  }
1171
1166
 
1172
1167
  /**
@@ -1222,20 +1217,20 @@ namespace InitDeclarations {
1222
1217
  * ```
1223
1218
  */
1224
1219
  export type Options =
1225
- | readonly [
1226
- 'never',
1227
- {
1228
- readonly ignoreForLoopInit?: boolean;
1229
- },
1230
- ]
1220
+ | readonly []
1231
1221
  | readonly ['always']
1232
1222
  | readonly ['never']
1233
- | readonly [];
1223
+ | readonly [
1224
+ 'never',
1225
+ Readonly<{
1226
+ ignoreForLoopInit?: boolean;
1227
+ }>,
1228
+ ];
1234
1229
 
1235
1230
  export type RuleEntry =
1231
+ | 'off'
1236
1232
  | Linter.Severity
1237
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1238
- | 'off';
1233
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1239
1234
  }
1240
1235
 
1241
1236
  /**
@@ -1279,19 +1274,19 @@ namespace MaxParams {
1279
1274
  * ]
1280
1275
  * ```
1281
1276
  */
1282
- export type Options = {
1277
+ export type Options = Readonly<{
1283
1278
  /** Whether to count a `this` declaration when the type is `void`. */
1284
- readonly countVoidThis?: boolean;
1279
+ countVoidThis?: boolean;
1285
1280
  /** A maximum number of parameters in function definitions. */
1286
- readonly max?: number;
1281
+ max?: number;
1287
1282
  /** (deprecated) A maximum number of parameters in function definitions. */
1288
- readonly maximum?: number;
1289
- };
1283
+ maximum?: number;
1284
+ }>;
1290
1285
 
1291
1286
  export type RuleEntry =
1287
+ | 'off'
1292
1288
  | Linter.Severity
1293
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1294
- | 'off';
1289
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1295
1290
  }
1296
1291
 
1297
1292
  /**
@@ -1658,236 +1653,229 @@ namespace MemberOrdering {
1658
1653
  * ```
1659
1654
  */
1660
1655
  export type AllItems =
1661
- | '#private-accessor'
1662
- | '#private-field'
1663
- | '#private-get'
1664
- | '#private-instance-accessor'
1665
- | '#private-instance-field'
1666
- | '#private-instance-get'
1667
- | '#private-instance-method'
1668
- | '#private-instance-readonly-field'
1669
- | '#private-instance-set'
1670
- | '#private-instance-static-initialization'
1671
- | '#private-method'
1656
+ | 'readonly-signature'
1657
+ | 'signature'
1658
+ | 'readonly-field'
1659
+ | 'public-readonly-field'
1660
+ | 'public-decorated-readonly-field'
1661
+ | 'decorated-readonly-field'
1662
+ | 'static-readonly-field'
1663
+ | 'public-static-readonly-field'
1664
+ | 'instance-readonly-field'
1665
+ | 'public-instance-readonly-field'
1666
+ | 'abstract-readonly-field'
1667
+ | 'public-abstract-readonly-field'
1668
+ | 'protected-readonly-field'
1669
+ | 'protected-decorated-readonly-field'
1670
+ | 'protected-static-readonly-field'
1671
+ | 'protected-instance-readonly-field'
1672
+ | 'protected-abstract-readonly-field'
1673
+ | 'private-readonly-field'
1674
+ | 'private-decorated-readonly-field'
1675
+ | 'private-static-readonly-field'
1676
+ | 'private-instance-readonly-field'
1672
1677
  | '#private-readonly-field'
1673
- | '#private-set'
1674
- | '#private-static-accessor'
1675
- | '#private-static-field'
1676
- | '#private-static-get'
1677
- | '#private-static-method'
1678
1678
  | '#private-static-readonly-field'
1679
- | '#private-static-set'
1680
- | '#private-static-static-initialization'
1681
- | 'abstract-accessor'
1682
- | 'abstract-field'
1683
- | 'abstract-get'
1684
- | 'abstract-method'
1685
- | 'abstract-readonly-field'
1686
- | 'abstract-set'
1687
- | 'abstract-static-initialization'
1688
- | 'accessor'
1689
- | 'call-signature'
1690
- | 'constructor'
1691
- | 'decorated-accessor'
1692
- | 'decorated-field'
1693
- | 'decorated-get'
1694
- | 'decorated-method'
1695
- | 'decorated-readonly-field'
1696
- | 'decorated-set'
1679
+ | '#private-instance-readonly-field'
1697
1680
  | 'field'
1698
- | 'get'
1699
- | 'instance-accessor'
1681
+ | 'public-field'
1682
+ | 'public-decorated-field'
1683
+ | 'decorated-field'
1684
+ | 'static-field'
1685
+ | 'public-static-field'
1700
1686
  | 'instance-field'
1701
- | 'instance-get'
1702
- | 'instance-method'
1703
- | 'instance-readonly-field'
1704
- | 'instance-set'
1705
- | 'instance-static-initialization'
1706
- | 'method'
1707
- | 'private-accessor'
1708
- | 'private-constructor'
1709
- | 'private-decorated-accessor'
1710
- | 'private-decorated-field'
1711
- | 'private-decorated-get'
1712
- | 'private-decorated-method'
1713
- | 'private-decorated-readonly-field'
1714
- | 'private-decorated-set'
1687
+ | 'public-instance-field'
1688
+ | 'abstract-field'
1689
+ | 'public-abstract-field'
1690
+ | 'protected-field'
1691
+ | 'protected-decorated-field'
1692
+ | 'protected-static-field'
1693
+ | 'protected-instance-field'
1694
+ | 'protected-abstract-field'
1715
1695
  | 'private-field'
1716
- | 'private-get'
1717
- | 'private-instance-accessor'
1696
+ | 'private-decorated-field'
1697
+ | 'private-static-field'
1718
1698
  | 'private-instance-field'
1719
- | 'private-instance-get'
1720
- | 'private-instance-method'
1721
- | 'private-instance-readonly-field'
1722
- | 'private-instance-set'
1723
- | 'private-instance-static-initialization'
1699
+ | '#private-field'
1700
+ | '#private-static-field'
1701
+ | '#private-instance-field'
1702
+ | 'method'
1703
+ | 'public-method'
1704
+ | 'public-decorated-method'
1705
+ | 'decorated-method'
1706
+ | 'static-method'
1707
+ | 'public-static-method'
1708
+ | 'instance-method'
1709
+ | 'public-instance-method'
1710
+ | 'abstract-method'
1711
+ | 'public-abstract-method'
1712
+ | 'protected-method'
1713
+ | 'protected-decorated-method'
1714
+ | 'protected-static-method'
1715
+ | 'protected-instance-method'
1716
+ | 'protected-abstract-method'
1724
1717
  | 'private-method'
1725
- | 'private-readonly-field'
1726
- | 'private-set'
1727
- | 'private-static-accessor'
1728
- | 'private-static-field'
1729
- | 'private-static-get'
1718
+ | 'private-decorated-method'
1730
1719
  | 'private-static-method'
1731
- | 'private-static-readonly-field'
1732
- | 'private-static-set'
1733
- | 'private-static-static-initialization'
1734
- | 'protected-abstract-accessor'
1735
- | 'protected-abstract-field'
1736
- | 'protected-abstract-get'
1737
- | 'protected-abstract-method'
1738
- | 'protected-abstract-readonly-field'
1739
- | 'protected-abstract-set'
1740
- | 'protected-abstract-static-initialization'
1741
- | 'protected-accessor'
1720
+ | 'private-instance-method'
1721
+ | '#private-method'
1722
+ | '#private-static-method'
1723
+ | '#private-instance-method'
1724
+ | 'call-signature'
1725
+ | 'constructor'
1726
+ | 'public-constructor'
1742
1727
  | 'protected-constructor'
1743
- | 'protected-decorated-accessor'
1744
- | 'protected-decorated-field'
1745
- | 'protected-decorated-get'
1746
- | 'protected-decorated-method'
1747
- | 'protected-decorated-readonly-field'
1748
- | 'protected-decorated-set'
1749
- | 'protected-field'
1750
- | 'protected-get'
1751
- | 'protected-instance-accessor'
1752
- | 'protected-instance-field'
1753
- | 'protected-instance-get'
1754
- | 'protected-instance-method'
1755
- | 'protected-instance-readonly-field'
1756
- | 'protected-instance-set'
1757
- | 'protected-instance-static-initialization'
1758
- | 'protected-method'
1759
- | 'protected-readonly-field'
1760
- | 'protected-set'
1761
- | 'protected-static-accessor'
1762
- | 'protected-static-field'
1763
- | 'protected-static-get'
1764
- | 'protected-static-method'
1765
- | 'protected-static-readonly-field'
1766
- | 'protected-static-set'
1767
- | 'protected-static-static-initialization'
1768
- | 'public-abstract-accessor'
1769
- | 'public-abstract-field'
1770
- | 'public-abstract-get'
1771
- | 'public-abstract-method'
1772
- | 'public-abstract-readonly-field'
1773
- | 'public-abstract-set'
1774
- | 'public-abstract-static-initialization'
1728
+ | 'private-constructor'
1729
+ | 'accessor'
1775
1730
  | 'public-accessor'
1776
- | 'public-constructor'
1777
1731
  | 'public-decorated-accessor'
1778
- | 'public-decorated-field'
1779
- | 'public-decorated-get'
1780
- | 'public-decorated-method'
1781
- | 'public-decorated-readonly-field'
1782
- | 'public-decorated-set'
1783
- | 'public-field'
1784
- | 'public-get'
1732
+ | 'decorated-accessor'
1733
+ | 'static-accessor'
1734
+ | 'public-static-accessor'
1735
+ | 'instance-accessor'
1785
1736
  | 'public-instance-accessor'
1786
- | 'public-instance-field'
1737
+ | 'abstract-accessor'
1738
+ | 'public-abstract-accessor'
1739
+ | 'protected-accessor'
1740
+ | 'protected-decorated-accessor'
1741
+ | 'protected-static-accessor'
1742
+ | 'protected-instance-accessor'
1743
+ | 'protected-abstract-accessor'
1744
+ | 'private-accessor'
1745
+ | 'private-decorated-accessor'
1746
+ | 'private-static-accessor'
1747
+ | 'private-instance-accessor'
1748
+ | '#private-accessor'
1749
+ | '#private-static-accessor'
1750
+ | '#private-instance-accessor'
1751
+ | 'get'
1752
+ | 'public-get'
1753
+ | 'public-decorated-get'
1754
+ | 'decorated-get'
1755
+ | 'static-get'
1756
+ | 'public-static-get'
1757
+ | 'instance-get'
1787
1758
  | 'public-instance-get'
1788
- | 'public-instance-method'
1789
- | 'public-instance-readonly-field'
1790
- | 'public-instance-set'
1791
- | 'public-instance-static-initialization'
1792
- | 'public-method'
1793
- | 'public-readonly-field'
1759
+ | 'abstract-get'
1760
+ | 'public-abstract-get'
1761
+ | 'protected-get'
1762
+ | 'protected-decorated-get'
1763
+ | 'protected-static-get'
1764
+ | 'protected-instance-get'
1765
+ | 'protected-abstract-get'
1766
+ | 'private-get'
1767
+ | 'private-decorated-get'
1768
+ | 'private-static-get'
1769
+ | 'private-instance-get'
1770
+ | '#private-get'
1771
+ | '#private-static-get'
1772
+ | '#private-instance-get'
1773
+ | 'set'
1794
1774
  | 'public-set'
1795
- | 'public-static-accessor'
1796
- | 'public-static-field'
1797
- | 'public-static-get'
1798
- | 'public-static-method'
1799
- | 'public-static-readonly-field'
1775
+ | 'public-decorated-set'
1776
+ | 'decorated-set'
1777
+ | 'static-set'
1800
1778
  | 'public-static-set'
1801
- | 'public-static-static-initialization'
1802
- | 'readonly-field'
1803
- | 'readonly-signature'
1804
- | 'set'
1805
- | 'signature'
1806
- | 'static-accessor'
1807
- | 'static-field'
1808
- | 'static-get'
1779
+ | 'instance-set'
1780
+ | 'public-instance-set'
1781
+ | 'abstract-set'
1782
+ | 'public-abstract-set'
1783
+ | 'protected-set'
1784
+ | 'protected-decorated-set'
1785
+ | 'protected-static-set'
1786
+ | 'protected-instance-set'
1787
+ | 'protected-abstract-set'
1788
+ | 'private-set'
1789
+ | 'private-decorated-set'
1790
+ | 'private-static-set'
1791
+ | 'private-instance-set'
1792
+ | '#private-set'
1793
+ | '#private-static-set'
1794
+ | '#private-instance-set'
1809
1795
  | 'static-initialization'
1810
- | 'static-method'
1811
- | 'static-readonly-field'
1812
- | 'static-set'
1813
- | 'static-static-initialization';
1796
+ | 'static-static-initialization'
1797
+ | 'public-static-static-initialization'
1798
+ | 'instance-static-initialization'
1799
+ | 'public-instance-static-initialization'
1800
+ | 'abstract-static-initialization'
1801
+ | 'public-abstract-static-initialization'
1802
+ | 'protected-static-static-initialization'
1803
+ | 'protected-instance-static-initialization'
1804
+ | 'protected-abstract-static-initialization'
1805
+ | 'private-static-static-initialization'
1806
+ | 'private-instance-static-initialization'
1807
+ | '#private-static-static-initialization'
1808
+ | '#private-instance-static-initialization';
1809
+
1814
1810
  export type OptionalityOrderOptions = 'optional-first' | 'required-first';
1811
+
1815
1812
  export type OrderOptions =
1816
- | 'alphabetically-case-insensitive'
1817
1813
  | 'alphabetically'
1814
+ | 'alphabetically-case-insensitive'
1818
1815
  | 'as-written'
1819
- | 'natural-case-insensitive'
1820
- | 'natural';
1816
+ | 'natural'
1817
+ | 'natural-case-insensitive';
1818
+
1821
1819
  export type TypeItems =
1822
- | 'constructor'
1820
+ | 'readonly-signature'
1821
+ | 'signature'
1822
+ | 'readonly-field'
1823
1823
  | 'field'
1824
1824
  | 'method'
1825
- | 'readonly-field'
1826
- | 'readonly-signature'
1827
- | 'signature';
1825
+ | 'constructor';
1828
1826
 
1829
- export type Options = {
1827
+ export type Options = Readonly<{
1830
1828
  /** Which ordering to enforce for classes. */
1831
- readonly classes?:
1832
- | readonly (AllItems | readonly AllItems[])[]
1829
+ classes?:
1833
1830
  | 'never'
1834
- | {
1835
- readonly memberTypes?:
1836
- | readonly (AllItems | readonly AllItems[])[]
1837
- | 'never';
1838
- readonly optionalityOrder?: OptionalityOrderOptions;
1839
- readonly order?: OrderOptions;
1840
- };
1841
- /** Which ordering to enforce for classExpressions. */
1842
- readonly classExpressions?:
1843
1831
  | readonly (AllItems | readonly AllItems[])[]
1832
+ | Readonly<{
1833
+ memberTypes?: readonly (AllItems | readonly AllItems[])[] | 'never';
1834
+ optionalityOrder?: OptionalityOrderOptions;
1835
+ order?: OrderOptions;
1836
+ }>;
1837
+ /** Which ordering to enforce for classExpressions. */
1838
+ classExpressions?:
1844
1839
  | 'never'
1845
- | {
1846
- readonly memberTypes?:
1847
- | readonly (AllItems | readonly AllItems[])[]
1848
- | 'never';
1849
- readonly optionalityOrder?: OptionalityOrderOptions;
1850
- readonly order?: OrderOptions;
1851
- };
1852
- /** Which ordering to enforce for default. */
1853
- readonly default?:
1854
1840
  | readonly (AllItems | readonly AllItems[])[]
1841
+ | Readonly<{
1842
+ memberTypes?: readonly (AllItems | readonly AllItems[])[] | 'never';
1843
+ optionalityOrder?: OptionalityOrderOptions;
1844
+ order?: OrderOptions;
1845
+ }>;
1846
+ /** Which ordering to enforce for default. */
1847
+ default?:
1855
1848
  | 'never'
1856
- | {
1857
- readonly memberTypes?:
1858
- | readonly (AllItems | readonly AllItems[])[]
1859
- | 'never';
1860
- readonly optionalityOrder?: OptionalityOrderOptions;
1861
- readonly order?: OrderOptions;
1862
- };
1849
+ | readonly (AllItems | readonly AllItems[])[]
1850
+ | Readonly<{
1851
+ memberTypes?: readonly (AllItems | readonly AllItems[])[] | 'never';
1852
+ optionalityOrder?: OptionalityOrderOptions;
1853
+ order?: OrderOptions;
1854
+ }>;
1863
1855
  /** Which ordering to enforce for interfaces. */
1864
- readonly interfaces?:
1865
- | readonly (TypeItems | readonly TypeItems[])[]
1856
+ interfaces?:
1866
1857
  | 'never'
1867
- | {
1868
- readonly memberTypes?:
1869
- | readonly (TypeItems | readonly TypeItems[])[]
1870
- | 'never';
1871
- readonly optionalityOrder?: OptionalityOrderOptions;
1872
- readonly order?: OrderOptions;
1873
- };
1874
- /** Which ordering to enforce for typeLiterals. */
1875
- readonly typeLiterals?:
1876
1858
  | readonly (TypeItems | readonly TypeItems[])[]
1859
+ | Readonly<{
1860
+ memberTypes?: readonly (TypeItems | readonly TypeItems[])[] | 'never';
1861
+ optionalityOrder?: OptionalityOrderOptions;
1862
+ order?: OrderOptions;
1863
+ }>;
1864
+ /** Which ordering to enforce for typeLiterals. */
1865
+ typeLiterals?:
1877
1866
  | 'never'
1878
- | {
1879
- readonly memberTypes?:
1880
- | readonly (TypeItems | readonly TypeItems[])[]
1881
- | 'never';
1882
- readonly optionalityOrder?: OptionalityOrderOptions;
1883
- readonly order?: OrderOptions;
1884
- };
1885
- };
1867
+ | readonly (TypeItems | readonly TypeItems[])[]
1868
+ | Readonly<{
1869
+ memberTypes?: readonly (TypeItems | readonly TypeItems[])[] | 'never';
1870
+ optionalityOrder?: OptionalityOrderOptions;
1871
+ order?: OrderOptions;
1872
+ }>;
1873
+ }>;
1886
1874
 
1887
1875
  export type RuleEntry =
1876
+ | 'off'
1888
1877
  | Linter.Severity
1889
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1890
- | 'off';
1878
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1891
1879
  }
1892
1880
 
1893
1881
  /**
@@ -1921,12 +1909,12 @@ namespace MethodSignatureStyle {
1921
1909
  * ```
1922
1910
  */
1923
1911
  /** The method signature style to enforce using. */
1924
- export type Options = 'method' | 'property';
1912
+ export type Options = 'property' | 'method';
1925
1913
 
1926
1914
  export type RuleEntry =
1915
+ | 'off'
1927
1916
  | Linter.Severity
1928
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1929
- | 'off';
1917
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1930
1918
  }
1931
1919
 
1932
1920
  /**
@@ -3652,534 +3640,530 @@ namespace NamingConvention {
3652
3640
  * ```
3653
3641
  */
3654
3642
  export type FormatOptionsConfig = readonly PredefinedFormats[] | null;
3643
+
3655
3644
  export type PredefinedFormats =
3656
3645
  | 'camelCase'
3657
- | 'PascalCase'
3658
- | 'snake_case'
3659
3646
  | 'strictCamelCase'
3647
+ | 'PascalCase'
3660
3648
  | 'StrictPascalCase'
3649
+ | 'snake_case'
3661
3650
  | 'UPPER_CASE';
3651
+
3662
3652
  export type UnderscoreOptions =
3663
- | 'allow'
3664
- | 'allowDouble'
3665
- | 'allowSingleOrDouble'
3666
3653
  | 'forbid'
3654
+ | 'allow'
3667
3655
  | 'require'
3668
- | 'requireDouble';
3656
+ | 'requireDouble'
3657
+ | 'allowDouble'
3658
+ | 'allowSingleOrDouble';
3659
+
3669
3660
  export type PrefixSuffixConfig = readonly string[];
3661
+
3670
3662
  export type TypeModifiers =
3671
- | 'array'
3672
3663
  | 'boolean'
3673
- | 'function'
3664
+ | 'string'
3674
3665
  | 'number'
3675
- | 'string';
3676
- export type Options = readonly (
3666
+ | 'function'
3667
+ | 'array';
3668
+
3669
+ export type Options = readonly Readonly<
3677
3670
  | {
3678
- readonly custom?: MatchRegexConfig;
3679
- readonly failureMessage?: string;
3680
- readonly format: FormatOptionsConfig;
3681
- readonly leadingUnderscore?: UnderscoreOptions;
3682
- readonly prefix?: PrefixSuffixConfig;
3683
- readonly suffix?: PrefixSuffixConfig;
3684
- readonly trailingUnderscore?: UnderscoreOptions;
3685
- readonly filter?: MatchRegexConfig | string;
3686
- readonly modifiers?: readonly (
3671
+ custom?: MatchRegexConfig;
3672
+ failureMessage?: string;
3673
+ format: FormatOptionsConfig;
3674
+ leadingUnderscore?: UnderscoreOptions;
3675
+ prefix?: PrefixSuffixConfig;
3676
+ suffix?: PrefixSuffixConfig;
3677
+ trailingUnderscore?: UnderscoreOptions;
3678
+ filter?: string | MatchRegexConfig;
3679
+ modifiers?: readonly (
3680
+ | 'const'
3681
+ | 'readonly'
3682
+ | 'static'
3683
+ | 'public'
3684
+ | 'protected'
3685
+ | 'private'
3687
3686
  | '#private'
3688
3687
  | 'abstract'
3689
- | 'async'
3690
- | 'const'
3691
- | 'default'
3692
3688
  | 'destructured'
3693
- | 'exported'
3694
3689
  | 'global'
3695
- | 'namespace'
3696
- | 'override'
3697
- | 'private'
3698
- | 'protected'
3699
- | 'public'
3700
- | 'readonly'
3701
- | 'requiresQuotes'
3702
- | 'static'
3690
+ | 'exported'
3703
3691
  | 'unused'
3692
+ | 'requiresQuotes'
3693
+ | 'override'
3694
+ | 'async'
3695
+ | 'default'
3696
+ | 'namespace'
3704
3697
  )[];
3705
- readonly selector: readonly (
3706
- | 'accessor'
3707
- | 'autoAccessor'
3708
- | 'class'
3709
- | 'classicAccessor'
3710
- | 'classMethod'
3711
- | 'classProperty'
3698
+ selector: readonly (
3712
3699
  | 'default'
3713
- | 'enum'
3714
- | 'enumMember'
3715
- | 'function'
3716
- | 'import'
3717
- | 'interface'
3700
+ | 'variableLike'
3718
3701
  | 'memberLike'
3702
+ | 'typeLike'
3719
3703
  | 'method'
3720
- | 'objectLiteralMethod'
3721
- | 'objectLiteralProperty'
3704
+ | 'property'
3705
+ | 'accessor'
3706
+ | 'variable'
3707
+ | 'function'
3722
3708
  | 'parameter'
3723
3709
  | 'parameterProperty'
3724
- | 'property'
3725
- | 'typeAlias'
3726
- | 'typeLike'
3710
+ | 'classicAccessor'
3711
+ | 'enumMember'
3712
+ | 'classMethod'
3713
+ | 'objectLiteralMethod'
3727
3714
  | 'typeMethod'
3728
- | 'typeParameter'
3715
+ | 'classProperty'
3716
+ | 'objectLiteralProperty'
3729
3717
  | 'typeProperty'
3730
- | 'variable'
3731
- | 'variableLike'
3718
+ | 'autoAccessor'
3719
+ | 'class'
3720
+ | 'interface'
3721
+ | 'typeAlias'
3722
+ | 'enum'
3723
+ | 'typeParameter'
3724
+ | 'import'
3732
3725
  )[];
3733
- readonly types?: readonly TypeModifiers[];
3726
+ types?: readonly TypeModifiers[];
3734
3727
  }
3735
3728
  | {
3736
- readonly custom?: MatchRegexConfig;
3737
- readonly failureMessage?: string;
3738
- readonly format: FormatOptionsConfig;
3739
- readonly leadingUnderscore?: UnderscoreOptions;
3740
- readonly prefix?: PrefixSuffixConfig;
3741
- readonly suffix?: PrefixSuffixConfig;
3742
- readonly trailingUnderscore?: UnderscoreOptions;
3743
- readonly filter?: MatchRegexConfig | string;
3744
- readonly selector: 'accessor';
3745
- readonly modifiers?: readonly (
3746
- | 'abstract'
3747
- | 'override'
3748
- | 'private'
3749
- | 'protected'
3729
+ custom?: MatchRegexConfig;
3730
+ failureMessage?: string;
3731
+ format: FormatOptionsConfig;
3732
+ leadingUnderscore?: UnderscoreOptions;
3733
+ prefix?: PrefixSuffixConfig;
3734
+ suffix?: PrefixSuffixConfig;
3735
+ trailingUnderscore?: UnderscoreOptions;
3736
+ filter?: string | MatchRegexConfig;
3737
+ selector: 'default';
3738
+ modifiers?: readonly (
3739
+ | 'const'
3740
+ | 'readonly'
3741
+ | 'static'
3750
3742
  | 'public'
3743
+ | 'protected'
3744
+ | 'private'
3745
+ | '#private'
3746
+ | 'abstract'
3747
+ | 'destructured'
3748
+ | 'global'
3749
+ | 'exported'
3750
+ | 'unused'
3751
3751
  | 'requiresQuotes'
3752
- | 'static'
3752
+ | 'override'
3753
+ | 'async'
3754
+ | 'default'
3755
+ | 'namespace'
3753
3756
  )[];
3754
- readonly types?: readonly TypeModifiers[];
3755
3757
  }
3756
3758
  | {
3757
- readonly custom?: MatchRegexConfig;
3758
- readonly failureMessage?: string;
3759
- readonly format: FormatOptionsConfig;
3760
- readonly leadingUnderscore?: UnderscoreOptions;
3761
- readonly prefix?: PrefixSuffixConfig;
3762
- readonly suffix?: PrefixSuffixConfig;
3763
- readonly trailingUnderscore?: UnderscoreOptions;
3764
- readonly filter?: MatchRegexConfig | string;
3765
- readonly selector: 'autoAccessor';
3766
- readonly modifiers?: readonly (
3767
- | 'abstract'
3768
- | 'override'
3769
- | 'private'
3770
- | 'protected'
3771
- | 'public'
3772
- | 'requiresQuotes'
3773
- | 'static'
3759
+ custom?: MatchRegexConfig;
3760
+ failureMessage?: string;
3761
+ format: FormatOptionsConfig;
3762
+ leadingUnderscore?: UnderscoreOptions;
3763
+ prefix?: PrefixSuffixConfig;
3764
+ suffix?: PrefixSuffixConfig;
3765
+ trailingUnderscore?: UnderscoreOptions;
3766
+ filter?: string | MatchRegexConfig;
3767
+ selector: 'variableLike';
3768
+ modifiers?: readonly ('unused' | 'async')[];
3769
+ }
3770
+ | {
3771
+ custom?: MatchRegexConfig;
3772
+ failureMessage?: string;
3773
+ format: FormatOptionsConfig;
3774
+ leadingUnderscore?: UnderscoreOptions;
3775
+ prefix?: PrefixSuffixConfig;
3776
+ suffix?: PrefixSuffixConfig;
3777
+ trailingUnderscore?: UnderscoreOptions;
3778
+ filter?: string | MatchRegexConfig;
3779
+ selector: 'variable';
3780
+ modifiers?: readonly (
3781
+ | 'const'
3782
+ | 'destructured'
3783
+ | 'exported'
3784
+ | 'global'
3785
+ | 'unused'
3786
+ | 'async'
3774
3787
  )[];
3775
- readonly types?: readonly TypeModifiers[];
3788
+ types?: readonly TypeModifiers[];
3789
+ }
3790
+ | {
3791
+ custom?: MatchRegexConfig;
3792
+ failureMessage?: string;
3793
+ format: FormatOptionsConfig;
3794
+ leadingUnderscore?: UnderscoreOptions;
3795
+ prefix?: PrefixSuffixConfig;
3796
+ suffix?: PrefixSuffixConfig;
3797
+ trailingUnderscore?: UnderscoreOptions;
3798
+ filter?: string | MatchRegexConfig;
3799
+ selector: 'function';
3800
+ modifiers?: readonly ('exported' | 'global' | 'unused' | 'async')[];
3776
3801
  }
3777
3802
  | {
3778
- readonly custom?: MatchRegexConfig;
3779
- readonly failureMessage?: string;
3780
- readonly format: FormatOptionsConfig;
3781
- readonly leadingUnderscore?: UnderscoreOptions;
3782
- readonly prefix?: PrefixSuffixConfig;
3783
- readonly suffix?: PrefixSuffixConfig;
3784
- readonly trailingUnderscore?: UnderscoreOptions;
3785
- readonly filter?: MatchRegexConfig | string;
3786
- readonly selector: 'class';
3787
- readonly modifiers?: readonly ('abstract' | 'exported' | 'unused')[];
3803
+ custom?: MatchRegexConfig;
3804
+ failureMessage?: string;
3805
+ format: FormatOptionsConfig;
3806
+ leadingUnderscore?: UnderscoreOptions;
3807
+ prefix?: PrefixSuffixConfig;
3808
+ suffix?: PrefixSuffixConfig;
3809
+ trailingUnderscore?: UnderscoreOptions;
3810
+ filter?: string | MatchRegexConfig;
3811
+ selector: 'parameter';
3812
+ modifiers?: readonly ('destructured' | 'unused')[];
3813
+ types?: readonly TypeModifiers[];
3788
3814
  }
3789
3815
  | {
3790
- readonly custom?: MatchRegexConfig;
3791
- readonly failureMessage?: string;
3792
- readonly format: FormatOptionsConfig;
3793
- readonly leadingUnderscore?: UnderscoreOptions;
3794
- readonly prefix?: PrefixSuffixConfig;
3795
- readonly suffix?: PrefixSuffixConfig;
3796
- readonly trailingUnderscore?: UnderscoreOptions;
3797
- readonly filter?: MatchRegexConfig | string;
3798
- readonly selector: 'classicAccessor';
3799
- readonly modifiers?: readonly (
3816
+ custom?: MatchRegexConfig;
3817
+ failureMessage?: string;
3818
+ format: FormatOptionsConfig;
3819
+ leadingUnderscore?: UnderscoreOptions;
3820
+ prefix?: PrefixSuffixConfig;
3821
+ suffix?: PrefixSuffixConfig;
3822
+ trailingUnderscore?: UnderscoreOptions;
3823
+ filter?: string | MatchRegexConfig;
3824
+ selector: 'memberLike';
3825
+ modifiers?: readonly (
3800
3826
  | 'abstract'
3801
- | 'override'
3802
3827
  | 'private'
3828
+ | '#private'
3803
3829
  | 'protected'
3804
3830
  | 'public'
3831
+ | 'readonly'
3805
3832
  | 'requiresQuotes'
3806
3833
  | 'static'
3834
+ | 'override'
3835
+ | 'async'
3807
3836
  )[];
3808
- readonly types?: readonly TypeModifiers[];
3809
3837
  }
3810
3838
  | {
3811
- readonly custom?: MatchRegexConfig;
3812
- readonly failureMessage?: string;
3813
- readonly format: FormatOptionsConfig;
3814
- readonly leadingUnderscore?: UnderscoreOptions;
3815
- readonly prefix?: PrefixSuffixConfig;
3816
- readonly suffix?: PrefixSuffixConfig;
3817
- readonly trailingUnderscore?: UnderscoreOptions;
3818
- readonly filter?: MatchRegexConfig | string;
3819
- readonly selector: 'classMethod';
3820
- readonly modifiers?: readonly (
3821
- | '#private'
3839
+ custom?: MatchRegexConfig;
3840
+ failureMessage?: string;
3841
+ format: FormatOptionsConfig;
3842
+ leadingUnderscore?: UnderscoreOptions;
3843
+ prefix?: PrefixSuffixConfig;
3844
+ suffix?: PrefixSuffixConfig;
3845
+ trailingUnderscore?: UnderscoreOptions;
3846
+ filter?: string | MatchRegexConfig;
3847
+ selector: 'classProperty';
3848
+ modifiers?: readonly (
3822
3849
  | 'abstract'
3823
- | 'async'
3824
- | 'override'
3825
3850
  | 'private'
3851
+ | '#private'
3826
3852
  | 'protected'
3827
3853
  | 'public'
3854
+ | 'readonly'
3828
3855
  | 'requiresQuotes'
3829
3856
  | 'static'
3857
+ | 'override'
3830
3858
  )[];
3859
+ types?: readonly TypeModifiers[];
3831
3860
  }
3832
3861
  | {
3833
- readonly custom?: MatchRegexConfig;
3834
- readonly failureMessage?: string;
3835
- readonly format: FormatOptionsConfig;
3836
- readonly leadingUnderscore?: UnderscoreOptions;
3837
- readonly prefix?: PrefixSuffixConfig;
3838
- readonly suffix?: PrefixSuffixConfig;
3839
- readonly trailingUnderscore?: UnderscoreOptions;
3840
- readonly filter?: MatchRegexConfig | string;
3841
- readonly selector: 'classProperty';
3842
- readonly modifiers?: readonly (
3843
- | '#private'
3844
- | 'abstract'
3845
- | 'override'
3862
+ custom?: MatchRegexConfig;
3863
+ failureMessage?: string;
3864
+ format: FormatOptionsConfig;
3865
+ leadingUnderscore?: UnderscoreOptions;
3866
+ prefix?: PrefixSuffixConfig;
3867
+ suffix?: PrefixSuffixConfig;
3868
+ trailingUnderscore?: UnderscoreOptions;
3869
+ filter?: string | MatchRegexConfig;
3870
+ selector: 'objectLiteralProperty';
3871
+ modifiers?: readonly ('public' | 'requiresQuotes')[];
3872
+ types?: readonly TypeModifiers[];
3873
+ }
3874
+ | {
3875
+ custom?: MatchRegexConfig;
3876
+ failureMessage?: string;
3877
+ format: FormatOptionsConfig;
3878
+ leadingUnderscore?: UnderscoreOptions;
3879
+ prefix?: PrefixSuffixConfig;
3880
+ suffix?: PrefixSuffixConfig;
3881
+ trailingUnderscore?: UnderscoreOptions;
3882
+ filter?: string | MatchRegexConfig;
3883
+ selector: 'typeProperty';
3884
+ modifiers?: readonly ('public' | 'readonly' | 'requiresQuotes')[];
3885
+ types?: readonly TypeModifiers[];
3886
+ }
3887
+ | {
3888
+ custom?: MatchRegexConfig;
3889
+ failureMessage?: string;
3890
+ format: FormatOptionsConfig;
3891
+ leadingUnderscore?: UnderscoreOptions;
3892
+ prefix?: PrefixSuffixConfig;
3893
+ suffix?: PrefixSuffixConfig;
3894
+ trailingUnderscore?: UnderscoreOptions;
3895
+ filter?: string | MatchRegexConfig;
3896
+ selector: 'parameterProperty';
3897
+ modifiers?: readonly (
3846
3898
  | 'private'
3847
3899
  | 'protected'
3848
3900
  | 'public'
3849
3901
  | 'readonly'
3850
- | 'requiresQuotes'
3851
- | 'static'
3852
3902
  )[];
3853
- readonly types?: readonly TypeModifiers[];
3903
+ types?: readonly TypeModifiers[];
3854
3904
  }
3855
3905
  | {
3856
- readonly custom?: MatchRegexConfig;
3857
- readonly failureMessage?: string;
3858
- readonly format: FormatOptionsConfig;
3859
- readonly leadingUnderscore?: UnderscoreOptions;
3860
- readonly prefix?: PrefixSuffixConfig;
3861
- readonly suffix?: PrefixSuffixConfig;
3862
- readonly trailingUnderscore?: UnderscoreOptions;
3863
- readonly filter?: MatchRegexConfig | string;
3864
- readonly selector: 'default';
3865
- readonly modifiers?: readonly (
3866
- | '#private'
3906
+ custom?: MatchRegexConfig;
3907
+ failureMessage?: string;
3908
+ format: FormatOptionsConfig;
3909
+ leadingUnderscore?: UnderscoreOptions;
3910
+ prefix?: PrefixSuffixConfig;
3911
+ suffix?: PrefixSuffixConfig;
3912
+ trailingUnderscore?: UnderscoreOptions;
3913
+ filter?: string | MatchRegexConfig;
3914
+ selector: 'property';
3915
+ modifiers?: readonly (
3867
3916
  | 'abstract'
3868
- | 'async'
3869
- | 'const'
3870
- | 'default'
3871
- | 'destructured'
3872
- | 'exported'
3873
- | 'global'
3874
- | 'namespace'
3875
- | 'override'
3876
3917
  | 'private'
3918
+ | '#private'
3877
3919
  | 'protected'
3878
3920
  | 'public'
3879
3921
  | 'readonly'
3880
3922
  | 'requiresQuotes'
3881
3923
  | 'static'
3882
- | 'unused'
3924
+ | 'override'
3925
+ | 'async'
3883
3926
  )[];
3927
+ types?: readonly TypeModifiers[];
3884
3928
  }
3885
3929
  | {
3886
- readonly custom?: MatchRegexConfig;
3887
- readonly failureMessage?: string;
3888
- readonly format: FormatOptionsConfig;
3889
- readonly leadingUnderscore?: UnderscoreOptions;
3890
- readonly prefix?: PrefixSuffixConfig;
3891
- readonly suffix?: PrefixSuffixConfig;
3892
- readonly trailingUnderscore?: UnderscoreOptions;
3893
- readonly filter?: MatchRegexConfig | string;
3894
- readonly selector: 'enum';
3895
- readonly modifiers?: readonly ('exported' | 'unused')[];
3896
- }
3897
- | {
3898
- readonly custom?: MatchRegexConfig;
3899
- readonly failureMessage?: string;
3900
- readonly format: FormatOptionsConfig;
3901
- readonly leadingUnderscore?: UnderscoreOptions;
3902
- readonly prefix?: PrefixSuffixConfig;
3903
- readonly suffix?: PrefixSuffixConfig;
3904
- readonly trailingUnderscore?: UnderscoreOptions;
3905
- readonly filter?: MatchRegexConfig | string;
3906
- readonly selector: 'enumMember';
3907
- readonly modifiers?: readonly 'requiresQuotes'[];
3908
- }
3909
- | {
3910
- readonly custom?: MatchRegexConfig;
3911
- readonly failureMessage?: string;
3912
- readonly format: FormatOptionsConfig;
3913
- readonly leadingUnderscore?: UnderscoreOptions;
3914
- readonly prefix?: PrefixSuffixConfig;
3915
- readonly suffix?: PrefixSuffixConfig;
3916
- readonly trailingUnderscore?: UnderscoreOptions;
3917
- readonly filter?: MatchRegexConfig | string;
3918
- readonly selector: 'function';
3919
- readonly modifiers?: readonly (
3930
+ custom?: MatchRegexConfig;
3931
+ failureMessage?: string;
3932
+ format: FormatOptionsConfig;
3933
+ leadingUnderscore?: UnderscoreOptions;
3934
+ prefix?: PrefixSuffixConfig;
3935
+ suffix?: PrefixSuffixConfig;
3936
+ trailingUnderscore?: UnderscoreOptions;
3937
+ filter?: string | MatchRegexConfig;
3938
+ selector: 'classMethod';
3939
+ modifiers?: readonly (
3940
+ | 'abstract'
3941
+ | 'private'
3942
+ | '#private'
3943
+ | 'protected'
3944
+ | 'public'
3945
+ | 'requiresQuotes'
3946
+ | 'static'
3947
+ | 'override'
3920
3948
  | 'async'
3921
- | 'exported'
3922
- | 'global'
3923
- | 'unused'
3924
3949
  )[];
3925
3950
  }
3926
3951
  | {
3927
- readonly custom?: MatchRegexConfig;
3928
- readonly failureMessage?: string;
3929
- readonly format: FormatOptionsConfig;
3930
- readonly leadingUnderscore?: UnderscoreOptions;
3931
- readonly prefix?: PrefixSuffixConfig;
3932
- readonly suffix?: PrefixSuffixConfig;
3933
- readonly trailingUnderscore?: UnderscoreOptions;
3934
- readonly filter?: MatchRegexConfig | string;
3935
- readonly selector: 'import';
3936
- readonly modifiers?: readonly ('default' | 'namespace')[];
3952
+ custom?: MatchRegexConfig;
3953
+ failureMessage?: string;
3954
+ format: FormatOptionsConfig;
3955
+ leadingUnderscore?: UnderscoreOptions;
3956
+ prefix?: PrefixSuffixConfig;
3957
+ suffix?: PrefixSuffixConfig;
3958
+ trailingUnderscore?: UnderscoreOptions;
3959
+ filter?: string | MatchRegexConfig;
3960
+ selector: 'objectLiteralMethod';
3961
+ modifiers?: readonly ('public' | 'requiresQuotes' | 'async')[];
3937
3962
  }
3938
3963
  | {
3939
- readonly custom?: MatchRegexConfig;
3940
- readonly failureMessage?: string;
3941
- readonly format: FormatOptionsConfig;
3942
- readonly leadingUnderscore?: UnderscoreOptions;
3943
- readonly prefix?: PrefixSuffixConfig;
3944
- readonly suffix?: PrefixSuffixConfig;
3945
- readonly trailingUnderscore?: UnderscoreOptions;
3946
- readonly filter?: MatchRegexConfig | string;
3947
- readonly selector: 'interface';
3948
- readonly modifiers?: readonly ('exported' | 'unused')[];
3964
+ custom?: MatchRegexConfig;
3965
+ failureMessage?: string;
3966
+ format: FormatOptionsConfig;
3967
+ leadingUnderscore?: UnderscoreOptions;
3968
+ prefix?: PrefixSuffixConfig;
3969
+ suffix?: PrefixSuffixConfig;
3970
+ trailingUnderscore?: UnderscoreOptions;
3971
+ filter?: string | MatchRegexConfig;
3972
+ selector: 'typeMethod';
3973
+ modifiers?: readonly ('public' | 'requiresQuotes')[];
3949
3974
  }
3950
3975
  | {
3951
- readonly custom?: MatchRegexConfig;
3952
- readonly failureMessage?: string;
3953
- readonly format: FormatOptionsConfig;
3954
- readonly leadingUnderscore?: UnderscoreOptions;
3955
- readonly prefix?: PrefixSuffixConfig;
3956
- readonly suffix?: PrefixSuffixConfig;
3957
- readonly trailingUnderscore?: UnderscoreOptions;
3958
- readonly filter?: MatchRegexConfig | string;
3959
- readonly selector: 'memberLike';
3960
- readonly modifiers?: readonly (
3961
- | '#private'
3976
+ custom?: MatchRegexConfig;
3977
+ failureMessage?: string;
3978
+ format: FormatOptionsConfig;
3979
+ leadingUnderscore?: UnderscoreOptions;
3980
+ prefix?: PrefixSuffixConfig;
3981
+ suffix?: PrefixSuffixConfig;
3982
+ trailingUnderscore?: UnderscoreOptions;
3983
+ filter?: string | MatchRegexConfig;
3984
+ selector: 'method';
3985
+ modifiers?: readonly (
3962
3986
  | 'abstract'
3963
- | 'async'
3964
- | 'override'
3965
3987
  | 'private'
3988
+ | '#private'
3966
3989
  | 'protected'
3967
3990
  | 'public'
3968
- | 'readonly'
3969
3991
  | 'requiresQuotes'
3970
3992
  | 'static'
3993
+ | 'override'
3994
+ | 'async'
3971
3995
  )[];
3972
3996
  }
3973
3997
  | {
3974
- readonly custom?: MatchRegexConfig;
3975
- readonly failureMessage?: string;
3976
- readonly format: FormatOptionsConfig;
3977
- readonly leadingUnderscore?: UnderscoreOptions;
3978
- readonly prefix?: PrefixSuffixConfig;
3979
- readonly suffix?: PrefixSuffixConfig;
3980
- readonly trailingUnderscore?: UnderscoreOptions;
3981
- readonly filter?: MatchRegexConfig | string;
3982
- readonly selector: 'method';
3983
- readonly modifiers?: readonly (
3984
- | '#private'
3998
+ custom?: MatchRegexConfig;
3999
+ failureMessage?: string;
4000
+ format: FormatOptionsConfig;
4001
+ leadingUnderscore?: UnderscoreOptions;
4002
+ prefix?: PrefixSuffixConfig;
4003
+ suffix?: PrefixSuffixConfig;
4004
+ trailingUnderscore?: UnderscoreOptions;
4005
+ filter?: string | MatchRegexConfig;
4006
+ selector: 'classicAccessor';
4007
+ modifiers?: readonly (
3985
4008
  | 'abstract'
3986
- | 'async'
3987
- | 'override'
3988
4009
  | 'private'
3989
4010
  | 'protected'
3990
4011
  | 'public'
3991
4012
  | 'requiresQuotes'
3992
4013
  | 'static'
4014
+ | 'override'
3993
4015
  )[];
4016
+ types?: readonly TypeModifiers[];
3994
4017
  }
3995
4018
  | {
3996
- readonly custom?: MatchRegexConfig;
3997
- readonly failureMessage?: string;
3998
- readonly format: FormatOptionsConfig;
3999
- readonly leadingUnderscore?: UnderscoreOptions;
4000
- readonly prefix?: PrefixSuffixConfig;
4001
- readonly suffix?: PrefixSuffixConfig;
4002
- readonly trailingUnderscore?: UnderscoreOptions;
4003
- readonly filter?: MatchRegexConfig | string;
4004
- readonly selector: 'objectLiteralMethod';
4005
- readonly modifiers?: readonly ('async' | 'public' | 'requiresQuotes')[];
4006
- }
4007
- | {
4008
- readonly custom?: MatchRegexConfig;
4009
- readonly failureMessage?: string;
4010
- readonly format: FormatOptionsConfig;
4011
- readonly leadingUnderscore?: UnderscoreOptions;
4012
- readonly prefix?: PrefixSuffixConfig;
4013
- readonly suffix?: PrefixSuffixConfig;
4014
- readonly trailingUnderscore?: UnderscoreOptions;
4015
- readonly filter?: MatchRegexConfig | string;
4016
- readonly selector: 'objectLiteralProperty';
4017
- readonly modifiers?: readonly ('public' | 'requiresQuotes')[];
4018
- readonly types?: readonly TypeModifiers[];
4019
- }
4020
- | {
4021
- readonly custom?: MatchRegexConfig;
4022
- readonly failureMessage?: string;
4023
- readonly format: FormatOptionsConfig;
4024
- readonly leadingUnderscore?: UnderscoreOptions;
4025
- readonly prefix?: PrefixSuffixConfig;
4026
- readonly suffix?: PrefixSuffixConfig;
4027
- readonly trailingUnderscore?: UnderscoreOptions;
4028
- readonly filter?: MatchRegexConfig | string;
4029
- readonly selector: 'parameter';
4030
- readonly modifiers?: readonly ('destructured' | 'unused')[];
4031
- readonly types?: readonly TypeModifiers[];
4032
- }
4033
- | {
4034
- readonly custom?: MatchRegexConfig;
4035
- readonly failureMessage?: string;
4036
- readonly format: FormatOptionsConfig;
4037
- readonly leadingUnderscore?: UnderscoreOptions;
4038
- readonly prefix?: PrefixSuffixConfig;
4039
- readonly suffix?: PrefixSuffixConfig;
4040
- readonly trailingUnderscore?: UnderscoreOptions;
4041
- readonly filter?: MatchRegexConfig | string;
4042
- readonly selector: 'parameterProperty';
4043
- readonly modifiers?: readonly (
4019
+ custom?: MatchRegexConfig;
4020
+ failureMessage?: string;
4021
+ format: FormatOptionsConfig;
4022
+ leadingUnderscore?: UnderscoreOptions;
4023
+ prefix?: PrefixSuffixConfig;
4024
+ suffix?: PrefixSuffixConfig;
4025
+ trailingUnderscore?: UnderscoreOptions;
4026
+ filter?: string | MatchRegexConfig;
4027
+ selector: 'autoAccessor';
4028
+ modifiers?: readonly (
4029
+ | 'abstract'
4044
4030
  | 'private'
4045
4031
  | 'protected'
4046
4032
  | 'public'
4047
- | 'readonly'
4033
+ | 'requiresQuotes'
4034
+ | 'static'
4035
+ | 'override'
4048
4036
  )[];
4049
- readonly types?: readonly TypeModifiers[];
4037
+ types?: readonly TypeModifiers[];
4050
4038
  }
4051
4039
  | {
4052
- readonly custom?: MatchRegexConfig;
4053
- readonly failureMessage?: string;
4054
- readonly format: FormatOptionsConfig;
4055
- readonly leadingUnderscore?: UnderscoreOptions;
4056
- readonly prefix?: PrefixSuffixConfig;
4057
- readonly suffix?: PrefixSuffixConfig;
4058
- readonly trailingUnderscore?: UnderscoreOptions;
4059
- readonly filter?: MatchRegexConfig | string;
4060
- readonly selector: 'property';
4061
- readonly modifiers?: readonly (
4062
- | '#private'
4040
+ custom?: MatchRegexConfig;
4041
+ failureMessage?: string;
4042
+ format: FormatOptionsConfig;
4043
+ leadingUnderscore?: UnderscoreOptions;
4044
+ prefix?: PrefixSuffixConfig;
4045
+ suffix?: PrefixSuffixConfig;
4046
+ trailingUnderscore?: UnderscoreOptions;
4047
+ filter?: string | MatchRegexConfig;
4048
+ selector: 'accessor';
4049
+ modifiers?: readonly (
4063
4050
  | 'abstract'
4064
- | 'async'
4065
- | 'override'
4066
4051
  | 'private'
4067
4052
  | 'protected'
4068
4053
  | 'public'
4069
- | 'readonly'
4070
4054
  | 'requiresQuotes'
4071
4055
  | 'static'
4056
+ | 'override'
4072
4057
  )[];
4073
- readonly types?: readonly TypeModifiers[];
4058
+ types?: readonly TypeModifiers[];
4074
4059
  }
4075
4060
  | {
4076
- readonly custom?: MatchRegexConfig;
4077
- readonly failureMessage?: string;
4078
- readonly format: FormatOptionsConfig;
4079
- readonly leadingUnderscore?: UnderscoreOptions;
4080
- readonly prefix?: PrefixSuffixConfig;
4081
- readonly suffix?: PrefixSuffixConfig;
4082
- readonly trailingUnderscore?: UnderscoreOptions;
4083
- readonly filter?: MatchRegexConfig | string;
4084
- readonly selector: 'typeAlias';
4085
- readonly modifiers?: readonly ('exported' | 'unused')[];
4061
+ custom?: MatchRegexConfig;
4062
+ failureMessage?: string;
4063
+ format: FormatOptionsConfig;
4064
+ leadingUnderscore?: UnderscoreOptions;
4065
+ prefix?: PrefixSuffixConfig;
4066
+ suffix?: PrefixSuffixConfig;
4067
+ trailingUnderscore?: UnderscoreOptions;
4068
+ filter?: string | MatchRegexConfig;
4069
+ selector: 'enumMember';
4070
+ modifiers?: readonly 'requiresQuotes'[];
4086
4071
  }
4087
4072
  | {
4088
- readonly custom?: MatchRegexConfig;
4089
- readonly failureMessage?: string;
4090
- readonly format: FormatOptionsConfig;
4091
- readonly leadingUnderscore?: UnderscoreOptions;
4092
- readonly prefix?: PrefixSuffixConfig;
4093
- readonly suffix?: PrefixSuffixConfig;
4094
- readonly trailingUnderscore?: UnderscoreOptions;
4095
- readonly filter?: MatchRegexConfig | string;
4096
- readonly selector: 'typeLike';
4097
- readonly modifiers?: readonly ('abstract' | 'exported' | 'unused')[];
4073
+ custom?: MatchRegexConfig;
4074
+ failureMessage?: string;
4075
+ format: FormatOptionsConfig;
4076
+ leadingUnderscore?: UnderscoreOptions;
4077
+ prefix?: PrefixSuffixConfig;
4078
+ suffix?: PrefixSuffixConfig;
4079
+ trailingUnderscore?: UnderscoreOptions;
4080
+ filter?: string | MatchRegexConfig;
4081
+ selector: 'typeLike';
4082
+ modifiers?: readonly ('abstract' | 'exported' | 'unused')[];
4098
4083
  }
4099
4084
  | {
4100
- readonly custom?: MatchRegexConfig;
4101
- readonly failureMessage?: string;
4102
- readonly format: FormatOptionsConfig;
4103
- readonly leadingUnderscore?: UnderscoreOptions;
4104
- readonly prefix?: PrefixSuffixConfig;
4105
- readonly suffix?: PrefixSuffixConfig;
4106
- readonly trailingUnderscore?: UnderscoreOptions;
4107
- readonly filter?: MatchRegexConfig | string;
4108
- readonly selector: 'typeMethod';
4109
- readonly modifiers?: readonly ('public' | 'requiresQuotes')[];
4085
+ custom?: MatchRegexConfig;
4086
+ failureMessage?: string;
4087
+ format: FormatOptionsConfig;
4088
+ leadingUnderscore?: UnderscoreOptions;
4089
+ prefix?: PrefixSuffixConfig;
4090
+ suffix?: PrefixSuffixConfig;
4091
+ trailingUnderscore?: UnderscoreOptions;
4092
+ filter?: string | MatchRegexConfig;
4093
+ selector: 'class';
4094
+ modifiers?: readonly ('abstract' | 'exported' | 'unused')[];
4110
4095
  }
4111
4096
  | {
4112
- readonly custom?: MatchRegexConfig;
4113
- readonly failureMessage?: string;
4114
- readonly format: FormatOptionsConfig;
4115
- readonly leadingUnderscore?: UnderscoreOptions;
4116
- readonly prefix?: PrefixSuffixConfig;
4117
- readonly suffix?: PrefixSuffixConfig;
4118
- readonly trailingUnderscore?: UnderscoreOptions;
4119
- readonly filter?: MatchRegexConfig | string;
4120
- readonly selector: 'typeParameter';
4121
- readonly modifiers?: readonly 'unused'[];
4097
+ custom?: MatchRegexConfig;
4098
+ failureMessage?: string;
4099
+ format: FormatOptionsConfig;
4100
+ leadingUnderscore?: UnderscoreOptions;
4101
+ prefix?: PrefixSuffixConfig;
4102
+ suffix?: PrefixSuffixConfig;
4103
+ trailingUnderscore?: UnderscoreOptions;
4104
+ filter?: string | MatchRegexConfig;
4105
+ selector: 'interface';
4106
+ modifiers?: readonly ('exported' | 'unused')[];
4122
4107
  }
4123
4108
  | {
4124
- readonly custom?: MatchRegexConfig;
4125
- readonly failureMessage?: string;
4126
- readonly format: FormatOptionsConfig;
4127
- readonly leadingUnderscore?: UnderscoreOptions;
4128
- readonly prefix?: PrefixSuffixConfig;
4129
- readonly suffix?: PrefixSuffixConfig;
4130
- readonly trailingUnderscore?: UnderscoreOptions;
4131
- readonly filter?: MatchRegexConfig | string;
4132
- readonly selector: 'typeProperty';
4133
- readonly modifiers?: readonly (
4134
- | 'public'
4135
- | 'readonly'
4136
- | 'requiresQuotes'
4137
- )[];
4138
- readonly types?: readonly TypeModifiers[];
4109
+ custom?: MatchRegexConfig;
4110
+ failureMessage?: string;
4111
+ format: FormatOptionsConfig;
4112
+ leadingUnderscore?: UnderscoreOptions;
4113
+ prefix?: PrefixSuffixConfig;
4114
+ suffix?: PrefixSuffixConfig;
4115
+ trailingUnderscore?: UnderscoreOptions;
4116
+ filter?: string | MatchRegexConfig;
4117
+ selector: 'typeAlias';
4118
+ modifiers?: readonly ('exported' | 'unused')[];
4139
4119
  }
4140
4120
  | {
4141
- readonly custom?: MatchRegexConfig;
4142
- readonly failureMessage?: string;
4143
- readonly format: FormatOptionsConfig;
4144
- readonly leadingUnderscore?: UnderscoreOptions;
4145
- readonly prefix?: PrefixSuffixConfig;
4146
- readonly suffix?: PrefixSuffixConfig;
4147
- readonly trailingUnderscore?: UnderscoreOptions;
4148
- readonly filter?: MatchRegexConfig | string;
4149
- readonly selector: 'variable';
4150
- readonly modifiers?: readonly (
4151
- | 'async'
4152
- | 'const'
4153
- | 'destructured'
4154
- | 'exported'
4155
- | 'global'
4156
- | 'unused'
4157
- )[];
4158
- readonly types?: readonly TypeModifiers[];
4121
+ custom?: MatchRegexConfig;
4122
+ failureMessage?: string;
4123
+ format: FormatOptionsConfig;
4124
+ leadingUnderscore?: UnderscoreOptions;
4125
+ prefix?: PrefixSuffixConfig;
4126
+ suffix?: PrefixSuffixConfig;
4127
+ trailingUnderscore?: UnderscoreOptions;
4128
+ filter?: string | MatchRegexConfig;
4129
+ selector: 'enum';
4130
+ modifiers?: readonly ('exported' | 'unused')[];
4131
+ }
4132
+ | {
4133
+ custom?: MatchRegexConfig;
4134
+ failureMessage?: string;
4135
+ format: FormatOptionsConfig;
4136
+ leadingUnderscore?: UnderscoreOptions;
4137
+ prefix?: PrefixSuffixConfig;
4138
+ suffix?: PrefixSuffixConfig;
4139
+ trailingUnderscore?: UnderscoreOptions;
4140
+ filter?: string | MatchRegexConfig;
4141
+ selector: 'typeParameter';
4142
+ modifiers?: readonly 'unused'[];
4159
4143
  }
4160
4144
  | {
4161
- readonly custom?: MatchRegexConfig;
4162
- readonly failureMessage?: string;
4163
- readonly format: FormatOptionsConfig;
4164
- readonly leadingUnderscore?: UnderscoreOptions;
4165
- readonly prefix?: PrefixSuffixConfig;
4166
- readonly suffix?: PrefixSuffixConfig;
4167
- readonly trailingUnderscore?: UnderscoreOptions;
4168
- readonly filter?: MatchRegexConfig | string;
4169
- readonly selector: 'variableLike';
4170
- readonly modifiers?: readonly ('async' | 'unused')[];
4145
+ custom?: MatchRegexConfig;
4146
+ failureMessage?: string;
4147
+ format: FormatOptionsConfig;
4148
+ leadingUnderscore?: UnderscoreOptions;
4149
+ prefix?: PrefixSuffixConfig;
4150
+ suffix?: PrefixSuffixConfig;
4151
+ trailingUnderscore?: UnderscoreOptions;
4152
+ filter?: string | MatchRegexConfig;
4153
+ selector: 'import';
4154
+ modifiers?: readonly ('default' | 'namespace')[];
4171
4155
  }
4172
- )[];
4156
+ >[];
4173
4157
 
4174
- export type MatchRegexConfig = {
4175
- readonly match: boolean;
4176
- readonly regex: string;
4177
- };
4158
+ export type MatchRegexConfig = Readonly<{
4159
+ match: boolean;
4160
+ regex: string;
4161
+ }>;
4178
4162
 
4179
4163
  export type RuleEntry =
4164
+ | 'off'
4180
4165
  | Linter.Severity
4181
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
4182
- | 'off';
4166
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
4183
4167
  }
4184
4168
 
4185
4169
  /**
@@ -4260,17 +4244,17 @@ namespace NoBaseToString {
4260
4244
  * ]
4261
4245
  * ```
4262
4246
  */
4263
- export type Options = {
4247
+ export type Options = Readonly<{
4264
4248
  /** Whether to also check values of type `unknown` */
4265
- readonly checkUnknown?: boolean;
4249
+ checkUnknown?: boolean;
4266
4250
  /** Stringified type names to ignore. */
4267
- readonly ignoredTypeNames?: readonly string[];
4268
- };
4251
+ ignoredTypeNames?: readonly string[];
4252
+ }>;
4269
4253
 
4270
4254
  export type RuleEntry =
4255
+ | 'off'
4271
4256
  | Linter.Severity
4272
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
4273
- | 'off';
4257
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
4274
4258
  }
4275
4259
 
4276
4260
  /**
@@ -4334,25 +4318,25 @@ namespace NoConfusingVoidExpression {
4334
4318
  * ]
4335
4319
  * ```
4336
4320
  */
4337
- export type Options = {
4321
+ export type Options = Readonly<{
4338
4322
  /**
4339
4323
  * Whether to ignore "shorthand" `() =>` arrow functions: those without `{
4340
4324
  * ... }` braces.
4341
4325
  */
4342
- readonly ignoreArrowShorthand?: boolean;
4326
+ ignoreArrowShorthand?: boolean;
4343
4327
  /** Whether to ignore returns that start with the `void` operator. */
4344
- readonly ignoreVoidOperator?: boolean;
4328
+ ignoreVoidOperator?: boolean;
4345
4329
  /**
4346
4330
  * Whether to ignore returns from functions with explicit `void` return
4347
4331
  * types and functions with contextual `void` return types.
4348
4332
  */
4349
- readonly ignoreVoidReturningFunctions?: boolean;
4350
- };
4333
+ ignoreVoidReturningFunctions?: boolean;
4334
+ }>;
4351
4335
 
4352
4336
  export type RuleEntry =
4337
+ | 'off'
4353
4338
  | Linter.Severity
4354
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
4355
- | 'off';
4339
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
4356
4340
  }
4357
4341
 
4358
4342
  /**
@@ -4495,31 +4479,33 @@ namespace NoDeprecated {
4495
4479
  * ]
4496
4480
  * ```
4497
4481
  */
4498
- export type Options = {
4482
+ export type Options = Readonly<{
4499
4483
  /** Type specifiers that can be allowed. */
4500
- readonly allow?: readonly (
4484
+ allow?: readonly (
4501
4485
  | string
4502
- | {
4503
- readonly from: 'file';
4504
- readonly name: string | readonly [string, ...(readonly string[])];
4505
- readonly path?: string;
4506
- }
4507
- | {
4508
- readonly from: 'lib';
4509
- readonly name: string | readonly [string, ...(readonly string[])];
4510
- }
4511
- | {
4512
- readonly from: 'package';
4513
- readonly name: string | readonly [string, ...(readonly string[])];
4514
- readonly package: string;
4515
- }
4486
+ | Readonly<
4487
+ | {
4488
+ from: 'file';
4489
+ name: string | readonly [string, ...string[]];
4490
+ path?: string;
4491
+ }
4492
+ | {
4493
+ from: 'lib';
4494
+ name: string | readonly [string, ...string[]];
4495
+ }
4496
+ | {
4497
+ from: 'package';
4498
+ name: string | readonly [string, ...string[]];
4499
+ package: string;
4500
+ }
4501
+ >
4516
4502
  )[];
4517
- };
4503
+ }>;
4518
4504
 
4519
4505
  export type RuleEntry =
4506
+ | 'off'
4520
4507
  | Linter.Severity
4521
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
4522
- | 'off';
4508
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
4523
4509
  }
4524
4510
 
4525
4511
  /**
@@ -4594,17 +4580,17 @@ namespace NoDuplicateTypeConstituents {
4594
4580
  * ]
4595
4581
  * ```
4596
4582
  */
4597
- export type Options = {
4583
+ export type Options = Readonly<{
4598
4584
  /** Whether to ignore `&` intersections. */
4599
- readonly ignoreIntersections?: boolean;
4585
+ ignoreIntersections?: boolean;
4600
4586
  /** Whether to ignore `|` unions. */
4601
- readonly ignoreUnions?: boolean;
4602
- };
4587
+ ignoreUnions?: boolean;
4588
+ }>;
4603
4589
 
4604
4590
  export type RuleEntry =
4591
+ | 'off'
4605
4592
  | Linter.Severity
4606
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
4607
- | 'off';
4593
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
4608
4594
  }
4609
4595
 
4610
4596
  /**
@@ -4678,30 +4664,30 @@ namespace NoEmptyFunction {
4678
4664
  * ]
4679
4665
  * ```
4680
4666
  */
4681
- export type Options = {
4667
+ export type Options = Readonly<{
4682
4668
  /** Locations and kinds of functions that are allowed to be empty. */
4683
- readonly allow?: readonly (
4684
- | 'arrowFunctions'
4685
- | 'asyncFunctions'
4686
- | 'asyncMethods'
4687
- | 'constructors'
4688
- | 'decoratedFunctions'
4669
+ allow?: readonly (
4689
4670
  | 'functions'
4671
+ | 'arrowFunctions'
4690
4672
  | 'generatorFunctions'
4673
+ | 'methods'
4691
4674
  | 'generatorMethods'
4692
4675
  | 'getters'
4693
- | 'methods'
4694
- | 'overrideMethods'
4676
+ | 'setters'
4677
+ | 'constructors'
4695
4678
  | 'private-constructors'
4696
4679
  | 'protected-constructors'
4697
- | 'setters'
4680
+ | 'asyncFunctions'
4681
+ | 'asyncMethods'
4682
+ | 'decoratedFunctions'
4683
+ | 'overrideMethods'
4698
4684
  )[];
4699
- };
4685
+ }>;
4700
4686
 
4701
4687
  export type RuleEntry =
4688
+ | 'off'
4702
4689
  | Linter.Severity
4703
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
4704
- | 'off';
4690
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
4705
4691
  }
4706
4692
 
4707
4693
  /**
@@ -4790,22 +4776,22 @@ namespace NoEmptyObjectType {
4790
4776
  * ]
4791
4777
  * ```
4792
4778
  */
4793
- export type Options = {
4779
+ export type Options = Readonly<{
4794
4780
  /** Whether to allow empty interfaces. */
4795
- readonly allowInterfaces?: 'always' | 'never' | 'with-single-extends';
4781
+ allowInterfaces?: 'always' | 'never' | 'with-single-extends';
4796
4782
  /** Whether to allow empty object type literals. */
4797
- readonly allowObjectTypes?: 'always' | 'never';
4783
+ allowObjectTypes?: 'always' | 'never';
4798
4784
  /**
4799
4785
  * A stringified regular expression to allow interfaces and object type
4800
4786
  * aliases with the configured name.
4801
4787
  */
4802
- readonly allowWithName?: string;
4803
- };
4788
+ allowWithName?: string;
4789
+ }>;
4804
4790
 
4805
4791
  export type RuleEntry =
4792
+ | 'off'
4806
4793
  | Linter.Severity
4807
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
4808
- | 'off';
4794
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
4809
4795
  }
4810
4796
 
4811
4797
  /**
@@ -4846,20 +4832,20 @@ namespace NoExplicitAny {
4846
4832
  * ]
4847
4833
  * ```
4848
4834
  */
4849
- export type Options = {
4835
+ export type Options = Readonly<{
4850
4836
  /**
4851
4837
  * Whether to enable auto-fixing in which the `any` type is converted to the
4852
4838
  * `unknown` type.
4853
4839
  */
4854
- readonly fixToUnknown?: boolean;
4840
+ fixToUnknown?: boolean;
4855
4841
  /** Whether to ignore rest parameter arrays. */
4856
- readonly ignoreRestArgs?: boolean;
4857
- };
4842
+ ignoreRestArgs?: boolean;
4843
+ }>;
4858
4844
 
4859
4845
  export type RuleEntry =
4846
+ | 'off'
4860
4847
  | Linter.Severity
4861
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
4862
- | 'off';
4848
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
4863
4849
  }
4864
4850
 
4865
4851
  /**
@@ -4924,21 +4910,21 @@ namespace NoExtraneousClass {
4924
4910
  * ]
4925
4911
  * ```
4926
4912
  */
4927
- export type Options = {
4913
+ export type Options = Readonly<{
4928
4914
  /** Whether to allow extraneous classes that contain only a constructor. */
4929
- readonly allowConstructorOnly?: boolean;
4915
+ allowConstructorOnly?: boolean;
4930
4916
  /** Whether to allow extraneous classes that have no body (i.e. are empty). */
4931
- readonly allowEmpty?: boolean;
4917
+ allowEmpty?: boolean;
4932
4918
  /** Whether to allow extraneous classes that only contain static members. */
4933
- readonly allowStaticOnly?: boolean;
4919
+ allowStaticOnly?: boolean;
4934
4920
  /** Whether to allow extraneous classes that include a decorator. */
4935
- readonly allowWithDecorator?: boolean;
4936
- };
4921
+ allowWithDecorator?: boolean;
4922
+ }>;
4937
4923
 
4938
4924
  export type RuleEntry =
4925
+ | 'off'
4939
4926
  | Linter.Severity
4940
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
4941
- | 'off';
4927
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
4942
4928
  }
4943
4929
 
4944
4930
  /**
@@ -5205,55 +5191,59 @@ namespace NoFloatingPromises {
5205
5191
  * ]
5206
5192
  * ```
5207
5193
  */
5208
- export type Options = {
5194
+ export type Options = Readonly<{
5209
5195
  /** Type specifiers of functions whose calls are safe to float. */
5210
- readonly allowForKnownSafeCalls?: readonly (
5196
+ allowForKnownSafeCalls?: readonly (
5211
5197
  | string
5212
- | {
5213
- readonly from: 'file';
5214
- readonly name: string | readonly [string, ...(readonly string[])];
5215
- readonly path?: string;
5216
- }
5217
- | {
5218
- readonly from: 'lib';
5219
- readonly name: string | readonly [string, ...(readonly string[])];
5220
- }
5221
- | {
5222
- readonly from: 'package';
5223
- readonly name: string | readonly [string, ...(readonly string[])];
5224
- readonly package: string;
5225
- }
5198
+ | Readonly<
5199
+ | {
5200
+ from: 'file';
5201
+ name: string | readonly [string, ...string[]];
5202
+ path?: string;
5203
+ }
5204
+ | {
5205
+ from: 'lib';
5206
+ name: string | readonly [string, ...string[]];
5207
+ }
5208
+ | {
5209
+ from: 'package';
5210
+ name: string | readonly [string, ...string[]];
5211
+ package: string;
5212
+ }
5213
+ >
5226
5214
  )[];
5227
5215
  /** Type specifiers that are known to be safe to float. */
5228
- readonly allowForKnownSafePromises?: readonly (
5216
+ allowForKnownSafePromises?: readonly (
5229
5217
  | string
5230
- | {
5231
- readonly from: 'file';
5232
- readonly name: string | readonly [string, ...(readonly string[])];
5233
- readonly path?: string;
5234
- }
5235
- | {
5236
- readonly from: 'lib';
5237
- readonly name: string | readonly [string, ...(readonly string[])];
5238
- }
5239
- | {
5240
- readonly from: 'package';
5241
- readonly name: string | readonly [string, ...(readonly string[])];
5242
- readonly package: string;
5243
- }
5218
+ | Readonly<
5219
+ | {
5220
+ from: 'file';
5221
+ name: string | readonly [string, ...string[]];
5222
+ path?: string;
5223
+ }
5224
+ | {
5225
+ from: 'lib';
5226
+ name: string | readonly [string, ...string[]];
5227
+ }
5228
+ | {
5229
+ from: 'package';
5230
+ name: string | readonly [string, ...string[]];
5231
+ package: string;
5232
+ }
5233
+ >
5244
5234
  )[];
5245
5235
  /** Whether to check all "Thenable"s, not just the built-in Promise type. */
5246
- readonly checkThenables?: boolean;
5236
+ checkThenables?: boolean;
5247
5237
  /** Whether to ignore async IIFEs (Immediately Invoked Function Expressions). */
5248
- readonly ignoreIIFE?: boolean;
5238
+ ignoreIIFE?: boolean;
5249
5239
  /** Whether to ignore `void` expressions. */
5250
- readonly ignoreVoid?: boolean;
5251
- };
5240
+ ignoreVoid?: boolean;
5241
+ }>;
5252
5242
 
5253
5243
  export type RuleEntry =
5244
+ | 'off'
5254
5245
  | Linter.Severity
5255
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
5256
- | 'off';
5246
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
5257
5247
  }
5258
5248
 
5259
5249
  /**
@@ -5348,17 +5338,17 @@ namespace NoInferrableTypes {
5348
5338
  * ]
5349
5339
  * ```
5350
5340
  */
5351
- export type Options = {
5341
+ export type Options = Readonly<{
5352
5342
  /** Whether to ignore function parameters. */
5353
- readonly ignoreParameters?: boolean;
5343
+ ignoreParameters?: boolean;
5354
5344
  /** Whether to ignore class properties. */
5355
- readonly ignoreProperties?: boolean;
5356
- };
5345
+ ignoreProperties?: boolean;
5346
+ }>;
5357
5347
 
5358
5348
  export type RuleEntry =
5349
+ | 'off'
5359
5350
  | Linter.Severity
5360
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
5361
- | 'off';
5351
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
5362
5352
  }
5363
5353
 
5364
5354
  /**
@@ -5391,14 +5381,14 @@ namespace NoInvalidThis {
5391
5381
  * ]
5392
5382
  * ```
5393
5383
  */
5394
- export type Options = {
5395
- readonly capIsConstructor?: boolean;
5396
- };
5384
+ export type Options = Readonly<{
5385
+ capIsConstructor?: boolean;
5386
+ }>;
5397
5387
 
5398
5388
  export type RuleEntry =
5389
+ | 'off'
5399
5390
  | Linter.Severity
5400
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
5401
- | 'off';
5391
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
5402
5392
  }
5403
5393
 
5404
5394
  /**
@@ -5450,19 +5440,17 @@ namespace NoInvalidVoidType {
5450
5440
  * ]
5451
5441
  * ```
5452
5442
  */
5453
- export type Options = {
5443
+ export type Options = Readonly<{
5454
5444
  /** Whether a `this` parameter of a function may be `void`. */
5455
- readonly allowAsThisParameter?: boolean;
5445
+ allowAsThisParameter?: boolean;
5456
5446
  /** Whether `void` can be used as a valid value for generic type parameters. */
5457
- readonly allowInGenericTypeArguments?:
5458
- | boolean
5459
- | readonly [string, ...(readonly string[])];
5460
- };
5447
+ allowInGenericTypeArguments?: boolean | readonly [string, ...string[]];
5448
+ }>;
5461
5449
 
5462
5450
  export type RuleEntry =
5451
+ | 'off'
5463
5452
  | Linter.Severity
5464
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
5465
- | 'off';
5453
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
5466
5454
  }
5467
5455
 
5468
5456
  /**
@@ -5580,30 +5568,49 @@ namespace NoMagicNumbers {
5580
5568
  * ]
5581
5569
  * ```
5582
5570
  */
5583
- export type Options = {
5584
- readonly detectObjects?: boolean;
5585
- readonly enforceConst?: boolean;
5586
- readonly ignore?: readonly (number | string)[];
5587
- readonly ignoreArrayIndexes?: boolean;
5588
- readonly ignoreDefaultValues?: boolean;
5589
- readonly ignoreClassFieldInitialValues?: boolean;
5590
- /** Whether enums used in TypeScript are considered okay. */
5591
- readonly ignoreEnums?: boolean;
5571
+ export type Options = Readonly<{
5572
+ /** @default false */
5573
+ detectObjects?: boolean;
5574
+ /** @default false */
5575
+ enforceConst?: boolean;
5576
+ ignore?: readonly (number | string)[];
5577
+ /** @default false */
5578
+ ignoreArrayIndexes?: boolean;
5579
+ /** @default false */
5580
+ ignoreDefaultValues?: boolean;
5581
+ /** @default false */
5582
+ ignoreClassFieldInitialValues?: boolean;
5583
+ /**
5584
+ * Whether enums used in TypeScript are considered okay.
5585
+ *
5586
+ * @default false
5587
+ */
5588
+ ignoreEnums?: boolean;
5592
5589
  /**
5593
5590
  * Whether numbers used in TypeScript numeric literal types are considered
5594
5591
  * okay.
5592
+ *
5593
+ * @default false
5594
+ */
5595
+ ignoreNumericLiteralTypes?: boolean;
5596
+ /**
5597
+ * Whether `readonly` class properties are considered okay.
5598
+ *
5599
+ * @default false
5595
5600
  */
5596
- readonly ignoreNumericLiteralTypes?: boolean;
5597
- /** Whether `readonly` class properties are considered okay. */
5598
- readonly ignoreReadonlyClassProperties?: boolean;
5599
- /** Whether numbers used to index types are okay. */
5600
- readonly ignoreTypeIndexes?: boolean;
5601
- };
5601
+ ignoreReadonlyClassProperties?: boolean;
5602
+ /**
5603
+ * Whether numbers used to index types are okay.
5604
+ *
5605
+ * @default false
5606
+ */
5607
+ ignoreTypeIndexes?: boolean;
5608
+ }>;
5602
5609
 
5603
5610
  export type RuleEntry =
5611
+ | 'off'
5604
5612
  | Linter.Severity
5605
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
5606
- | 'off';
5613
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
5607
5614
  }
5608
5615
 
5609
5616
  /**
@@ -5641,15 +5648,15 @@ namespace NoMeaninglessVoidOperator {
5641
5648
  * ]
5642
5649
  * ```
5643
5650
  */
5644
- export type Options = {
5651
+ export type Options = Readonly<{
5645
5652
  /** Whether to suggest removing `void` when the argument has type `never`. */
5646
- readonly checkNever?: boolean;
5647
- };
5653
+ checkNever?: boolean;
5654
+ }>;
5648
5655
 
5649
5656
  export type RuleEntry =
5657
+ | 'off'
5650
5658
  | Linter.Severity
5651
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
5652
- | 'off';
5659
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
5653
5660
  }
5654
5661
 
5655
5662
  /**
@@ -5746,55 +5753,55 @@ namespace NoMisusedPromises {
5746
5753
  * ]
5747
5754
  * ```
5748
5755
  */
5749
- export type Options = {
5756
+ export type Options = Readonly<{
5750
5757
  /** Whether to warn when a Promise is provided to conditional statements. */
5751
- readonly checksConditionals?: boolean;
5758
+ checksConditionals?: boolean;
5752
5759
  /** Whether to warn when `...` spreading a `Promise`. */
5753
- readonly checksSpreads?: boolean;
5760
+ checksSpreads?: boolean;
5754
5761
  /**
5755
5762
  * Whether to warn when a Promise is returned from a function typed as
5756
5763
  * returning `void`.
5757
5764
  */
5758
- readonly checksVoidReturn?:
5765
+ checksVoidReturn?:
5759
5766
  | boolean
5760
- | {
5767
+ | Readonly<{
5761
5768
  /**
5762
5769
  * Disables checking an asynchronous function passed as argument where
5763
5770
  * the parameter type expects a function that returns `void`.
5764
5771
  */
5765
- readonly arguments?: boolean;
5772
+ arguments?: boolean;
5766
5773
  /**
5767
5774
  * Disables checking an asynchronous function passed as a JSX
5768
5775
  * attribute expected to be a function that returns `void`.
5769
5776
  */
5770
- readonly attributes?: boolean;
5777
+ attributes?: boolean;
5771
5778
  /**
5772
5779
  * Disables checking an asynchronous method in a type that extends or
5773
5780
  * implements another type expecting that method to return `void`.
5774
5781
  */
5775
- readonly inheritedMethods?: boolean;
5782
+ inheritedMethods?: boolean;
5776
5783
  /**
5777
5784
  * Disables checking an asynchronous function passed as an object
5778
5785
  * property expected to be a function that returns `void`.
5779
5786
  */
5780
- readonly properties?: boolean;
5787
+ properties?: boolean;
5781
5788
  /**
5782
5789
  * Disables checking an asynchronous function returned in a function
5783
5790
  * whose return type is a function that returns `void`.
5784
5791
  */
5785
- readonly returns?: boolean;
5792
+ returns?: boolean;
5786
5793
  /**
5787
5794
  * Disables checking an asynchronous function used as a variable whose
5788
5795
  * return type is a function that returns `void`.
5789
5796
  */
5790
- readonly variables?: boolean;
5791
- };
5792
- };
5797
+ variables?: boolean;
5798
+ }>;
5799
+ }>;
5793
5800
 
5794
5801
  export type RuleEntry =
5802
+ | 'off'
5795
5803
  | Linter.Severity
5796
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
5797
- | 'off';
5804
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
5798
5805
  }
5799
5806
 
5800
5807
  /**
@@ -5938,31 +5945,33 @@ namespace NoMisusedSpread {
5938
5945
  * ]
5939
5946
  * ```
5940
5947
  */
5941
- export type Options = {
5948
+ export type Options = Readonly<{
5942
5949
  /** An array of type specifiers that are known to be safe to spread. */
5943
- readonly allow?: readonly (
5950
+ allow?: readonly (
5944
5951
  | string
5945
- | {
5946
- readonly from: 'file';
5947
- readonly name: string | readonly [string, ...(readonly string[])];
5948
- readonly path?: string;
5949
- }
5950
- | {
5951
- readonly from: 'lib';
5952
- readonly name: string | readonly [string, ...(readonly string[])];
5953
- }
5954
- | {
5955
- readonly from: 'package';
5956
- readonly name: string | readonly [string, ...(readonly string[])];
5957
- readonly package: string;
5958
- }
5952
+ | Readonly<
5953
+ | {
5954
+ from: 'file';
5955
+ name: string | readonly [string, ...string[]];
5956
+ path?: string;
5957
+ }
5958
+ | {
5959
+ from: 'lib';
5960
+ name: string | readonly [string, ...string[]];
5961
+ }
5962
+ | {
5963
+ from: 'package';
5964
+ name: string | readonly [string, ...string[]];
5965
+ package: string;
5966
+ }
5967
+ >
5959
5968
  )[];
5960
- };
5969
+ }>;
5961
5970
 
5962
5971
  export type RuleEntry =
5972
+ | 'off'
5963
5973
  | Linter.Severity
5964
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
5965
- | 'off';
5974
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
5966
5975
  }
5967
5976
 
5968
5977
  /**
@@ -6019,20 +6028,20 @@ namespace NoNamespace {
6019
6028
  * ]
6020
6029
  * ```
6021
6030
  */
6022
- export type Options = {
6031
+ export type Options = Readonly<{
6023
6032
  /** Whether to allow `declare` with custom TypeScript namespaces. */
6024
- readonly allowDeclarations?: boolean;
6033
+ allowDeclarations?: boolean;
6025
6034
  /**
6026
6035
  * Whether to allow `declare` with custom TypeScript namespaces inside
6027
6036
  * definition files.
6028
6037
  */
6029
- readonly allowDefinitionFiles?: boolean;
6030
- };
6038
+ allowDefinitionFiles?: boolean;
6039
+ }>;
6031
6040
 
6032
6041
  export type RuleEntry =
6042
+ | 'off'
6033
6043
  | Linter.Severity
6034
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
6035
- | 'off';
6044
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
6036
6045
  }
6037
6046
 
6038
6047
  /**
@@ -6125,20 +6134,20 @@ namespace NoRedeclare {
6125
6134
  * ]
6126
6135
  * ```
6127
6136
  */
6128
- export type Options = {
6137
+ export type Options = Readonly<{
6129
6138
  /** Whether to report shadowing of built-in global variables. */
6130
- readonly builtinGlobals?: boolean;
6139
+ builtinGlobals?: boolean;
6131
6140
  /**
6132
6141
  * Whether to ignore declaration merges between certain TypeScript
6133
6142
  * declaration types.
6134
6143
  */
6135
- readonly ignoreDeclarationMerge?: boolean;
6136
- };
6144
+ ignoreDeclarationMerge?: boolean;
6145
+ }>;
6137
6146
 
6138
6147
  export type RuleEntry =
6148
+ | 'off'
6139
6149
  | Linter.Severity
6140
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
6141
- | 'off';
6150
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
6142
6151
  }
6143
6152
 
6144
6153
  /**
@@ -6199,17 +6208,17 @@ namespace NoRequireImports {
6199
6208
  * ]
6200
6209
  * ```
6201
6210
  */
6202
- export type Options = {
6211
+ export type Options = Readonly<{
6203
6212
  /** Patterns of import paths to allow requiring from. */
6204
- readonly allow?: readonly string[];
6213
+ allow?: readonly string[];
6205
6214
  /** Allows `require` statements in import declarations. */
6206
- readonly allowAsImport?: boolean;
6207
- };
6215
+ allowAsImport?: boolean;
6216
+ }>;
6208
6217
 
6209
6218
  export type RuleEntry =
6219
+ | 'off'
6210
6220
  | Linter.Severity
6211
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
6212
- | 'off';
6221
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
6213
6222
  }
6214
6223
 
6215
6224
  /**
@@ -6397,59 +6406,53 @@ namespace NoRestrictedImports {
6397
6406
  export type Options =
6398
6407
  | readonly (
6399
6408
  | string
6400
- | {
6401
- readonly name: string;
6402
- readonly message?: string;
6403
- readonly importNames?: readonly string[];
6404
- readonly allowImportNames?: readonly string[];
6409
+ | Readonly<{
6410
+ name: string;
6411
+ message?: string;
6412
+ importNames?: readonly string[];
6413
+ allowImportNames?: readonly string[];
6405
6414
  /** Whether to allow type-only imports for a path. */
6406
- readonly allowTypeImports?: boolean;
6407
- }
6415
+ allowTypeImports?: boolean;
6416
+ }>
6408
6417
  )[]
6418
+ | readonly []
6409
6419
  | readonly [
6410
- {
6411
- readonly paths?: readonly (
6420
+ Readonly<{
6421
+ paths?: readonly (
6412
6422
  | string
6413
- | {
6414
- readonly name: string;
6415
- readonly message?: string;
6416
- readonly importNames?: readonly string[];
6417
- readonly allowImportNames?: readonly string[];
6423
+ | Readonly<{
6424
+ name: string;
6425
+ message?: string;
6426
+ importNames?: readonly string[];
6427
+ allowImportNames?: readonly string[];
6418
6428
  /** Whether to allow type-only imports for a path. */
6419
- readonly allowTypeImports?: boolean;
6420
- }
6429
+ allowTypeImports?: boolean;
6430
+ }>
6421
6431
  )[];
6422
- readonly patterns?:
6423
- | readonly {
6432
+ patterns?:
6433
+ | readonly string[]
6434
+ | readonly Readonly<{
6424
6435
  /** @minItems 1 */
6425
- readonly importNames?: readonly [
6426
- string,
6427
- ...(readonly string[]),
6428
- ];
6436
+ importNames?: readonly [string, ...string[]];
6429
6437
  /** @minItems 1 */
6430
- readonly allowImportNames?: readonly [
6431
- string,
6432
- ...(readonly string[]),
6433
- ];
6438
+ allowImportNames?: readonly [string, ...string[]];
6434
6439
  /** @minItems 1 */
6435
- readonly group?: readonly [string, ...(readonly string[])];
6436
- readonly regex?: string;
6437
- readonly importNamePattern?: string;
6438
- readonly allowImportNamePattern?: string;
6439
- readonly message?: string;
6440
- readonly caseSensitive?: boolean;
6440
+ group?: readonly [string, ...string[]];
6441
+ regex?: string;
6442
+ importNamePattern?: string;
6443
+ allowImportNamePattern?: string;
6444
+ message?: string;
6445
+ caseSensitive?: boolean;
6441
6446
  /** Whether to allow type-only imports for a path. */
6442
- readonly allowTypeImports?: boolean;
6443
- }[]
6444
- | readonly string[];
6445
- },
6446
- ]
6447
- | readonly [];
6447
+ allowTypeImports?: boolean;
6448
+ }>[];
6449
+ }>,
6450
+ ];
6448
6451
 
6449
6452
  export type RuleEntry =
6453
+ | 'off'
6450
6454
  | Linter.Severity
6451
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
6452
- | 'off';
6455
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
6453
6456
  }
6454
6457
 
6455
6458
  /**
@@ -6528,32 +6531,32 @@ namespace NoRestrictedTypes {
6528
6531
  * ```
6529
6532
  */
6530
6533
  export type BanConfig =
6531
- | string
6532
6534
  | true
6533
- | {
6535
+ | string
6536
+ | Readonly<{
6534
6537
  /**
6535
6538
  * Type to autofix replace with. Note that autofixers can be applied
6536
6539
  * automatically - so you need to be careful with this option.
6537
6540
  */
6538
- readonly fixWith?: string;
6541
+ fixWith?: string;
6539
6542
  /** Custom error message. */
6540
- readonly message?: string;
6543
+ message?: string;
6541
6544
  /** Types to suggest replacing with. */
6542
- readonly suggest?: readonly string[];
6543
- };
6545
+ suggest?: readonly string[];
6546
+ }>;
6544
6547
 
6545
- export type Options = {
6548
+ export type Options = Readonly<{
6546
6549
  /**
6547
6550
  * An object whose keys are the types you want to ban, and the values are
6548
6551
  * error messages.
6549
6552
  */
6550
- readonly types?: Record<string, BanConfig>;
6551
- };
6553
+ types?: Readonly<Record<string, BanConfig>>;
6554
+ }>;
6552
6555
 
6553
6556
  export type RuleEntry =
6557
+ | 'off'
6554
6558
  | Linter.Severity
6555
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
6556
- | 'off';
6559
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
6557
6560
  }
6558
6561
 
6559
6562
  /**
@@ -6618,36 +6621,31 @@ namespace NoShadow {
6618
6621
  * ]
6619
6622
  * ```
6620
6623
  */
6621
- export type Options = {
6624
+ export type Options = Readonly<{
6622
6625
  /** Identifier names for which shadowing is allowed. */
6623
- readonly allow?: readonly string[];
6626
+ allow?: readonly string[];
6624
6627
  /** Whether to report shadowing of built-in global variables. */
6625
- readonly builtinGlobals?: boolean;
6628
+ builtinGlobals?: boolean;
6626
6629
  /**
6627
6630
  * Whether to report shadowing before outer functions or variables are
6628
6631
  * defined.
6629
6632
  */
6630
- readonly hoist?:
6631
- | 'all'
6632
- | 'functions-and-types'
6633
- | 'functions'
6634
- | 'never'
6635
- | 'types';
6633
+ hoist?: 'all' | 'functions' | 'functions-and-types' | 'never' | 'types';
6636
6634
  /** Whether to ignore function parameters named the same as a variable. */
6637
- readonly ignoreFunctionTypeParameterNameValueShadow?: boolean;
6635
+ ignoreFunctionTypeParameterNameValueShadow?: boolean;
6638
6636
  /**
6639
6637
  * Whether to ignore the variable initializers when the shadowed variable is
6640
6638
  * presumably still unitialized.
6641
6639
  */
6642
- readonly ignoreOnInitialization?: boolean;
6640
+ ignoreOnInitialization?: boolean;
6643
6641
  /** Whether to ignore types named the same as a variable. */
6644
- readonly ignoreTypeValueShadow?: boolean;
6645
- };
6642
+ ignoreTypeValueShadow?: boolean;
6643
+ }>;
6646
6644
 
6647
6645
  export type RuleEntry =
6646
+ | 'off'
6648
6647
  | Linter.Severity
6649
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
6650
- | 'off';
6648
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
6651
6649
  }
6652
6650
 
6653
6651
  /**
@@ -6689,20 +6687,20 @@ namespace NoThisAlias {
6689
6687
  * ]
6690
6688
  * ```
6691
6689
  */
6692
- export type Options = {
6690
+ export type Options = Readonly<{
6693
6691
  /**
6694
6692
  * Whether to ignore destructurings, such as `const { props, state } =
6695
6693
  * this`.
6696
6694
  */
6697
- readonly allowDestructuring?: boolean;
6695
+ allowDestructuring?: boolean;
6698
6696
  /** Names to ignore, such as ["self"] for `const self = this;`. */
6699
- readonly allowedNames?: readonly string[];
6700
- };
6697
+ allowedNames?: readonly string[];
6698
+ }>;
6701
6699
 
6702
6700
  export type RuleEntry =
6701
+ | 'off'
6703
6702
  | Linter.Severity
6704
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
6705
- | 'off';
6703
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
6706
6704
  }
6707
6705
 
6708
6706
  /**
@@ -6828,29 +6826,29 @@ namespace NoUnnecessaryBooleanLiteralCompare {
6828
6826
  * ]
6829
6827
  * ```
6830
6828
  */
6831
- export type Options = {
6829
+ export type Options = Readonly<{
6832
6830
  /**
6833
6831
  * Whether to allow comparisons between nullable boolean variables and
6834
6832
  * `false`.
6835
6833
  */
6836
- readonly allowComparingNullableBooleansToFalse?: boolean;
6834
+ allowComparingNullableBooleansToFalse?: boolean;
6837
6835
  /**
6838
6836
  * Whether to allow comparisons between nullable boolean variables and
6839
6837
  * `true`.
6840
6838
  */
6841
- readonly allowComparingNullableBooleansToTrue?: boolean;
6839
+ allowComparingNullableBooleansToTrue?: boolean;
6842
6840
  /**
6843
6841
  * Unless this is set to `true`, the rule will error on every file whose
6844
6842
  * `tsconfig.json` does _not_ have the `strictNullChecks` compiler option
6845
6843
  * (or `strict`) set to `true`.
6846
6844
  */
6847
- readonly allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
6848
- };
6845
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
6846
+ }>;
6849
6847
 
6850
6848
  export type RuleEntry =
6849
+ | 'off'
6851
6850
  | Linter.Severity
6852
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
6853
- | 'off';
6851
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
6854
6852
  }
6855
6853
 
6856
6854
  /**
@@ -6909,27 +6907,27 @@ namespace NoUnnecessaryCondition {
6909
6907
  * ]
6910
6908
  * ```
6911
6909
  */
6912
- export type Options = {
6910
+ export type Options = Readonly<{
6913
6911
  /** Whether to ignore constant loop conditions, such as `while (true)`. */
6914
- readonly allowConstantLoopConditions?:
6912
+ allowConstantLoopConditions?:
6915
6913
  | boolean
6916
6914
  | ('always' | 'never' | 'only-allowed-literals');
6917
6915
  /**
6918
6916
  * Whether to not error when running with a tsconfig that has
6919
6917
  * strictNullChecks turned.
6920
6918
  */
6921
- readonly allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
6919
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
6922
6920
  /**
6923
6921
  * Whether to check the asserted argument of a type predicate function for
6924
6922
  * unnecessary conditions
6925
6923
  */
6926
- readonly checkTypePredicates?: boolean;
6927
- };
6924
+ checkTypePredicates?: boolean;
6925
+ }>;
6928
6926
 
6929
6927
  export type RuleEntry =
6928
+ | 'off'
6930
6929
  | Linter.Severity
6931
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
6932
- | 'off';
6930
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
6933
6931
  }
6934
6932
 
6935
6933
  /**
@@ -7045,17 +7043,17 @@ namespace NoUnnecessaryTypeAssertion {
7045
7043
  * ]
7046
7044
  * ```
7047
7045
  */
7048
- export type Options = {
7046
+ export type Options = Readonly<{
7049
7047
  /** Whether to check literal const assertions. */
7050
- readonly checkLiteralConstAssertions?: boolean;
7048
+ checkLiteralConstAssertions?: boolean;
7051
7049
  /** A list of type names to ignore. */
7052
- readonly typesToIgnore?: readonly string[];
7053
- };
7050
+ typesToIgnore?: readonly string[];
7051
+ }>;
7054
7052
 
7055
7053
  export type RuleEntry =
7054
+ | 'off'
7056
7055
  | Linter.Severity
7057
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
7058
- | 'off';
7056
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
7059
7057
  }
7060
7058
 
7061
7059
  /**
@@ -7256,15 +7254,15 @@ namespace NoUnsafeMemberAccess {
7256
7254
  * ]
7257
7255
  * ```
7258
7256
  */
7259
- export type Options = {
7257
+ export type Options = Readonly<{
7260
7258
  /** Whether to allow `?.` optional chains on `any` values. */
7261
- readonly allowOptionalChaining?: boolean;
7262
- };
7259
+ allowOptionalChaining?: boolean;
7260
+ }>;
7263
7261
 
7264
7262
  export type RuleEntry =
7263
+ | 'off'
7265
7264
  | Linter.Severity
7266
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
7267
- | 'off';
7265
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
7268
7266
  }
7269
7267
 
7270
7268
  /**
@@ -7363,18 +7361,35 @@ namespace NoUnusedExpressions {
7363
7361
  * ]
7364
7362
  * ```
7365
7363
  */
7366
- export type Options = {
7367
- readonly allowShortCircuit?: boolean;
7368
- readonly allowTernary?: boolean;
7369
- readonly allowTaggedTemplates?: boolean;
7370
- readonly enforceForJSX?: boolean;
7371
- readonly ignoreDirectives?: boolean;
7372
- };
7364
+ export type Options = Readonly<{
7365
+ allowShortCircuit?: boolean;
7366
+ allowTernary?: boolean;
7367
+ allowTaggedTemplates?: boolean;
7368
+ enforceForJSX?: boolean;
7369
+ ignoreDirectives?: boolean;
7370
+ }>;
7373
7371
 
7374
7372
  export type RuleEntry =
7373
+ | 'off'
7375
7374
  | Linter.Severity
7376
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
7377
- | 'off';
7375
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
7376
+ }
7377
+
7378
+ /**
7379
+ * Disallow unused private class members
7380
+ *
7381
+ * @link https://typescript-eslint.io/rules/no-unused-private-class-members
7382
+ *
7383
+ * ```md
7384
+ * | key | value |
7385
+ * | :------------------- | :------ |
7386
+ * | type | problem |
7387
+ * | deprecated | false |
7388
+ * | requiresTypeChecking | false |
7389
+ * ```
7390
+ */
7391
+ namespace NoUnusedPrivateClassMembers {
7392
+ export type RuleEntry = Linter.StringSeverity;
7378
7393
  }
7379
7394
 
7380
7395
  /**
@@ -7475,49 +7490,48 @@ namespace NoUnusedVars {
7475
7490
  * ```
7476
7491
  */
7477
7492
  export type Options =
7478
- | 'all'
7479
- | 'local'
7480
- | {
7493
+ | ('all' | 'local')
7494
+ | Readonly<{
7481
7495
  /** Whether to check all, some, or no arguments. */
7482
- readonly args?: 'after-used' | 'all' | 'none';
7496
+ args?: 'all' | 'after-used' | 'none';
7483
7497
  /** Regular expressions of argument names to not check for usage. */
7484
- readonly argsIgnorePattern?: string;
7498
+ argsIgnorePattern?: string;
7485
7499
  /** Whether to check catch block arguments. */
7486
- readonly caughtErrors?: 'all' | 'none';
7500
+ caughtErrors?: 'all' | 'none';
7487
7501
  /**
7488
7502
  * Regular expressions of catch block argument names to not check for
7489
7503
  * usage.
7490
7504
  */
7491
- readonly caughtErrorsIgnorePattern?: string;
7505
+ caughtErrorsIgnorePattern?: string;
7492
7506
  /**
7493
7507
  * Regular expressions of destructured array variable names to not check
7494
7508
  * for usage.
7495
7509
  */
7496
- readonly destructuredArrayIgnorePattern?: string;
7510
+ destructuredArrayIgnorePattern?: string;
7497
7511
  /**
7498
7512
  * Whether to ignore classes with at least one static initialization
7499
7513
  * block.
7500
7514
  */
7501
- readonly ignoreClassWithStaticInitBlock?: boolean;
7515
+ ignoreClassWithStaticInitBlock?: boolean;
7502
7516
  /** Whether to ignore sibling properties in `...` destructurings. */
7503
- readonly ignoreRestSiblings?: boolean;
7517
+ ignoreRestSiblings?: boolean;
7504
7518
  /** Whether to ignore using or await using declarations. */
7505
- readonly ignoreUsingDeclarations?: boolean;
7519
+ ignoreUsingDeclarations?: boolean;
7506
7520
  /**
7507
7521
  * Whether to report variables that match any of the valid ignore
7508
7522
  * pattern options if they have been used.
7509
7523
  */
7510
- readonly reportUsedIgnorePattern?: boolean;
7524
+ reportUsedIgnorePattern?: boolean;
7511
7525
  /** Whether to check all variables or only locally-declared variables. */
7512
- readonly vars?: 'all' | 'local';
7526
+ vars?: 'all' | 'local';
7513
7527
  /** Regular expressions of variable names to not check for usage. */
7514
- readonly varsIgnorePattern?: string;
7515
- };
7528
+ varsIgnorePattern?: string;
7529
+ }>;
7516
7530
 
7517
7531
  export type RuleEntry =
7532
+ | 'off'
7518
7533
  | Linter.Severity
7519
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
7520
- | 'off';
7534
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
7521
7535
  }
7522
7536
 
7523
7537
  /**
@@ -7588,30 +7602,30 @@ namespace NoUseBeforeDefine {
7588
7602
  */
7589
7603
  export type Options =
7590
7604
  | 'nofunc'
7591
- | {
7605
+ | Readonly<{
7592
7606
  /** Whether to ignore named exports. */
7593
- readonly allowNamedExports?: boolean;
7607
+ allowNamedExports?: boolean;
7594
7608
  /** Whether to ignore references to class declarations. */
7595
- readonly classes?: boolean;
7609
+ classes?: boolean;
7596
7610
  /** Whether to check references to enums. */
7597
- readonly enums?: boolean;
7611
+ enums?: boolean;
7598
7612
  /** Whether to ignore references to function declarations. */
7599
- readonly functions?: boolean;
7613
+ functions?: boolean;
7600
7614
  /**
7601
7615
  * Whether to ignore type references, such as in type annotations and
7602
7616
  * assertions.
7603
7617
  */
7604
- readonly ignoreTypeReferences?: boolean;
7618
+ ignoreTypeReferences?: boolean;
7605
7619
  /** Whether to check references to types. */
7606
- readonly typedefs?: boolean;
7620
+ typedefs?: boolean;
7607
7621
  /** Whether to ignore references to variables. */
7608
- readonly variables?: boolean;
7609
- };
7622
+ variables?: boolean;
7623
+ }>;
7610
7624
 
7611
7625
  export type RuleEntry =
7626
+ | 'off'
7612
7627
  | Linter.Severity
7613
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
7614
- | 'off';
7628
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
7615
7629
  }
7616
7630
 
7617
7631
  /**
@@ -7876,37 +7890,39 @@ namespace OnlyThrowError {
7876
7890
  * ]
7877
7891
  * ```
7878
7892
  */
7879
- export type Options = {
7893
+ export type Options = Readonly<{
7880
7894
  /** Type specifiers that can be thrown. */
7881
- readonly allow?: readonly (
7895
+ allow?: readonly (
7882
7896
  | string
7883
- | {
7884
- readonly from: 'file';
7885
- readonly name: string | readonly [string, ...(readonly string[])];
7886
- readonly path?: string;
7887
- }
7888
- | {
7889
- readonly from: 'lib';
7890
- readonly name: string | readonly [string, ...(readonly string[])];
7891
- }
7892
- | {
7893
- readonly from: 'package';
7894
- readonly name: string | readonly [string, ...(readonly string[])];
7895
- readonly package: string;
7896
- }
7897
+ | Readonly<
7898
+ | {
7899
+ from: 'file';
7900
+ name: string | readonly [string, ...string[]];
7901
+ path?: string;
7902
+ }
7903
+ | {
7904
+ from: 'lib';
7905
+ name: string | readonly [string, ...string[]];
7906
+ }
7907
+ | {
7908
+ from: 'package';
7909
+ name: string | readonly [string, ...string[]];
7910
+ package: string;
7911
+ }
7912
+ >
7897
7913
  )[];
7898
7914
  /** Whether to allow rethrowing caught values that are not `Error` objects. */
7899
- readonly allowRethrowing?: boolean;
7915
+ allowRethrowing?: boolean;
7900
7916
  /** Whether to always allow throwing values typed as `any`. */
7901
- readonly allowThrowingAny?: boolean;
7917
+ allowThrowingAny?: boolean;
7902
7918
  /** Whether to always allow throwing values typed as `unknown`. */
7903
- readonly allowThrowingUnknown?: boolean;
7904
- };
7919
+ allowThrowingUnknown?: boolean;
7920
+ }>;
7905
7921
 
7906
7922
  export type RuleEntry =
7923
+ | 'off'
7907
7924
  | Linter.Severity
7908
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
7909
- | 'off';
7925
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
7910
7926
  }
7911
7927
 
7912
7928
  /**
@@ -7966,25 +7982,25 @@ namespace ParameterProperties {
7966
7982
  * ```
7967
7983
  */
7968
7984
  export type Modifier =
7969
- | 'private readonly'
7985
+ | 'readonly'
7970
7986
  | 'private'
7971
- | 'protected readonly'
7972
7987
  | 'protected'
7973
- | 'public readonly'
7974
7988
  | 'public'
7975
- | 'readonly';
7989
+ | 'private readonly'
7990
+ | 'protected readonly'
7991
+ | 'public readonly';
7976
7992
 
7977
- export type Options = {
7993
+ export type Options = Readonly<{
7978
7994
  /** Whether to allow certain kinds of properties to be ignored. */
7979
- readonly allow?: readonly Modifier[];
7995
+ allow?: readonly Modifier[];
7980
7996
  /** Whether to prefer class properties or parameter properties. */
7981
- readonly prefer?: 'class-property' | 'parameter-property';
7982
- };
7997
+ prefer?: 'class-property' | 'parameter-property';
7998
+ }>;
7983
7999
 
7984
8000
  export type RuleEntry =
8001
+ | 'off'
7985
8002
  | Linter.Severity
7986
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
7987
- | 'off';
8003
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
7988
8004
  }
7989
8005
 
7990
8006
  /**
@@ -8089,40 +8105,41 @@ namespace PreferDestructuring {
8089
8105
  * ]
8090
8106
  * ```
8091
8107
  */
8092
- export type Options0 =
8108
+ export type Options0 = Readonly<
8093
8109
  | {
8094
- readonly array?: boolean;
8095
- readonly object?: boolean;
8110
+ AssignmentExpression?: Readonly<{
8111
+ array?: boolean;
8112
+ object?: boolean;
8113
+ }>;
8114
+ VariableDeclarator?: Readonly<{
8115
+ array?: boolean;
8116
+ object?: boolean;
8117
+ }>;
8096
8118
  }
8097
8119
  | {
8098
- readonly AssignmentExpression?: {
8099
- readonly array?: boolean;
8100
- readonly object?: boolean;
8101
- };
8102
- readonly VariableDeclarator?: {
8103
- readonly array?: boolean;
8104
- readonly object?: boolean;
8105
- };
8106
- };
8107
-
8108
- export type Options1 = {
8120
+ array?: boolean;
8121
+ object?: boolean;
8122
+ }
8123
+ >;
8124
+
8125
+ export type Options1 = Readonly<{
8109
8126
  /**
8110
8127
  * Whether to enforce destructuring on variable declarations with type
8111
8128
  * annotations.
8112
8129
  */
8113
- readonly enforceForDeclarationWithTypeAnnotation?: boolean;
8130
+ enforceForDeclarationWithTypeAnnotation?: boolean;
8114
8131
  /**
8115
8132
  * Whether to enforce destructuring that use a different variable name than
8116
8133
  * the property name.
8117
8134
  */
8118
- readonly enforceForRenamedProperties?: boolean;
8119
- };
8135
+ enforceForRenamedProperties?: boolean;
8136
+ }>;
8120
8137
 
8121
8138
  export type RuleEntry =
8139
+ | 'off'
8122
8140
  | Linter.Severity
8123
- | readonly [Linter.StringSeverity, Options0, Options1]
8124
8141
  | readonly [Linter.StringSeverity, Options0]
8125
- | 'off';
8142
+ | readonly [Linter.StringSeverity, Options0, Options1];
8126
8143
  }
8127
8144
 
8128
8145
  /**
@@ -8249,15 +8266,15 @@ namespace PreferLiteralEnumMember {
8249
8266
  * ]
8250
8267
  * ```
8251
8268
  */
8252
- export type Options = {
8269
+ export type Options = Readonly<{
8253
8270
  /** Whether to allow using bitwise expressions in enum initializers. */
8254
- readonly allowBitwiseExpressions?: boolean;
8255
- };
8271
+ allowBitwiseExpressions?: boolean;
8272
+ }>;
8256
8273
 
8257
8274
  export type RuleEntry =
8275
+ | 'off'
8258
8276
  | Linter.Severity
8259
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
8260
- | 'off';
8277
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
8261
8278
  }
8262
8279
 
8263
8280
  /**
@@ -8369,54 +8386,54 @@ namespace PreferNullishCoalescing {
8369
8386
  * ]
8370
8387
  * ```
8371
8388
  */
8372
- export type Options = {
8389
+ export type Options = Readonly<{
8373
8390
  /**
8374
8391
  * Unless this is set to `true`, the rule will error on every file whose
8375
8392
  * `tsconfig.json` does _not_ have the `strictNullChecks` compiler option
8376
8393
  * (or `strict`) set to `true`.
8377
8394
  */
8378
- readonly allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
8395
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
8379
8396
  /** Whether to ignore arguments to the `Boolean` constructor */
8380
- readonly ignoreBooleanCoercion?: boolean;
8397
+ ignoreBooleanCoercion?: boolean;
8381
8398
  /** Whether to ignore cases that are located within a conditional test. */
8382
- readonly ignoreConditionalTests?: boolean;
8399
+ ignoreConditionalTests?: boolean;
8383
8400
  /**
8384
8401
  * Whether to ignore any if statements that could be simplified by using the
8385
8402
  * nullish coalescing operator.
8386
8403
  */
8387
- readonly ignoreIfStatements?: boolean;
8404
+ ignoreIfStatements?: boolean;
8388
8405
  /**
8389
8406
  * Whether to ignore any logical or expressions that are part of a mixed
8390
8407
  * logical expression (with `&&`).
8391
8408
  */
8392
- readonly ignoreMixedLogicalExpressions?: boolean;
8409
+ ignoreMixedLogicalExpressions?: boolean;
8393
8410
  /**
8394
8411
  * Whether to ignore all (`true`) or some (an object with properties)
8395
8412
  * primitive types.
8396
8413
  */
8397
- readonly ignorePrimitives?:
8398
- | true
8399
- | {
8414
+ ignorePrimitives?:
8415
+ | Readonly<{
8400
8416
  /** Ignore bigint primitive types. */
8401
- readonly bigint?: boolean;
8417
+ bigint?: boolean;
8402
8418
  /** Ignore boolean primitive types. */
8403
- readonly boolean?: boolean;
8419
+ boolean?: boolean;
8404
8420
  /** Ignore number primitive types. */
8405
- readonly number?: boolean;
8421
+ number?: boolean;
8406
8422
  /** Ignore string primitive types. */
8407
- readonly string?: boolean;
8408
- };
8423
+ string?: boolean;
8424
+ }>
8425
+ | true;
8409
8426
  /**
8410
8427
  * Whether to ignore any ternary expressions that could be simplified by
8411
8428
  * using the nullish coalescing operator.
8412
8429
  */
8413
- readonly ignoreTernaryTests?: boolean;
8414
- };
8430
+ ignoreTernaryTests?: boolean;
8431
+ }>;
8415
8432
 
8416
8433
  export type RuleEntry =
8434
+ | 'off'
8417
8435
  | Linter.Severity
8418
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
8419
- | 'off';
8436
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
8420
8437
  }
8421
8438
 
8422
8439
  /**
@@ -8483,53 +8500,53 @@ namespace PreferOptionalChain {
8483
8500
  * ]
8484
8501
  * ```
8485
8502
  */
8486
- export type Options = {
8503
+ export type Options = Readonly<{
8487
8504
  /**
8488
8505
  * Allow autofixers that will change the return type of the expression. This
8489
8506
  * option is considered unsafe as it may break the build.
8490
8507
  */
8491
- readonly allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing?: boolean;
8508
+ allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing?: boolean;
8492
8509
  /**
8493
8510
  * Check operands that are typed as `any` when inspecting "loose boolean"
8494
8511
  * operands.
8495
8512
  */
8496
- readonly checkAny?: boolean;
8513
+ checkAny?: boolean;
8497
8514
  /**
8498
8515
  * Check operands that are typed as `bigint` when inspecting "loose boolean"
8499
8516
  * operands.
8500
8517
  */
8501
- readonly checkBigInt?: boolean;
8518
+ checkBigInt?: boolean;
8502
8519
  /**
8503
8520
  * Check operands that are typed as `boolean` when inspecting "loose
8504
8521
  * boolean" operands.
8505
8522
  */
8506
- readonly checkBoolean?: boolean;
8523
+ checkBoolean?: boolean;
8507
8524
  /**
8508
8525
  * Check operands that are typed as `number` when inspecting "loose boolean"
8509
8526
  * operands.
8510
8527
  */
8511
- readonly checkNumber?: boolean;
8528
+ checkNumber?: boolean;
8512
8529
  /**
8513
8530
  * Check operands that are typed as `string` when inspecting "loose boolean"
8514
8531
  * operands.
8515
8532
  */
8516
- readonly checkString?: boolean;
8533
+ checkString?: boolean;
8517
8534
  /**
8518
8535
  * Check operands that are typed as `unknown` when inspecting "loose
8519
8536
  * boolean" operands.
8520
8537
  */
8521
- readonly checkUnknown?: boolean;
8538
+ checkUnknown?: boolean;
8522
8539
  /**
8523
8540
  * Skip operands that are not typed with `null` and/or `undefined` when
8524
8541
  * inspecting "loose boolean" operands.
8525
8542
  */
8526
- readonly requireNullish?: boolean;
8527
- };
8543
+ requireNullish?: boolean;
8544
+ }>;
8528
8545
 
8529
8546
  export type RuleEntry =
8547
+ | 'off'
8530
8548
  | Linter.Severity
8531
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
8532
- | 'off';
8549
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
8533
8550
  }
8534
8551
 
8535
8552
  /**
@@ -8573,19 +8590,19 @@ namespace PreferPromiseRejectErrors {
8573
8590
  * ]
8574
8591
  * ```
8575
8592
  */
8576
- export type Options = {
8593
+ export type Options = Readonly<{
8577
8594
  /** Whether to allow calls to `Promise.reject()` with no arguments. */
8578
- readonly allowEmptyReject?: boolean;
8595
+ allowEmptyReject?: boolean;
8579
8596
  /** Whether to always allow throwing values typed as `any`. */
8580
- readonly allowThrowingAny?: boolean;
8597
+ allowThrowingAny?: boolean;
8581
8598
  /** Whether to always allow throwing values typed as `unknown`. */
8582
- readonly allowThrowingUnknown?: boolean;
8583
- };
8599
+ allowThrowingUnknown?: boolean;
8600
+ }>;
8584
8601
 
8585
8602
  export type RuleEntry =
8603
+ | 'off'
8586
8604
  | Linter.Severity
8587
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
8588
- | 'off';
8605
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
8589
8606
  }
8590
8607
 
8591
8608
  /**
@@ -8622,18 +8639,18 @@ namespace PreferReadonly {
8622
8639
  * ]
8623
8640
  * ```
8624
8641
  */
8625
- export type Options = {
8642
+ export type Options = Readonly<{
8626
8643
  /**
8627
8644
  * Whether to restrict checking only to members immediately assigned a
8628
8645
  * lambda value.
8629
8646
  */
8630
- readonly onlyInlineLambdas?: boolean;
8631
- };
8647
+ onlyInlineLambdas?: boolean;
8648
+ }>;
8632
8649
 
8633
8650
  export type RuleEntry =
8651
+ | 'off'
8634
8652
  | Linter.Severity
8635
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
8636
- | 'off';
8653
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
8637
8654
  }
8638
8655
 
8639
8656
  /**
@@ -8788,37 +8805,39 @@ namespace PreferReadonlyParameterTypes {
8788
8805
  * ]
8789
8806
  * ```
8790
8807
  */
8791
- export type Options = {
8808
+ export type Options = Readonly<{
8792
8809
  /** An array of type specifiers to ignore. */
8793
- readonly allow?: readonly (
8810
+ allow?: readonly (
8794
8811
  | string
8795
- | {
8796
- readonly from: 'file';
8797
- readonly name: string | readonly [string, ...(readonly string[])];
8798
- readonly path?: string;
8799
- }
8800
- | {
8801
- readonly from: 'lib';
8802
- readonly name: string | readonly [string, ...(readonly string[])];
8803
- }
8804
- | {
8805
- readonly from: 'package';
8806
- readonly name: string | readonly [string, ...(readonly string[])];
8807
- readonly package: string;
8808
- }
8812
+ | Readonly<
8813
+ | {
8814
+ from: 'file';
8815
+ name: string | readonly [string, ...string[]];
8816
+ path?: string;
8817
+ }
8818
+ | {
8819
+ from: 'lib';
8820
+ name: string | readonly [string, ...string[]];
8821
+ }
8822
+ | {
8823
+ from: 'package';
8824
+ name: string | readonly [string, ...string[]];
8825
+ package: string;
8826
+ }
8827
+ >
8809
8828
  )[];
8810
8829
  /** Whether to check class parameter properties. */
8811
- readonly checkParameterProperties?: boolean;
8830
+ checkParameterProperties?: boolean;
8812
8831
  /** Whether to ignore parameters which don't explicitly specify a type. */
8813
- readonly ignoreInferredTypes?: boolean;
8832
+ ignoreInferredTypes?: boolean;
8814
8833
  /** Whether to treat all mutable methods as though they are readonly. */
8815
- readonly treatMethodsAsReadonly?: boolean;
8816
- };
8834
+ treatMethodsAsReadonly?: boolean;
8835
+ }>;
8817
8836
 
8818
8837
  export type RuleEntry =
8838
+ | 'off'
8819
8839
  | Linter.Severity
8820
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
8821
- | 'off';
8840
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
8822
8841
  }
8823
8842
 
8824
8843
  /**
@@ -8918,18 +8937,18 @@ namespace PreferStringStartsEndsWith {
8918
8937
  * ]
8919
8938
  * ```
8920
8939
  */
8921
- export type Options = {
8940
+ export type Options = Readonly<{
8922
8941
  /**
8923
8942
  * Whether to allow equality checks against the first or last element of a
8924
8943
  * string.
8925
8944
  */
8926
- readonly allowSingleElementEquality?: 'always' | 'never';
8927
- };
8945
+ allowSingleElementEquality?: 'always' | 'never';
8946
+ }>;
8928
8947
 
8929
8948
  export type RuleEntry =
8949
+ | 'off'
8930
8950
  | Linter.Severity
8931
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
8932
- | 'off';
8951
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
8933
8952
  }
8934
8953
 
8935
8954
  /**
@@ -9005,25 +9024,25 @@ namespace PromiseFunctionAsync {
9005
9024
  * ]
9006
9025
  * ```
9007
9026
  */
9008
- export type Options = {
9027
+ export type Options = Readonly<{
9009
9028
  /** Whether to consider `any` and `unknown` to be Promises. */
9010
- readonly allowAny?: boolean;
9029
+ allowAny?: boolean;
9011
9030
  /** Any extra names of classes or interfaces to be considered Promises. */
9012
- readonly allowedPromiseNames?: readonly string[];
9031
+ allowedPromiseNames?: readonly string[];
9013
9032
  /** Whether to check arrow functions. */
9014
- readonly checkArrowFunctions?: boolean;
9033
+ checkArrowFunctions?: boolean;
9015
9034
  /** Whether to check standalone function declarations. */
9016
- readonly checkFunctionDeclarations?: boolean;
9035
+ checkFunctionDeclarations?: boolean;
9017
9036
  /** Whether to check inline function expressions */
9018
- readonly checkFunctionExpressions?: boolean;
9037
+ checkFunctionExpressions?: boolean;
9019
9038
  /** Whether to check methods on classes and object literals. */
9020
- readonly checkMethodDeclarations?: boolean;
9021
- };
9039
+ checkMethodDeclarations?: boolean;
9040
+ }>;
9022
9041
 
9023
9042
  export type RuleEntry =
9043
+ | 'off'
9024
9044
  | Linter.Severity
9025
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
9026
- | 'off';
9045
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
9027
9046
  }
9028
9047
 
9029
9048
  /**
@@ -9078,15 +9097,15 @@ namespace RequireArraySortCompare {
9078
9097
  * ]
9079
9098
  * ```
9080
9099
  */
9081
- export type Options = {
9100
+ export type Options = Readonly<{
9082
9101
  /** Whether to ignore arrays in which all elements are strings. */
9083
- readonly ignoreStringArrays?: boolean;
9084
- };
9102
+ ignoreStringArrays?: boolean;
9103
+ }>;
9085
9104
 
9086
9105
  export type RuleEntry =
9106
+ | 'off'
9087
9107
  | Linter.Severity
9088
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
9089
- | 'off';
9108
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
9090
9109
  }
9091
9110
 
9092
9111
  /**
@@ -9162,28 +9181,28 @@ namespace RestrictPlusOperands {
9162
9181
  * ]
9163
9182
  * ```
9164
9183
  */
9165
- export type Options = {
9184
+ export type Options = Readonly<{
9166
9185
  /** Whether to allow `any` typed values. */
9167
- readonly allowAny?: boolean;
9186
+ allowAny?: boolean;
9168
9187
  /** Whether to allow `boolean` typed values. */
9169
- readonly allowBoolean?: boolean;
9188
+ allowBoolean?: boolean;
9170
9189
  /** Whether to allow potentially `null` or `undefined` typed values. */
9171
- readonly allowNullish?: boolean;
9190
+ allowNullish?: boolean;
9172
9191
  /**
9173
9192
  * Whether to allow `bigint`/`number` typed values and `string` typed values
9174
9193
  * to be added together.
9175
9194
  */
9176
- readonly allowNumberAndString?: boolean;
9195
+ allowNumberAndString?: boolean;
9177
9196
  /** Whether to allow `regexp` typed values. */
9178
- readonly allowRegExp?: boolean;
9197
+ allowRegExp?: boolean;
9179
9198
  /** Whether to skip compound assignments such as `+=`. */
9180
- readonly skipCompoundAssignments?: boolean;
9181
- };
9199
+ skipCompoundAssignments?: boolean;
9200
+ }>;
9182
9201
 
9183
9202
  export type RuleEntry =
9203
+ | 'off'
9184
9204
  | Linter.Severity
9185
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
9186
- | 'off';
9205
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
9187
9206
  }
9188
9207
 
9189
9208
  /**
@@ -9353,45 +9372,47 @@ namespace RestrictTemplateExpressions {
9353
9372
  * ]
9354
9373
  * ```
9355
9374
  */
9356
- export type Options = {
9375
+ export type Options = Readonly<{
9357
9376
  /** Whether to allow `any` typed values in template expressions. */
9358
- readonly allowAny?: boolean;
9377
+ allowAny?: boolean;
9359
9378
  /** Whether to allow `array` typed values in template expressions. */
9360
- readonly allowArray?: boolean;
9379
+ allowArray?: boolean;
9361
9380
  /** Whether to allow `boolean` typed values in template expressions. */
9362
- readonly allowBoolean?: boolean;
9381
+ allowBoolean?: boolean;
9363
9382
  /** Whether to allow `nullish` typed values in template expressions. */
9364
- readonly allowNullish?: boolean;
9383
+ allowNullish?: boolean;
9365
9384
  /** Whether to allow `number` typed values in template expressions. */
9366
- readonly allowNumber?: boolean;
9385
+ allowNumber?: boolean;
9367
9386
  /** Whether to allow `regexp` typed values in template expressions. */
9368
- readonly allowRegExp?: boolean;
9387
+ allowRegExp?: boolean;
9369
9388
  /** Whether to allow `never` typed values in template expressions. */
9370
- readonly allowNever?: boolean;
9389
+ allowNever?: boolean;
9371
9390
  /** Types to allow in template expressions. */
9372
- readonly allow?: readonly (
9391
+ allow?: readonly (
9373
9392
  | string
9374
- | {
9375
- readonly from: 'file';
9376
- readonly name: string | readonly [string, ...(readonly string[])];
9377
- readonly path?: string;
9378
- }
9379
- | {
9380
- readonly from: 'lib';
9381
- readonly name: string | readonly [string, ...(readonly string[])];
9382
- }
9383
- | {
9384
- readonly from: 'package';
9385
- readonly name: string | readonly [string, ...(readonly string[])];
9386
- readonly package: string;
9387
- }
9393
+ | Readonly<
9394
+ | {
9395
+ from: 'file';
9396
+ name: string | readonly [string, ...string[]];
9397
+ path?: string;
9398
+ }
9399
+ | {
9400
+ from: 'lib';
9401
+ name: string | readonly [string, ...string[]];
9402
+ }
9403
+ | {
9404
+ from: 'package';
9405
+ name: string | readonly [string, ...string[]];
9406
+ package: string;
9407
+ }
9408
+ >
9388
9409
  )[];
9389
- };
9410
+ }>;
9390
9411
 
9391
9412
  export type RuleEntry =
9413
+ | 'off'
9392
9414
  | Linter.Severity
9393
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
9394
- | 'off';
9415
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
9395
9416
  }
9396
9417
 
9397
9418
  /**
@@ -9458,9 +9479,9 @@ namespace ReturnAwait {
9458
9479
  | 'never';
9459
9480
 
9460
9481
  export type RuleEntry =
9482
+ | 'off'
9461
9483
  | Linter.Severity
9462
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
9463
- | 'off';
9484
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
9464
9485
  }
9465
9486
 
9466
9487
  /**
@@ -9593,38 +9614,38 @@ namespace StrictBooleanExpressions {
9593
9614
  * ]
9594
9615
  * ```
9595
9616
  */
9596
- export type Options = {
9617
+ export type Options = Readonly<{
9597
9618
  /** Whether to allow `any`s in a boolean context. */
9598
- readonly allowAny?: boolean;
9619
+ allowAny?: boolean;
9599
9620
  /** Whether to allow nullable `boolean`s in a boolean context. */
9600
- readonly allowNullableBoolean?: boolean;
9621
+ allowNullableBoolean?: boolean;
9601
9622
  /** Whether to allow nullable `enum`s in a boolean context. */
9602
- readonly allowNullableEnum?: boolean;
9623
+ allowNullableEnum?: boolean;
9603
9624
  /** Whether to allow nullable `number`s in a boolean context. */
9604
- readonly allowNullableNumber?: boolean;
9625
+ allowNullableNumber?: boolean;
9605
9626
  /**
9606
9627
  * Whether to allow nullable `object`s, `symbol`s, and functions in a
9607
9628
  * boolean context.
9608
9629
  */
9609
- readonly allowNullableObject?: boolean;
9630
+ allowNullableObject?: boolean;
9610
9631
  /** Whether to allow nullable `string`s in a boolean context. */
9611
- readonly allowNullableString?: boolean;
9632
+ allowNullableString?: boolean;
9612
9633
  /** Whether to allow `number`s in a boolean context. */
9613
- readonly allowNumber?: boolean;
9634
+ allowNumber?: boolean;
9614
9635
  /**
9615
9636
  * Unless this is set to `true`, the rule will error on every file whose
9616
9637
  * `tsconfig.json` does _not_ have the `strictNullChecks` compiler option
9617
9638
  * (or `strict`) set to `true`.
9618
9639
  */
9619
- readonly allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
9640
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
9620
9641
  /** Whether to allow `string`s in a boolean context. */
9621
- readonly allowString?: boolean;
9622
- };
9642
+ allowString?: boolean;
9643
+ }>;
9623
9644
 
9624
9645
  export type RuleEntry =
9646
+ | 'off'
9625
9647
  | Linter.Severity
9626
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
9627
- | 'off';
9648
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
9628
9649
  }
9629
9650
 
9630
9651
  /**
@@ -9672,30 +9693,30 @@ namespace SwitchExhaustivenessCheck {
9672
9693
  * ]
9673
9694
  * ```
9674
9695
  */
9675
- export type Options = {
9696
+ export type Options = Readonly<{
9676
9697
  /**
9677
9698
  * If 'true', allow 'default' cases on switch statements with exhaustive
9678
9699
  * cases.
9679
9700
  */
9680
- readonly allowDefaultCaseForExhaustiveSwitch?: boolean;
9701
+ allowDefaultCaseForExhaustiveSwitch?: boolean;
9681
9702
  /**
9682
9703
  * If 'true', the 'default' clause is used to determine whether the switch
9683
9704
  * statement is exhaustive for union type
9684
9705
  */
9685
- readonly considerDefaultExhaustiveForUnions?: boolean;
9706
+ considerDefaultExhaustiveForUnions?: boolean;
9686
9707
  /**
9687
9708
  * Regular expression for a comment that can indicate an intentionally
9688
9709
  * omitted default case.
9689
9710
  */
9690
- readonly defaultCaseCommentPattern?: string;
9711
+ defaultCaseCommentPattern?: string;
9691
9712
  /** If 'true', require a 'default' clause for switches on non-union types. */
9692
- readonly requireDefaultForNonUnion?: boolean;
9693
- };
9713
+ requireDefaultForNonUnion?: boolean;
9714
+ }>;
9694
9715
 
9695
9716
  export type RuleEntry =
9717
+ | 'off'
9696
9718
  | Linter.Severity
9697
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
9698
- | 'off';
9719
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
9699
9720
  }
9700
9721
 
9701
9722
  /**
@@ -9752,19 +9773,19 @@ namespace TripleSlashReference {
9752
9773
  * ]
9753
9774
  * ```
9754
9775
  */
9755
- export type Options = {
9776
+ export type Options = Readonly<{
9756
9777
  /** What to enforce for `/// <reference lib="..." />` references. */
9757
- readonly lib?: 'always' | 'never';
9778
+ lib?: 'always' | 'never';
9758
9779
  /** What to enforce for `/// <reference path="..." />` references. */
9759
- readonly path?: 'always' | 'never';
9780
+ path?: 'always' | 'never';
9760
9781
  /** What to enforce for `/// <reference types="..." />` references. */
9761
- readonly types?: 'always' | 'never' | 'prefer-import';
9762
- };
9782
+ types?: 'always' | 'never' | 'prefer-import';
9783
+ }>;
9763
9784
 
9764
9785
  export type RuleEntry =
9786
+ | 'off'
9765
9787
  | Linter.Severity
9766
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
9767
- | 'off';
9788
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
9768
9789
  }
9769
9790
 
9770
9791
  /**
@@ -9862,15 +9883,15 @@ namespace UnboundMethod {
9862
9883
  * ]
9863
9884
  * ```
9864
9885
  */
9865
- export type Options = {
9886
+ export type Options = Readonly<{
9866
9887
  /** Whether to skip checking whether `static` methods are correctly bound. */
9867
- readonly ignoreStatic?: boolean;
9868
- };
9888
+ ignoreStatic?: boolean;
9889
+ }>;
9869
9890
 
9870
9891
  export type RuleEntry =
9892
+ | 'off'
9871
9893
  | Linter.Severity
9872
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
9873
- | 'off';
9894
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
9874
9895
  }
9875
9896
 
9876
9897
  /**
@@ -9910,23 +9931,23 @@ namespace UnifiedSignatures {
9910
9931
  * ]
9911
9932
  * ```
9912
9933
  */
9913
- export type Options = {
9934
+ export type Options = Readonly<{
9914
9935
  /**
9915
9936
  * Whether two parameters with different names at the same index should be
9916
9937
  * considered different even if their types are the same.
9917
9938
  */
9918
- readonly ignoreDifferentlyNamedParameters?: boolean;
9939
+ ignoreDifferentlyNamedParameters?: boolean;
9919
9940
  /**
9920
9941
  * Whether two overloads with different JSDoc comments should be considered
9921
9942
  * different even if their parameter and return types are the same.
9922
9943
  */
9923
- readonly ignoreOverloadsWithDifferentJSDoc?: boolean;
9924
- };
9944
+ ignoreOverloadsWithDifferentJSDoc?: boolean;
9945
+ }>;
9925
9946
 
9926
9947
  export type RuleEntry =
9948
+ | 'off'
9927
9949
  | Linter.Severity
9928
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
9929
- | 'off';
9950
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
9930
9951
  }
9931
9952
 
9932
9953
  /**
@@ -9948,214 +9969,215 @@ namespace UseUnknownInCatchCallbackVariable {
9948
9969
  export type RuleEntry = Linter.StringSeverity;
9949
9970
  }
9950
9971
 
9951
- export type TypeScriptEslintRules = {
9952
- readonly '@typescript-eslint/adjacent-overload-signatures': AdjacentOverloadSignatures.RuleEntry;
9953
- readonly '@typescript-eslint/array-type': ArrayType.RuleEntry;
9954
- readonly '@typescript-eslint/await-thenable': AwaitThenable.RuleEntry;
9955
- readonly '@typescript-eslint/ban-ts-comment': BanTsComment.RuleEntry;
9956
- readonly '@typescript-eslint/ban-tslint-comment': BanTslintComment.RuleEntry;
9957
- readonly '@typescript-eslint/class-literal-property-style': ClassLiteralPropertyStyle.RuleEntry;
9958
- readonly '@typescript-eslint/class-methods-use-this': ClassMethodsUseThis.RuleEntry;
9959
- readonly '@typescript-eslint/consistent-generic-constructors': ConsistentGenericConstructors.RuleEntry;
9960
- readonly '@typescript-eslint/consistent-indexed-object-style': ConsistentIndexedObjectStyle.RuleEntry;
9961
- readonly '@typescript-eslint/consistent-return': ConsistentReturn.RuleEntry;
9962
- readonly '@typescript-eslint/consistent-type-assertions': ConsistentTypeAssertions.RuleEntry;
9963
- readonly '@typescript-eslint/consistent-type-definitions': ConsistentTypeDefinitions.RuleEntry;
9964
- readonly '@typescript-eslint/consistent-type-exports': ConsistentTypeExports.RuleEntry;
9965
- readonly '@typescript-eslint/consistent-type-imports': ConsistentTypeImports.RuleEntry;
9966
- readonly '@typescript-eslint/default-param-last': DefaultParamLast.RuleEntry;
9967
- readonly '@typescript-eslint/dot-notation': DotNotation.RuleEntry;
9968
- readonly '@typescript-eslint/explicit-function-return-type': ExplicitFunctionReturnType.RuleEntry;
9969
- readonly '@typescript-eslint/explicit-member-accessibility': ExplicitMemberAccessibility.RuleEntry;
9970
- readonly '@typescript-eslint/explicit-module-boundary-types': ExplicitModuleBoundaryTypes.RuleEntry;
9971
- readonly '@typescript-eslint/init-declarations': InitDeclarations.RuleEntry;
9972
- readonly '@typescript-eslint/max-params': MaxParams.RuleEntry;
9973
- readonly '@typescript-eslint/member-ordering': MemberOrdering.RuleEntry;
9974
- readonly '@typescript-eslint/method-signature-style': MethodSignatureStyle.RuleEntry;
9975
- readonly '@typescript-eslint/naming-convention': NamingConvention.RuleEntry;
9976
- readonly '@typescript-eslint/no-array-constructor': NoArrayConstructor.RuleEntry;
9977
- readonly '@typescript-eslint/no-array-delete': NoArrayDelete.RuleEntry;
9978
- readonly '@typescript-eslint/no-base-to-string': NoBaseToString.RuleEntry;
9979
- readonly '@typescript-eslint/no-confusing-non-null-assertion': NoConfusingNonNullAssertion.RuleEntry;
9980
- readonly '@typescript-eslint/no-confusing-void-expression': NoConfusingVoidExpression.RuleEntry;
9981
- readonly '@typescript-eslint/no-deprecated': NoDeprecated.RuleEntry;
9982
- readonly '@typescript-eslint/no-dupe-class-members': NoDupeClassMembers.RuleEntry;
9983
- readonly '@typescript-eslint/no-duplicate-enum-values': NoDuplicateEnumValues.RuleEntry;
9984
- readonly '@typescript-eslint/no-duplicate-type-constituents': NoDuplicateTypeConstituents.RuleEntry;
9985
- readonly '@typescript-eslint/no-dynamic-delete': NoDynamicDelete.RuleEntry;
9986
- readonly '@typescript-eslint/no-empty-function': NoEmptyFunction.RuleEntry;
9987
- readonly '@typescript-eslint/no-empty-object-type': NoEmptyObjectType.RuleEntry;
9988
- readonly '@typescript-eslint/no-explicit-any': NoExplicitAny.RuleEntry;
9989
- readonly '@typescript-eslint/no-extra-non-null-assertion': NoExtraNonNullAssertion.RuleEntry;
9990
- readonly '@typescript-eslint/no-extraneous-class': NoExtraneousClass.RuleEntry;
9991
- readonly '@typescript-eslint/no-floating-promises': NoFloatingPromises.RuleEntry;
9992
- readonly '@typescript-eslint/no-for-in-array': NoForInArray.RuleEntry;
9993
- readonly '@typescript-eslint/no-implied-eval': NoImpliedEval.RuleEntry;
9994
- readonly '@typescript-eslint/no-import-type-side-effects': NoImportTypeSideEffects.RuleEntry;
9995
- readonly '@typescript-eslint/no-inferrable-types': NoInferrableTypes.RuleEntry;
9996
- readonly '@typescript-eslint/no-invalid-this': NoInvalidThis.RuleEntry;
9997
- readonly '@typescript-eslint/no-invalid-void-type': NoInvalidVoidType.RuleEntry;
9998
- readonly '@typescript-eslint/no-loop-func': NoLoopFunc.RuleEntry;
9999
- readonly '@typescript-eslint/no-magic-numbers': NoMagicNumbers.RuleEntry;
10000
- readonly '@typescript-eslint/no-meaningless-void-operator': NoMeaninglessVoidOperator.RuleEntry;
10001
- readonly '@typescript-eslint/no-misused-new': NoMisusedNew.RuleEntry;
10002
- readonly '@typescript-eslint/no-misused-promises': NoMisusedPromises.RuleEntry;
10003
- readonly '@typescript-eslint/no-misused-spread': NoMisusedSpread.RuleEntry;
10004
- readonly '@typescript-eslint/no-mixed-enums': NoMixedEnums.RuleEntry;
10005
- readonly '@typescript-eslint/no-namespace': NoNamespace.RuleEntry;
10006
- readonly '@typescript-eslint/no-non-null-asserted-nullish-coalescing': NoNonNullAssertedNullishCoalescing.RuleEntry;
10007
- readonly '@typescript-eslint/no-non-null-asserted-optional-chain': NoNonNullAssertedOptionalChain.RuleEntry;
10008
- readonly '@typescript-eslint/no-non-null-assertion': NoNonNullAssertion.RuleEntry;
10009
- readonly '@typescript-eslint/no-redeclare': NoRedeclare.RuleEntry;
10010
- readonly '@typescript-eslint/no-redundant-type-constituents': NoRedundantTypeConstituents.RuleEntry;
10011
- readonly '@typescript-eslint/no-require-imports': NoRequireImports.RuleEntry;
10012
- readonly '@typescript-eslint/no-restricted-imports': NoRestrictedImports.RuleEntry;
10013
- readonly '@typescript-eslint/no-restricted-types': NoRestrictedTypes.RuleEntry;
10014
- readonly '@typescript-eslint/no-shadow': NoShadow.RuleEntry;
10015
- readonly '@typescript-eslint/no-this-alias': NoThisAlias.RuleEntry;
10016
- readonly '@typescript-eslint/no-unnecessary-boolean-literal-compare': NoUnnecessaryBooleanLiteralCompare.RuleEntry;
10017
- readonly '@typescript-eslint/no-unnecessary-condition': NoUnnecessaryCondition.RuleEntry;
10018
- readonly '@typescript-eslint/no-unnecessary-parameter-property-assignment': NoUnnecessaryParameterPropertyAssignment.RuleEntry;
10019
- readonly '@typescript-eslint/no-unnecessary-qualifier': NoUnnecessaryQualifier.RuleEntry;
10020
- readonly '@typescript-eslint/no-unnecessary-template-expression': NoUnnecessaryTemplateExpression.RuleEntry;
10021
- readonly '@typescript-eslint/no-unnecessary-type-arguments': NoUnnecessaryTypeArguments.RuleEntry;
10022
- readonly '@typescript-eslint/no-unnecessary-type-assertion': NoUnnecessaryTypeAssertion.RuleEntry;
10023
- readonly '@typescript-eslint/no-unnecessary-type-constraint': NoUnnecessaryTypeConstraint.RuleEntry;
10024
- readonly '@typescript-eslint/no-unnecessary-type-conversion': NoUnnecessaryTypeConversion.RuleEntry;
10025
- readonly '@typescript-eslint/no-unnecessary-type-parameters': NoUnnecessaryTypeParameters.RuleEntry;
10026
- readonly '@typescript-eslint/no-unsafe-argument': NoUnsafeArgument.RuleEntry;
10027
- readonly '@typescript-eslint/no-unsafe-assignment': NoUnsafeAssignment.RuleEntry;
10028
- readonly '@typescript-eslint/no-unsafe-call': NoUnsafeCall.RuleEntry;
10029
- readonly '@typescript-eslint/no-unsafe-declaration-merging': NoUnsafeDeclarationMerging.RuleEntry;
10030
- readonly '@typescript-eslint/no-unsafe-enum-comparison': NoUnsafeEnumComparison.RuleEntry;
10031
- readonly '@typescript-eslint/no-unsafe-function-type': NoUnsafeFunctionType.RuleEntry;
10032
- readonly '@typescript-eslint/no-unsafe-member-access': NoUnsafeMemberAccess.RuleEntry;
10033
- readonly '@typescript-eslint/no-unsafe-return': NoUnsafeReturn.RuleEntry;
10034
- readonly '@typescript-eslint/no-unsafe-type-assertion': NoUnsafeTypeAssertion.RuleEntry;
10035
- readonly '@typescript-eslint/no-unsafe-unary-minus': NoUnsafeUnaryMinus.RuleEntry;
10036
- readonly '@typescript-eslint/no-unused-expressions': NoUnusedExpressions.RuleEntry;
10037
- readonly '@typescript-eslint/no-unused-vars': NoUnusedVars.RuleEntry;
10038
- readonly '@typescript-eslint/no-use-before-define': NoUseBeforeDefine.RuleEntry;
10039
- readonly '@typescript-eslint/no-useless-constructor': NoUselessConstructor.RuleEntry;
10040
- readonly '@typescript-eslint/no-useless-empty-export': NoUselessEmptyExport.RuleEntry;
10041
- readonly '@typescript-eslint/no-wrapper-object-types': NoWrapperObjectTypes.RuleEntry;
10042
- readonly '@typescript-eslint/non-nullable-type-assertion-style': NonNullableTypeAssertionStyle.RuleEntry;
10043
- readonly '@typescript-eslint/only-throw-error': OnlyThrowError.RuleEntry;
10044
- readonly '@typescript-eslint/parameter-properties': ParameterProperties.RuleEntry;
10045
- readonly '@typescript-eslint/prefer-as-const': PreferAsConst.RuleEntry;
10046
- readonly '@typescript-eslint/prefer-destructuring': PreferDestructuring.RuleEntry;
10047
- readonly '@typescript-eslint/prefer-enum-initializers': PreferEnumInitializers.RuleEntry;
10048
- readonly '@typescript-eslint/prefer-find': PreferFind.RuleEntry;
10049
- readonly '@typescript-eslint/prefer-for-of': PreferForOf.RuleEntry;
10050
- readonly '@typescript-eslint/prefer-function-type': PreferFunctionType.RuleEntry;
10051
- readonly '@typescript-eslint/prefer-includes': PreferIncludes.RuleEntry;
10052
- readonly '@typescript-eslint/prefer-literal-enum-member': PreferLiteralEnumMember.RuleEntry;
10053
- readonly '@typescript-eslint/prefer-namespace-keyword': PreferNamespaceKeyword.RuleEntry;
10054
- readonly '@typescript-eslint/prefer-nullish-coalescing': PreferNullishCoalescing.RuleEntry;
10055
- readonly '@typescript-eslint/prefer-optional-chain': PreferOptionalChain.RuleEntry;
10056
- readonly '@typescript-eslint/prefer-promise-reject-errors': PreferPromiseRejectErrors.RuleEntry;
10057
- readonly '@typescript-eslint/prefer-readonly': PreferReadonly.RuleEntry;
10058
- readonly '@typescript-eslint/prefer-readonly-parameter-types': PreferReadonlyParameterTypes.RuleEntry;
10059
- readonly '@typescript-eslint/prefer-reduce-type-parameter': PreferReduceTypeParameter.RuleEntry;
10060
- readonly '@typescript-eslint/prefer-regexp-exec': PreferRegexpExec.RuleEntry;
10061
- readonly '@typescript-eslint/prefer-return-this-type': PreferReturnThisType.RuleEntry;
10062
- readonly '@typescript-eslint/prefer-string-starts-ends-with': PreferStringStartsEndsWith.RuleEntry;
10063
- readonly '@typescript-eslint/promise-function-async': PromiseFunctionAsync.RuleEntry;
10064
- readonly '@typescript-eslint/related-getter-setter-pairs': RelatedGetterSetterPairs.RuleEntry;
10065
- readonly '@typescript-eslint/require-array-sort-compare': RequireArraySortCompare.RuleEntry;
10066
- readonly '@typescript-eslint/require-await': RequireAwait.RuleEntry;
10067
- readonly '@typescript-eslint/restrict-plus-operands': RestrictPlusOperands.RuleEntry;
10068
- readonly '@typescript-eslint/restrict-template-expressions': RestrictTemplateExpressions.RuleEntry;
10069
- readonly '@typescript-eslint/return-await': ReturnAwait.RuleEntry;
10070
- readonly '@typescript-eslint/strict-boolean-expressions': StrictBooleanExpressions.RuleEntry;
10071
- readonly '@typescript-eslint/switch-exhaustiveness-check': SwitchExhaustivenessCheck.RuleEntry;
10072
- readonly '@typescript-eslint/triple-slash-reference': TripleSlashReference.RuleEntry;
10073
- readonly '@typescript-eslint/unbound-method': UnboundMethod.RuleEntry;
10074
- readonly '@typescript-eslint/unified-signatures': UnifiedSignatures.RuleEntry;
10075
- readonly '@typescript-eslint/use-unknown-in-catch-callback-variable': UseUnknownInCatchCallbackVariable.RuleEntry;
9972
+ export type TypeScriptEslintRules = Readonly<{
9973
+ '@typescript-eslint/adjacent-overload-signatures': AdjacentOverloadSignatures.RuleEntry;
9974
+ '@typescript-eslint/array-type': ArrayType.RuleEntry;
9975
+ '@typescript-eslint/await-thenable': AwaitThenable.RuleEntry;
9976
+ '@typescript-eslint/ban-ts-comment': BanTsComment.RuleEntry;
9977
+ '@typescript-eslint/ban-tslint-comment': BanTslintComment.RuleEntry;
9978
+ '@typescript-eslint/class-literal-property-style': ClassLiteralPropertyStyle.RuleEntry;
9979
+ '@typescript-eslint/class-methods-use-this': ClassMethodsUseThis.RuleEntry;
9980
+ '@typescript-eslint/consistent-generic-constructors': ConsistentGenericConstructors.RuleEntry;
9981
+ '@typescript-eslint/consistent-indexed-object-style': ConsistentIndexedObjectStyle.RuleEntry;
9982
+ '@typescript-eslint/consistent-return': ConsistentReturn.RuleEntry;
9983
+ '@typescript-eslint/consistent-type-assertions': ConsistentTypeAssertions.RuleEntry;
9984
+ '@typescript-eslint/consistent-type-definitions': ConsistentTypeDefinitions.RuleEntry;
9985
+ '@typescript-eslint/consistent-type-exports': ConsistentTypeExports.RuleEntry;
9986
+ '@typescript-eslint/consistent-type-imports': ConsistentTypeImports.RuleEntry;
9987
+ '@typescript-eslint/default-param-last': DefaultParamLast.RuleEntry;
9988
+ '@typescript-eslint/dot-notation': DotNotation.RuleEntry;
9989
+ '@typescript-eslint/explicit-function-return-type': ExplicitFunctionReturnType.RuleEntry;
9990
+ '@typescript-eslint/explicit-member-accessibility': ExplicitMemberAccessibility.RuleEntry;
9991
+ '@typescript-eslint/explicit-module-boundary-types': ExplicitModuleBoundaryTypes.RuleEntry;
9992
+ '@typescript-eslint/init-declarations': InitDeclarations.RuleEntry;
9993
+ '@typescript-eslint/max-params': MaxParams.RuleEntry;
9994
+ '@typescript-eslint/member-ordering': MemberOrdering.RuleEntry;
9995
+ '@typescript-eslint/method-signature-style': MethodSignatureStyle.RuleEntry;
9996
+ '@typescript-eslint/naming-convention': NamingConvention.RuleEntry;
9997
+ '@typescript-eslint/no-array-constructor': NoArrayConstructor.RuleEntry;
9998
+ '@typescript-eslint/no-array-delete': NoArrayDelete.RuleEntry;
9999
+ '@typescript-eslint/no-base-to-string': NoBaseToString.RuleEntry;
10000
+ '@typescript-eslint/no-confusing-non-null-assertion': NoConfusingNonNullAssertion.RuleEntry;
10001
+ '@typescript-eslint/no-confusing-void-expression': NoConfusingVoidExpression.RuleEntry;
10002
+ '@typescript-eslint/no-deprecated': NoDeprecated.RuleEntry;
10003
+ '@typescript-eslint/no-dupe-class-members': NoDupeClassMembers.RuleEntry;
10004
+ '@typescript-eslint/no-duplicate-enum-values': NoDuplicateEnumValues.RuleEntry;
10005
+ '@typescript-eslint/no-duplicate-type-constituents': NoDuplicateTypeConstituents.RuleEntry;
10006
+ '@typescript-eslint/no-dynamic-delete': NoDynamicDelete.RuleEntry;
10007
+ '@typescript-eslint/no-empty-function': NoEmptyFunction.RuleEntry;
10008
+ '@typescript-eslint/no-empty-object-type': NoEmptyObjectType.RuleEntry;
10009
+ '@typescript-eslint/no-explicit-any': NoExplicitAny.RuleEntry;
10010
+ '@typescript-eslint/no-extra-non-null-assertion': NoExtraNonNullAssertion.RuleEntry;
10011
+ '@typescript-eslint/no-extraneous-class': NoExtraneousClass.RuleEntry;
10012
+ '@typescript-eslint/no-floating-promises': NoFloatingPromises.RuleEntry;
10013
+ '@typescript-eslint/no-for-in-array': NoForInArray.RuleEntry;
10014
+ '@typescript-eslint/no-implied-eval': NoImpliedEval.RuleEntry;
10015
+ '@typescript-eslint/no-import-type-side-effects': NoImportTypeSideEffects.RuleEntry;
10016
+ '@typescript-eslint/no-inferrable-types': NoInferrableTypes.RuleEntry;
10017
+ '@typescript-eslint/no-invalid-this': NoInvalidThis.RuleEntry;
10018
+ '@typescript-eslint/no-invalid-void-type': NoInvalidVoidType.RuleEntry;
10019
+ '@typescript-eslint/no-loop-func': NoLoopFunc.RuleEntry;
10020
+ '@typescript-eslint/no-magic-numbers': NoMagicNumbers.RuleEntry;
10021
+ '@typescript-eslint/no-meaningless-void-operator': NoMeaninglessVoidOperator.RuleEntry;
10022
+ '@typescript-eslint/no-misused-new': NoMisusedNew.RuleEntry;
10023
+ '@typescript-eslint/no-misused-promises': NoMisusedPromises.RuleEntry;
10024
+ '@typescript-eslint/no-misused-spread': NoMisusedSpread.RuleEntry;
10025
+ '@typescript-eslint/no-mixed-enums': NoMixedEnums.RuleEntry;
10026
+ '@typescript-eslint/no-namespace': NoNamespace.RuleEntry;
10027
+ '@typescript-eslint/no-non-null-asserted-nullish-coalescing': NoNonNullAssertedNullishCoalescing.RuleEntry;
10028
+ '@typescript-eslint/no-non-null-asserted-optional-chain': NoNonNullAssertedOptionalChain.RuleEntry;
10029
+ '@typescript-eslint/no-non-null-assertion': NoNonNullAssertion.RuleEntry;
10030
+ '@typescript-eslint/no-redeclare': NoRedeclare.RuleEntry;
10031
+ '@typescript-eslint/no-redundant-type-constituents': NoRedundantTypeConstituents.RuleEntry;
10032
+ '@typescript-eslint/no-require-imports': NoRequireImports.RuleEntry;
10033
+ '@typescript-eslint/no-restricted-imports': NoRestrictedImports.RuleEntry;
10034
+ '@typescript-eslint/no-restricted-types': NoRestrictedTypes.RuleEntry;
10035
+ '@typescript-eslint/no-shadow': NoShadow.RuleEntry;
10036
+ '@typescript-eslint/no-this-alias': NoThisAlias.RuleEntry;
10037
+ '@typescript-eslint/no-unnecessary-boolean-literal-compare': NoUnnecessaryBooleanLiteralCompare.RuleEntry;
10038
+ '@typescript-eslint/no-unnecessary-condition': NoUnnecessaryCondition.RuleEntry;
10039
+ '@typescript-eslint/no-unnecessary-parameter-property-assignment': NoUnnecessaryParameterPropertyAssignment.RuleEntry;
10040
+ '@typescript-eslint/no-unnecessary-qualifier': NoUnnecessaryQualifier.RuleEntry;
10041
+ '@typescript-eslint/no-unnecessary-template-expression': NoUnnecessaryTemplateExpression.RuleEntry;
10042
+ '@typescript-eslint/no-unnecessary-type-arguments': NoUnnecessaryTypeArguments.RuleEntry;
10043
+ '@typescript-eslint/no-unnecessary-type-assertion': NoUnnecessaryTypeAssertion.RuleEntry;
10044
+ '@typescript-eslint/no-unnecessary-type-constraint': NoUnnecessaryTypeConstraint.RuleEntry;
10045
+ '@typescript-eslint/no-unnecessary-type-conversion': NoUnnecessaryTypeConversion.RuleEntry;
10046
+ '@typescript-eslint/no-unnecessary-type-parameters': NoUnnecessaryTypeParameters.RuleEntry;
10047
+ '@typescript-eslint/no-unsafe-argument': NoUnsafeArgument.RuleEntry;
10048
+ '@typescript-eslint/no-unsafe-assignment': NoUnsafeAssignment.RuleEntry;
10049
+ '@typescript-eslint/no-unsafe-call': NoUnsafeCall.RuleEntry;
10050
+ '@typescript-eslint/no-unsafe-declaration-merging': NoUnsafeDeclarationMerging.RuleEntry;
10051
+ '@typescript-eslint/no-unsafe-enum-comparison': NoUnsafeEnumComparison.RuleEntry;
10052
+ '@typescript-eslint/no-unsafe-function-type': NoUnsafeFunctionType.RuleEntry;
10053
+ '@typescript-eslint/no-unsafe-member-access': NoUnsafeMemberAccess.RuleEntry;
10054
+ '@typescript-eslint/no-unsafe-return': NoUnsafeReturn.RuleEntry;
10055
+ '@typescript-eslint/no-unsafe-type-assertion': NoUnsafeTypeAssertion.RuleEntry;
10056
+ '@typescript-eslint/no-unsafe-unary-minus': NoUnsafeUnaryMinus.RuleEntry;
10057
+ '@typescript-eslint/no-unused-expressions': NoUnusedExpressions.RuleEntry;
10058
+ '@typescript-eslint/no-unused-private-class-members': NoUnusedPrivateClassMembers.RuleEntry;
10059
+ '@typescript-eslint/no-unused-vars': NoUnusedVars.RuleEntry;
10060
+ '@typescript-eslint/no-use-before-define': NoUseBeforeDefine.RuleEntry;
10061
+ '@typescript-eslint/no-useless-constructor': NoUselessConstructor.RuleEntry;
10062
+ '@typescript-eslint/no-useless-empty-export': NoUselessEmptyExport.RuleEntry;
10063
+ '@typescript-eslint/no-wrapper-object-types': NoWrapperObjectTypes.RuleEntry;
10064
+ '@typescript-eslint/non-nullable-type-assertion-style': NonNullableTypeAssertionStyle.RuleEntry;
10065
+ '@typescript-eslint/only-throw-error': OnlyThrowError.RuleEntry;
10066
+ '@typescript-eslint/parameter-properties': ParameterProperties.RuleEntry;
10067
+ '@typescript-eslint/prefer-as-const': PreferAsConst.RuleEntry;
10068
+ '@typescript-eslint/prefer-destructuring': PreferDestructuring.RuleEntry;
10069
+ '@typescript-eslint/prefer-enum-initializers': PreferEnumInitializers.RuleEntry;
10070
+ '@typescript-eslint/prefer-find': PreferFind.RuleEntry;
10071
+ '@typescript-eslint/prefer-for-of': PreferForOf.RuleEntry;
10072
+ '@typescript-eslint/prefer-function-type': PreferFunctionType.RuleEntry;
10073
+ '@typescript-eslint/prefer-includes': PreferIncludes.RuleEntry;
10074
+ '@typescript-eslint/prefer-literal-enum-member': PreferLiteralEnumMember.RuleEntry;
10075
+ '@typescript-eslint/prefer-namespace-keyword': PreferNamespaceKeyword.RuleEntry;
10076
+ '@typescript-eslint/prefer-nullish-coalescing': PreferNullishCoalescing.RuleEntry;
10077
+ '@typescript-eslint/prefer-optional-chain': PreferOptionalChain.RuleEntry;
10078
+ '@typescript-eslint/prefer-promise-reject-errors': PreferPromiseRejectErrors.RuleEntry;
10079
+ '@typescript-eslint/prefer-readonly': PreferReadonly.RuleEntry;
10080
+ '@typescript-eslint/prefer-readonly-parameter-types': PreferReadonlyParameterTypes.RuleEntry;
10081
+ '@typescript-eslint/prefer-reduce-type-parameter': PreferReduceTypeParameter.RuleEntry;
10082
+ '@typescript-eslint/prefer-regexp-exec': PreferRegexpExec.RuleEntry;
10083
+ '@typescript-eslint/prefer-return-this-type': PreferReturnThisType.RuleEntry;
10084
+ '@typescript-eslint/prefer-string-starts-ends-with': PreferStringStartsEndsWith.RuleEntry;
10085
+ '@typescript-eslint/promise-function-async': PromiseFunctionAsync.RuleEntry;
10086
+ '@typescript-eslint/related-getter-setter-pairs': RelatedGetterSetterPairs.RuleEntry;
10087
+ '@typescript-eslint/require-array-sort-compare': RequireArraySortCompare.RuleEntry;
10088
+ '@typescript-eslint/require-await': RequireAwait.RuleEntry;
10089
+ '@typescript-eslint/restrict-plus-operands': RestrictPlusOperands.RuleEntry;
10090
+ '@typescript-eslint/restrict-template-expressions': RestrictTemplateExpressions.RuleEntry;
10091
+ '@typescript-eslint/return-await': ReturnAwait.RuleEntry;
10092
+ '@typescript-eslint/strict-boolean-expressions': StrictBooleanExpressions.RuleEntry;
10093
+ '@typescript-eslint/switch-exhaustiveness-check': SwitchExhaustivenessCheck.RuleEntry;
10094
+ '@typescript-eslint/triple-slash-reference': TripleSlashReference.RuleEntry;
10095
+ '@typescript-eslint/unbound-method': UnboundMethod.RuleEntry;
10096
+ '@typescript-eslint/unified-signatures': UnifiedSignatures.RuleEntry;
10097
+ '@typescript-eslint/use-unknown-in-catch-callback-variable': UseUnknownInCatchCallbackVariable.RuleEntry;
10076
10098
 
10077
10099
  // deprecated
10078
- readonly '@typescript-eslint/no-empty-interface': NoEmptyInterface.RuleEntry;
10079
- readonly '@typescript-eslint/no-loss-of-precision': NoLossOfPrecision.RuleEntry;
10080
- readonly '@typescript-eslint/no-type-alias': NoTypeAlias.RuleEntry;
10081
- readonly '@typescript-eslint/no-var-requires': NoVarRequires.RuleEntry;
10082
- readonly '@typescript-eslint/prefer-ts-expect-error': PreferTsExpectError.RuleEntry;
10083
- readonly '@typescript-eslint/sort-type-constituents': SortTypeConstituents.RuleEntry;
10084
- readonly '@typescript-eslint/typedef': Typedef.RuleEntry;
10085
- };
10086
-
10087
- export type TypeScriptEslintRulesOption = {
10088
- readonly '@typescript-eslint/array-type': ArrayType.Options;
10089
- readonly '@typescript-eslint/ban-ts-comment': BanTsComment.Options;
10090
- readonly '@typescript-eslint/class-literal-property-style': ClassLiteralPropertyStyle.Options;
10091
- readonly '@typescript-eslint/class-methods-use-this': ClassMethodsUseThis.Options;
10092
- readonly '@typescript-eslint/consistent-generic-constructors': ConsistentGenericConstructors.Options;
10093
- readonly '@typescript-eslint/consistent-indexed-object-style': ConsistentIndexedObjectStyle.Options;
10094
- readonly '@typescript-eslint/consistent-return': ConsistentReturn.Options;
10095
- readonly '@typescript-eslint/consistent-type-assertions': ConsistentTypeAssertions.Options;
10096
- readonly '@typescript-eslint/consistent-type-definitions': ConsistentTypeDefinitions.Options;
10097
- readonly '@typescript-eslint/consistent-type-exports': ConsistentTypeExports.Options;
10098
- readonly '@typescript-eslint/consistent-type-imports': ConsistentTypeImports.Options;
10099
- readonly '@typescript-eslint/dot-notation': DotNotation.Options;
10100
- readonly '@typescript-eslint/explicit-function-return-type': ExplicitFunctionReturnType.Options;
10101
- readonly '@typescript-eslint/explicit-member-accessibility': ExplicitMemberAccessibility.Options;
10102
- readonly '@typescript-eslint/explicit-module-boundary-types': ExplicitModuleBoundaryTypes.Options;
10103
- readonly '@typescript-eslint/init-declarations': InitDeclarations.Options;
10104
- readonly '@typescript-eslint/max-params': MaxParams.Options;
10105
- readonly '@typescript-eslint/member-ordering': MemberOrdering.Options;
10106
- readonly '@typescript-eslint/method-signature-style': MethodSignatureStyle.Options;
10107
- readonly '@typescript-eslint/naming-convention': NamingConvention.Options;
10108
- readonly '@typescript-eslint/no-base-to-string': NoBaseToString.Options;
10109
- readonly '@typescript-eslint/no-confusing-void-expression': NoConfusingVoidExpression.Options;
10110
- readonly '@typescript-eslint/no-deprecated': NoDeprecated.Options;
10111
- readonly '@typescript-eslint/no-duplicate-type-constituents': NoDuplicateTypeConstituents.Options;
10112
- readonly '@typescript-eslint/no-empty-function': NoEmptyFunction.Options;
10113
- readonly '@typescript-eslint/no-empty-object-type': NoEmptyObjectType.Options;
10114
- readonly '@typescript-eslint/no-explicit-any': NoExplicitAny.Options;
10115
- readonly '@typescript-eslint/no-extraneous-class': NoExtraneousClass.Options;
10116
- readonly '@typescript-eslint/no-floating-promises': NoFloatingPromises.Options;
10117
- readonly '@typescript-eslint/no-inferrable-types': NoInferrableTypes.Options;
10118
- readonly '@typescript-eslint/no-invalid-this': NoInvalidThis.Options;
10119
- readonly '@typescript-eslint/no-invalid-void-type': NoInvalidVoidType.Options;
10120
- readonly '@typescript-eslint/no-magic-numbers': NoMagicNumbers.Options;
10121
- readonly '@typescript-eslint/no-meaningless-void-operator': NoMeaninglessVoidOperator.Options;
10122
- readonly '@typescript-eslint/no-misused-promises': NoMisusedPromises.Options;
10123
- readonly '@typescript-eslint/no-misused-spread': NoMisusedSpread.Options;
10124
- readonly '@typescript-eslint/no-namespace': NoNamespace.Options;
10125
- readonly '@typescript-eslint/no-redeclare': NoRedeclare.Options;
10126
- readonly '@typescript-eslint/no-require-imports': NoRequireImports.Options;
10127
- readonly '@typescript-eslint/no-restricted-imports': NoRestrictedImports.Options;
10128
- readonly '@typescript-eslint/no-restricted-types': NoRestrictedTypes.Options;
10129
- readonly '@typescript-eslint/no-shadow': NoShadow.Options;
10130
- readonly '@typescript-eslint/no-this-alias': NoThisAlias.Options;
10131
- readonly '@typescript-eslint/no-unnecessary-boolean-literal-compare': NoUnnecessaryBooleanLiteralCompare.Options;
10132
- readonly '@typescript-eslint/no-unnecessary-condition': NoUnnecessaryCondition.Options;
10133
- readonly '@typescript-eslint/no-unnecessary-type-assertion': NoUnnecessaryTypeAssertion.Options;
10134
- readonly '@typescript-eslint/no-unsafe-member-access': NoUnsafeMemberAccess.Options;
10135
- readonly '@typescript-eslint/no-unused-expressions': NoUnusedExpressions.Options;
10136
- readonly '@typescript-eslint/no-unused-vars': NoUnusedVars.Options;
10137
- readonly '@typescript-eslint/no-use-before-define': NoUseBeforeDefine.Options;
10138
- readonly '@typescript-eslint/only-throw-error': OnlyThrowError.Options;
10139
- readonly '@typescript-eslint/parameter-properties': ParameterProperties.Options;
10140
- readonly '@typescript-eslint/prefer-destructuring': readonly [
10100
+ '@typescript-eslint/no-empty-interface': NoEmptyInterface.RuleEntry;
10101
+ '@typescript-eslint/no-loss-of-precision': NoLossOfPrecision.RuleEntry;
10102
+ '@typescript-eslint/no-type-alias': NoTypeAlias.RuleEntry;
10103
+ '@typescript-eslint/no-var-requires': NoVarRequires.RuleEntry;
10104
+ '@typescript-eslint/prefer-ts-expect-error': PreferTsExpectError.RuleEntry;
10105
+ '@typescript-eslint/sort-type-constituents': SortTypeConstituents.RuleEntry;
10106
+ '@typescript-eslint/typedef': Typedef.RuleEntry;
10107
+ }>;
10108
+
10109
+ export type TypeScriptEslintRulesOption = Readonly<{
10110
+ '@typescript-eslint/array-type': ArrayType.Options;
10111
+ '@typescript-eslint/ban-ts-comment': BanTsComment.Options;
10112
+ '@typescript-eslint/class-literal-property-style': ClassLiteralPropertyStyle.Options;
10113
+ '@typescript-eslint/class-methods-use-this': ClassMethodsUseThis.Options;
10114
+ '@typescript-eslint/consistent-generic-constructors': ConsistentGenericConstructors.Options;
10115
+ '@typescript-eslint/consistent-indexed-object-style': ConsistentIndexedObjectStyle.Options;
10116
+ '@typescript-eslint/consistent-return': ConsistentReturn.Options;
10117
+ '@typescript-eslint/consistent-type-assertions': ConsistentTypeAssertions.Options;
10118
+ '@typescript-eslint/consistent-type-definitions': ConsistentTypeDefinitions.Options;
10119
+ '@typescript-eslint/consistent-type-exports': ConsistentTypeExports.Options;
10120
+ '@typescript-eslint/consistent-type-imports': ConsistentTypeImports.Options;
10121
+ '@typescript-eslint/dot-notation': DotNotation.Options;
10122
+ '@typescript-eslint/explicit-function-return-type': ExplicitFunctionReturnType.Options;
10123
+ '@typescript-eslint/explicit-member-accessibility': ExplicitMemberAccessibility.Options;
10124
+ '@typescript-eslint/explicit-module-boundary-types': ExplicitModuleBoundaryTypes.Options;
10125
+ '@typescript-eslint/init-declarations': InitDeclarations.Options;
10126
+ '@typescript-eslint/max-params': MaxParams.Options;
10127
+ '@typescript-eslint/member-ordering': MemberOrdering.Options;
10128
+ '@typescript-eslint/method-signature-style': MethodSignatureStyle.Options;
10129
+ '@typescript-eslint/naming-convention': NamingConvention.Options;
10130
+ '@typescript-eslint/no-base-to-string': NoBaseToString.Options;
10131
+ '@typescript-eslint/no-confusing-void-expression': NoConfusingVoidExpression.Options;
10132
+ '@typescript-eslint/no-deprecated': NoDeprecated.Options;
10133
+ '@typescript-eslint/no-duplicate-type-constituents': NoDuplicateTypeConstituents.Options;
10134
+ '@typescript-eslint/no-empty-function': NoEmptyFunction.Options;
10135
+ '@typescript-eslint/no-empty-object-type': NoEmptyObjectType.Options;
10136
+ '@typescript-eslint/no-explicit-any': NoExplicitAny.Options;
10137
+ '@typescript-eslint/no-extraneous-class': NoExtraneousClass.Options;
10138
+ '@typescript-eslint/no-floating-promises': NoFloatingPromises.Options;
10139
+ '@typescript-eslint/no-inferrable-types': NoInferrableTypes.Options;
10140
+ '@typescript-eslint/no-invalid-this': NoInvalidThis.Options;
10141
+ '@typescript-eslint/no-invalid-void-type': NoInvalidVoidType.Options;
10142
+ '@typescript-eslint/no-magic-numbers': NoMagicNumbers.Options;
10143
+ '@typescript-eslint/no-meaningless-void-operator': NoMeaninglessVoidOperator.Options;
10144
+ '@typescript-eslint/no-misused-promises': NoMisusedPromises.Options;
10145
+ '@typescript-eslint/no-misused-spread': NoMisusedSpread.Options;
10146
+ '@typescript-eslint/no-namespace': NoNamespace.Options;
10147
+ '@typescript-eslint/no-redeclare': NoRedeclare.Options;
10148
+ '@typescript-eslint/no-require-imports': NoRequireImports.Options;
10149
+ '@typescript-eslint/no-restricted-imports': NoRestrictedImports.Options;
10150
+ '@typescript-eslint/no-restricted-types': NoRestrictedTypes.Options;
10151
+ '@typescript-eslint/no-shadow': NoShadow.Options;
10152
+ '@typescript-eslint/no-this-alias': NoThisAlias.Options;
10153
+ '@typescript-eslint/no-unnecessary-boolean-literal-compare': NoUnnecessaryBooleanLiteralCompare.Options;
10154
+ '@typescript-eslint/no-unnecessary-condition': NoUnnecessaryCondition.Options;
10155
+ '@typescript-eslint/no-unnecessary-type-assertion': NoUnnecessaryTypeAssertion.Options;
10156
+ '@typescript-eslint/no-unsafe-member-access': NoUnsafeMemberAccess.Options;
10157
+ '@typescript-eslint/no-unused-expressions': NoUnusedExpressions.Options;
10158
+ '@typescript-eslint/no-unused-vars': NoUnusedVars.Options;
10159
+ '@typescript-eslint/no-use-before-define': NoUseBeforeDefine.Options;
10160
+ '@typescript-eslint/only-throw-error': OnlyThrowError.Options;
10161
+ '@typescript-eslint/parameter-properties': ParameterProperties.Options;
10162
+ '@typescript-eslint/prefer-destructuring': readonly [
10141
10163
  PreferDestructuring.Options0,
10142
10164
  PreferDestructuring.Options1,
10143
10165
  ];
10144
- readonly '@typescript-eslint/prefer-literal-enum-member': PreferLiteralEnumMember.Options;
10145
- readonly '@typescript-eslint/prefer-nullish-coalescing': PreferNullishCoalescing.Options;
10146
- readonly '@typescript-eslint/prefer-optional-chain': PreferOptionalChain.Options;
10147
- readonly '@typescript-eslint/prefer-promise-reject-errors': PreferPromiseRejectErrors.Options;
10148
- readonly '@typescript-eslint/prefer-readonly': PreferReadonly.Options;
10149
- readonly '@typescript-eslint/prefer-readonly-parameter-types': PreferReadonlyParameterTypes.Options;
10150
- readonly '@typescript-eslint/prefer-string-starts-ends-with': PreferStringStartsEndsWith.Options;
10151
- readonly '@typescript-eslint/promise-function-async': PromiseFunctionAsync.Options;
10152
- readonly '@typescript-eslint/require-array-sort-compare': RequireArraySortCompare.Options;
10153
- readonly '@typescript-eslint/restrict-plus-operands': RestrictPlusOperands.Options;
10154
- readonly '@typescript-eslint/restrict-template-expressions': RestrictTemplateExpressions.Options;
10155
- readonly '@typescript-eslint/return-await': ReturnAwait.Options;
10156
- readonly '@typescript-eslint/strict-boolean-expressions': StrictBooleanExpressions.Options;
10157
- readonly '@typescript-eslint/switch-exhaustiveness-check': SwitchExhaustivenessCheck.Options;
10158
- readonly '@typescript-eslint/triple-slash-reference': TripleSlashReference.Options;
10159
- readonly '@typescript-eslint/unbound-method': UnboundMethod.Options;
10160
- readonly '@typescript-eslint/unified-signatures': UnifiedSignatures.Options;
10161
- };
10166
+ '@typescript-eslint/prefer-literal-enum-member': PreferLiteralEnumMember.Options;
10167
+ '@typescript-eslint/prefer-nullish-coalescing': PreferNullishCoalescing.Options;
10168
+ '@typescript-eslint/prefer-optional-chain': PreferOptionalChain.Options;
10169
+ '@typescript-eslint/prefer-promise-reject-errors': PreferPromiseRejectErrors.Options;
10170
+ '@typescript-eslint/prefer-readonly': PreferReadonly.Options;
10171
+ '@typescript-eslint/prefer-readonly-parameter-types': PreferReadonlyParameterTypes.Options;
10172
+ '@typescript-eslint/prefer-string-starts-ends-with': PreferStringStartsEndsWith.Options;
10173
+ '@typescript-eslint/promise-function-async': PromiseFunctionAsync.Options;
10174
+ '@typescript-eslint/require-array-sort-compare': RequireArraySortCompare.Options;
10175
+ '@typescript-eslint/restrict-plus-operands': RestrictPlusOperands.Options;
10176
+ '@typescript-eslint/restrict-template-expressions': RestrictTemplateExpressions.Options;
10177
+ '@typescript-eslint/return-await': ReturnAwait.Options;
10178
+ '@typescript-eslint/strict-boolean-expressions': StrictBooleanExpressions.Options;
10179
+ '@typescript-eslint/switch-exhaustiveness-check': SwitchExhaustivenessCheck.Options;
10180
+ '@typescript-eslint/triple-slash-reference': TripleSlashReference.Options;
10181
+ '@typescript-eslint/unbound-method': UnboundMethod.Options;
10182
+ '@typescript-eslint/unified-signatures': UnifiedSignatures.Options;
10183
+ }>;