eslint-config-typed 3.13.3 → 3.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/rules/typescript-eslint-rules.d.mts +1 -0
  2. package/dist/rules/typescript-eslint-rules.d.mts.map +1 -1
  3. package/dist/rules/typescript-eslint-rules.mjs +1 -0
  4. package/dist/rules/typescript-eslint-rules.mjs.map +1 -1
  5. package/dist/types/rules/eslint-array-func-rules.d.mts +8 -8
  6. package/dist/types/rules/eslint-array-func-rules.d.mts.map +1 -1
  7. package/dist/types/rules/eslint-cypress-rules.d.mts +27 -23
  8. package/dist/types/rules/eslint-cypress-rules.d.mts.map +1 -1
  9. package/dist/types/rules/eslint-functional-rules.d.mts +426 -425
  10. package/dist/types/rules/eslint-functional-rules.d.mts.map +1 -1
  11. package/dist/types/rules/eslint-import-rules.d.mts +343 -325
  12. package/dist/types/rules/eslint-import-rules.d.mts.map +1 -1
  13. package/dist/types/rules/eslint-jest-rules.d.mts +183 -171
  14. package/dist/types/rules/eslint-jest-rules.d.mts.map +1 -1
  15. package/dist/types/rules/eslint-jsx-a11y-rules.d.mts +211 -209
  16. package/dist/types/rules/eslint-jsx-a11y-rules.d.mts.map +1 -1
  17. package/dist/types/rules/eslint-math-rules.d.mts +49 -48
  18. package/dist/types/rules/eslint-math-rules.d.mts.map +1 -1
  19. package/dist/types/rules/eslint-n-rules.d.mts +296 -293
  20. package/dist/types/rules/eslint-n-rules.d.mts.map +1 -1
  21. package/dist/types/rules/eslint-playwright-rules.d.mts +161 -149
  22. package/dist/types/rules/eslint-playwright-rules.d.mts.map +1 -1
  23. package/dist/types/rules/eslint-plugin-rules.d.mts +95 -85
  24. package/dist/types/rules/eslint-plugin-rules.d.mts.map +1 -1
  25. package/dist/types/rules/eslint-plugin-sort-destructure-keys-rules.d.mts +10 -10
  26. package/dist/types/rules/eslint-plugin-sort-destructure-keys-rules.d.mts.map +1 -1
  27. package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts +23 -16
  28. package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts.map +1 -1
  29. package/dist/types/rules/eslint-promise-rules.d.mts +68 -68
  30. package/dist/types/rules/eslint-promise-rules.d.mts.map +1 -1
  31. package/dist/types/rules/eslint-react-coding-style-rules.d.mts +29 -29
  32. package/dist/types/rules/eslint-react-coding-style-rules.d.mts.map +1 -1
  33. package/dist/types/rules/eslint-react-hooks-rules.d.mts +100 -100
  34. package/dist/types/rules/eslint-react-hooks-rules.d.mts.map +1 -1
  35. package/dist/types/rules/eslint-react-perf-rules.d.mts +28 -28
  36. package/dist/types/rules/eslint-react-perf-rules.d.mts.map +1 -1
  37. package/dist/types/rules/eslint-react-refresh-rules.d.mts +13 -13
  38. package/dist/types/rules/eslint-react-refresh-rules.d.mts.map +1 -1
  39. package/dist/types/rules/eslint-react-rules.d.mts +646 -620
  40. package/dist/types/rules/eslint-react-rules.d.mts.map +1 -1
  41. package/dist/types/rules/eslint-rules.d.mts +1022 -1016
  42. package/dist/types/rules/eslint-rules.d.mts.map +1 -1
  43. package/dist/types/rules/eslint-security-rules.d.mts +16 -16
  44. package/dist/types/rules/eslint-security-rules.d.mts.map +1 -1
  45. package/dist/types/rules/eslint-strict-dependencies-rules.d.mts +18 -18
  46. package/dist/types/rules/eslint-strict-dependencies-rules.d.mts.map +1 -1
  47. package/dist/types/rules/eslint-stylistic-rules.d.mts +1440 -1400
  48. package/dist/types/rules/eslint-stylistic-rules.d.mts.map +1 -1
  49. package/dist/types/rules/eslint-testing-library-rules.d.mts +110 -105
  50. package/dist/types/rules/eslint-testing-library-rules.d.mts.map +1 -1
  51. package/dist/types/rules/eslint-total-functions-rules.d.mts +16 -16
  52. package/dist/types/rules/eslint-total-functions-rules.d.mts.map +1 -1
  53. package/dist/types/rules/eslint-tree-shakable-rules.d.mts +3 -3
  54. package/dist/types/rules/eslint-tree-shakable-rules.d.mts.map +1 -1
  55. package/dist/types/rules/eslint-ts-restrictions-rules.d.mts +30 -30
  56. package/dist/types/rules/eslint-ts-restrictions-rules.d.mts.map +1 -1
  57. package/dist/types/rules/eslint-unicorn-rules.d.mts +398 -392
  58. package/dist/types/rules/eslint-unicorn-rules.d.mts.map +1 -1
  59. package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts +3 -3
  60. package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts.map +1 -1
  61. package/dist/types/rules/eslint-vitest-rules.d.mts +204 -190
  62. package/dist/types/rules/eslint-vitest-rules.d.mts.map +1 -1
  63. package/dist/types/rules/typescript-eslint-rules.d.mts +1107 -1077
  64. package/dist/types/rules/typescript-eslint-rules.d.mts.map +1 -1
  65. package/package.json +23 -23
  66. package/src/rules/typescript-eslint-rules.mts +2 -0
  67. package/src/types/rules/eslint-array-func-rules.mts +8 -8
  68. package/src/types/rules/eslint-cypress-rules.mts +28 -24
  69. package/src/types/rules/eslint-functional-rules.mts +581 -576
  70. package/src/types/rules/eslint-import-rules.mts +403 -384
  71. package/src/types/rules/eslint-jest-rules.mts +212 -196
  72. package/src/types/rules/eslint-jsx-a11y-rules.mts +252 -250
  73. package/src/types/rules/eslint-math-rules.mts +53 -52
  74. package/src/types/rules/eslint-n-rules.mts +1762 -1757
  75. package/src/types/rules/eslint-playwright-rules.mts +187 -171
  76. package/src/types/rules/eslint-plugin-rules.mts +109 -99
  77. package/src/types/rules/eslint-plugin-sort-destructure-keys-rules.mts +11 -11
  78. package/src/types/rules/eslint-prefer-arrow-functions-rules.mts +24 -17
  79. package/src/types/rules/eslint-promise-rules.mts +76 -76
  80. package/src/types/rules/eslint-react-coding-style-rules.mts +32 -32
  81. package/src/types/rules/eslint-react-hooks-rules.mts +129 -129
  82. package/src/types/rules/eslint-react-perf-rules.mts +32 -32
  83. package/src/types/rules/eslint-react-refresh-rules.mts +14 -14
  84. package/src/types/rules/eslint-react-rules.mts +787 -792
  85. package/src/types/rules/eslint-rules.mts +1180 -1173
  86. package/src/types/rules/eslint-security-rules.mts +16 -16
  87. package/src/types/rules/eslint-strict-dependencies-rules.mts +19 -19
  88. package/src/types/rules/eslint-stylistic-rules.mts +1767 -1807
  89. package/src/types/rules/eslint-testing-library-rules.mts +128 -124
  90. package/src/types/rules/eslint-total-functions-rules.mts +16 -16
  91. package/src/types/rules/eslint-tree-shakable-rules.mts +3 -3
  92. package/src/types/rules/eslint-ts-restrictions-rules.mts +34 -33
  93. package/src/types/rules/eslint-unicorn-rules.mts +447 -436
  94. package/src/types/rules/eslint-vitest-coding-style-rules.mts +3 -3
  95. package/src/types/rules/eslint-vitest-rules.mts +232 -219
  96. package/src/types/rules/typescript-eslint-rules.mts +1511 -1489
@@ -49,15 +49,15 @@ namespace ConsistentTestIt {
49
49
  * ]
50
50
  * ```
51
51
  */
52
- export type Options = {
53
- readonly fn?: 'it' | 'test';
54
- readonly withinDescribe?: 'it' | 'test';
55
- };
52
+ export type Options = Readonly<{
53
+ fn?: 'it' | 'test';
54
+ withinDescribe?: 'it' | 'test';
55
+ }>;
56
56
 
57
57
  export type RuleEntry =
58
+ | 'off'
58
59
  | Linter.Severity
59
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
60
- | 'off';
60
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
61
61
  }
62
62
 
63
63
  /**
@@ -99,15 +99,15 @@ namespace ExpectExpect {
99
99
  * ]
100
100
  * ```
101
101
  */
102
- export type Options = {
103
- readonly assertFunctionNames?: readonly string[];
104
- readonly additionalTestBlockFunctions?: readonly string[];
105
- };
102
+ export type Options = Readonly<{
103
+ assertFunctionNames?: readonly string[];
104
+ additionalTestBlockFunctions?: readonly string[];
105
+ }>;
106
106
 
107
107
  export type RuleEntry =
108
+ | 'off'
108
109
  | Linter.Severity
109
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
110
- | 'off';
110
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
111
111
  }
112
112
 
113
113
  /**
@@ -141,14 +141,14 @@ namespace MaxExpects {
141
141
  * ]
142
142
  * ```
143
143
  */
144
- export type Options = {
145
- readonly max?: number;
146
- };
144
+ export type Options = Readonly<{
145
+ max?: number;
146
+ }>;
147
147
 
148
148
  export type RuleEntry =
149
+ | 'off'
149
150
  | Linter.Severity
150
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
151
- | 'off';
151
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
152
152
  }
153
153
 
154
154
  /**
@@ -182,14 +182,14 @@ namespace MaxNestedDescribe {
182
182
  * ]
183
183
  * ```
184
184
  */
185
- export type Options = {
186
- readonly max?: number;
187
- };
185
+ export type Options = Readonly<{
186
+ max?: number;
187
+ }>;
188
188
 
189
189
  export type RuleEntry =
190
+ | 'off'
190
191
  | Linter.Severity
191
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
192
- | 'off';
192
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
193
193
  }
194
194
 
195
195
  /**
@@ -408,14 +408,14 @@ namespace NoHooks {
408
408
  * ]
409
409
  * ```
410
410
  */
411
- export type Options = {
412
- readonly allow?: readonly unknown[];
413
- };
411
+ export type Options = Readonly<{
412
+ allow?: readonly unknown[];
413
+ }>;
414
414
 
415
415
  export type RuleEntry =
416
+ | 'off'
416
417
  | Linter.Severity
417
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
418
- | 'off';
418
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
419
419
  }
420
420
 
421
421
  /**
@@ -506,16 +506,16 @@ namespace NoLargeSnapshots {
506
506
  * ]
507
507
  * ```
508
508
  */
509
- export type Options = {
510
- readonly maxSize?: number;
511
- readonly inlineMaxSize?: number;
512
- readonly allowedSnapshots?: Record<string, readonly unknown[]>;
513
- };
509
+ export type Options = Readonly<{
510
+ maxSize?: number;
511
+ inlineMaxSize?: number;
512
+ allowedSnapshots?: Readonly<Record<string, readonly unknown[]>>;
513
+ }>;
514
514
 
515
515
  export type RuleEntry =
516
+ | 'off'
516
517
  | Linter.Severity
517
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
518
- | 'off';
518
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
519
519
  }
520
520
 
521
521
  /**
@@ -567,9 +567,9 @@ namespace NoRestrictedJestMethods {
567
567
  export type Options = Readonly<Record<string, string | null>>;
568
568
 
569
569
  export type RuleEntry =
570
+ | 'off'
570
571
  | Linter.Severity
571
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
572
- | 'off';
572
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
573
573
  }
574
574
 
575
575
  /**
@@ -605,9 +605,9 @@ namespace NoRestrictedMatchers {
605
605
  export type Options = Readonly<Record<string, string | null>>;
606
606
 
607
607
  export type RuleEntry =
608
+ | 'off'
608
609
  | Linter.Severity
609
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
610
- | 'off';
610
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
611
611
  }
612
612
 
613
613
  /**
@@ -643,14 +643,14 @@ namespace NoStandaloneExpect {
643
643
  * ]
644
644
  * ```
645
645
  */
646
- export type Options = {
647
- readonly additionalTestBlockFunctions?: readonly string[];
648
- };
646
+ export type Options = Readonly<{
647
+ additionalTestBlockFunctions?: readonly string[];
648
+ }>;
649
649
 
650
650
  export type RuleEntry =
651
+ | 'off'
651
652
  | Linter.Severity
652
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
653
- | 'off';
653
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
654
654
  }
655
655
 
656
656
  /**
@@ -927,15 +927,15 @@ namespace PreferEndingWithAnExpect {
927
927
  * ]
928
928
  * ```
929
929
  */
930
- export type Options = {
931
- readonly assertFunctionNames?: readonly string[];
932
- readonly additionalTestBlockFunctions?: readonly string[];
933
- };
930
+ export type Options = Readonly<{
931
+ assertFunctionNames?: readonly string[];
932
+ additionalTestBlockFunctions?: readonly string[];
933
+ }>;
934
934
 
935
935
  export type RuleEntry =
936
+ | 'off'
936
937
  | Linter.Severity
937
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
938
- | 'off';
938
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
939
939
  }
940
940
 
941
941
  /**
@@ -992,16 +992,16 @@ namespace PreferExpectAssertions {
992
992
  * ]
993
993
  * ```
994
994
  */
995
- export type Options = {
996
- readonly onlyFunctionsWithAsyncKeyword?: boolean;
997
- readonly onlyFunctionsWithExpectInLoop?: boolean;
998
- readonly onlyFunctionsWithExpectInCallback?: boolean;
999
- };
995
+ export type Options = Readonly<{
996
+ onlyFunctionsWithAsyncKeyword?: boolean;
997
+ onlyFunctionsWithExpectInLoop?: boolean;
998
+ onlyFunctionsWithExpectInCallback?: boolean;
999
+ }>;
1000
1000
 
1001
1001
  export type RuleEntry =
1002
+ | 'off'
1002
1003
  | Linter.Severity
1003
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1004
- | 'off';
1004
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1005
1005
  }
1006
1006
 
1007
1007
  /**
@@ -1095,21 +1095,21 @@ namespace PreferImportingJestGlobals {
1095
1095
  * ]
1096
1096
  * ```
1097
1097
  */
1098
- export type Options = {
1099
- readonly types?: readonly (
1098
+ export type Options = Readonly<{
1099
+ types?: readonly (
1100
+ | 'hook'
1100
1101
  | 'describe'
1102
+ | 'test'
1101
1103
  | 'expect'
1102
- | 'hook'
1103
1104
  | 'jest'
1104
- | 'test'
1105
1105
  | 'unknown'
1106
1106
  )[];
1107
- };
1107
+ }>;
1108
1108
 
1109
1109
  export type RuleEntry =
1110
+ | 'off'
1110
1111
  | Linter.Severity
1111
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1112
- | 'off';
1112
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1113
1113
  }
1114
1114
 
1115
1115
  /**
@@ -1184,17 +1184,19 @@ namespace PreferLowercaseTitle {
1184
1184
  * ]
1185
1185
  * ```
1186
1186
  */
1187
- export type Options = {
1188
- readonly ignore?: readonly ('describe' | 'it' | 'test')[];
1189
- readonly allowedPrefixes?: readonly string[];
1190
- readonly ignoreTopLevelDescribe?: boolean;
1191
- readonly ignoreTodos?: boolean;
1192
- };
1187
+ export type Options = Readonly<{
1188
+ ignore?: readonly ('describe' | 'test' | 'it')[];
1189
+ allowedPrefixes?: readonly string[];
1190
+ /** @default false */
1191
+ ignoreTopLevelDescribe?: boolean;
1192
+ /** @default false */
1193
+ ignoreTodos?: boolean;
1194
+ }>;
1193
1195
 
1194
1196
  export type RuleEntry =
1197
+ | 'off'
1195
1198
  | Linter.Severity
1196
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1197
- | 'off';
1199
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1198
1200
  }
1199
1201
 
1200
1202
  /**
@@ -1245,9 +1247,9 @@ namespace PreferSnapshotHint {
1245
1247
  export type Options = 'always' | 'multi';
1246
1248
 
1247
1249
  export type RuleEntry =
1250
+ | 'off'
1248
1251
  | Linter.Severity
1249
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1250
- | 'off';
1252
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1251
1253
  }
1252
1254
 
1253
1255
  /**
@@ -1385,14 +1387,14 @@ namespace RequireHook {
1385
1387
  * ]
1386
1388
  * ```
1387
1389
  */
1388
- export type Options = {
1389
- readonly allowedFunctionCalls?: readonly string[];
1390
- };
1390
+ export type Options = Readonly<{
1391
+ allowedFunctionCalls?: readonly string[];
1392
+ }>;
1391
1393
 
1392
1394
  export type RuleEntry =
1395
+ | 'off'
1393
1396
  | Linter.Severity
1394
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1395
- | 'off';
1397
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1396
1398
  }
1397
1399
 
1398
1400
  /**
@@ -1442,14 +1444,14 @@ namespace RequireTopLevelDescribe {
1442
1444
  * ]
1443
1445
  * ```
1444
1446
  */
1445
- export type Options = {
1446
- readonly maxNumberOfTopLevelDescribes?: number;
1447
- };
1447
+ export type Options = Readonly<{
1448
+ maxNumberOfTopLevelDescribes?: number;
1449
+ }>;
1448
1450
 
1449
1451
  export type RuleEntry =
1452
+ | 'off'
1450
1453
  | Linter.Severity
1451
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1452
- | 'off';
1454
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1453
1455
  }
1454
1456
 
1455
1457
  /**
@@ -1485,15 +1487,15 @@ namespace UnboundMethod {
1485
1487
  * ]
1486
1488
  * ```
1487
1489
  */
1488
- export type Options = {
1490
+ export type Options = Readonly<{
1489
1491
  /** Whether to skip checking whether `static` methods are correctly bound. */
1490
- readonly ignoreStatic?: boolean;
1491
- };
1492
+ ignoreStatic?: boolean;
1493
+ }>;
1492
1494
 
1493
1495
  export type RuleEntry =
1496
+ | 'off'
1494
1497
  | Linter.Severity
1495
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1496
- | 'off';
1498
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1497
1499
  }
1498
1500
 
1499
1501
  /**
@@ -1574,17 +1576,18 @@ namespace ValidExpect {
1574
1576
  * ]
1575
1577
  * ```
1576
1578
  */
1577
- export type Options = {
1578
- readonly alwaysAwait?: boolean;
1579
- readonly asyncMatchers?: readonly string[];
1580
- readonly minArgs?: number;
1581
- readonly maxArgs?: number;
1582
- };
1579
+ export type Options = Readonly<{
1580
+ /** @default false */
1581
+ alwaysAwait?: boolean;
1582
+ asyncMatchers?: readonly string[];
1583
+ minArgs?: number;
1584
+ maxArgs?: number;
1585
+ }>;
1583
1586
 
1584
1587
  export type RuleEntry =
1588
+ | 'off'
1585
1589
  | Linter.Severity
1586
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1587
- | 'off';
1590
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1588
1591
  }
1589
1592
 
1590
1593
  /**
@@ -1677,108 +1680,121 @@ namespace ValidTitle {
1677
1680
  * ]
1678
1681
  * ```
1679
1682
  */
1680
- /* modified */
1681
- export type Options = {
1682
- readonly ignoreTypeOfDescribeName?: boolean;
1683
- readonly disallowedWords?: readonly string[];
1684
- readonly mustNotMatch?: MustMatchType | string;
1685
- readonly mustMatch?: MustMatchType | string;
1686
- };
1687
-
1688
- type MustMatchType = Readonly<
1689
- Partial<Record<'describe' | 'it' | 'test', string>>
1690
- >;
1683
+ export type MustMatchType =
1684
+ | PatternOrPatternArray
1685
+ | Readonly<{
1686
+ describe?: PatternOrPatternArray;
1687
+ test?: PatternOrPatternArray;
1688
+ it?: PatternOrPatternArray;
1689
+ }>;
1690
+
1691
+ export type PatternOrPatternArray =
1692
+ | string
1693
+ | readonly [string]
1694
+ | readonly [string, string];
1695
+
1696
+ export type Options = Readonly<{
1697
+ /** @default false */
1698
+ ignoreSpaces?: boolean;
1699
+ /** @default false */
1700
+ ignoreTypeOfDescribeName?: boolean;
1701
+ /** @default false */
1702
+ ignoreTypeOfTestName?: boolean;
1703
+ disallowedWords?: readonly string[];
1704
+ mustMatch?: MustMatchType;
1705
+ mustNotMatch?: MustMatchType;
1706
+ }>;
1691
1707
 
1692
1708
  export type RuleEntry =
1709
+ | 'off'
1693
1710
  | Linter.Severity
1694
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1695
- | 'off';
1711
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1696
1712
  }
1697
1713
 
1698
- export type EslintJestRules = {
1699
- readonly 'jest/consistent-test-it': ConsistentTestIt.RuleEntry;
1700
- readonly 'jest/expect-expect': ExpectExpect.RuleEntry;
1701
- readonly 'jest/max-expects': MaxExpects.RuleEntry;
1702
- readonly 'jest/max-nested-describe': MaxNestedDescribe.RuleEntry;
1703
- readonly 'jest/no-alias-methods': NoAliasMethods.RuleEntry;
1704
- readonly 'jest/no-commented-out-tests': NoCommentedOutTests.RuleEntry;
1705
- readonly 'jest/no-conditional-expect': NoConditionalExpect.RuleEntry;
1706
- readonly 'jest/no-conditional-in-test': NoConditionalInTest.RuleEntry;
1707
- readonly 'jest/no-confusing-set-timeout': NoConfusingSetTimeout.RuleEntry;
1708
- readonly 'jest/no-deprecated-functions': NoDeprecatedFunctions.RuleEntry;
1709
- readonly 'jest/no-disabled-tests': NoDisabledTests.RuleEntry;
1710
- readonly 'jest/no-done-callback': NoDoneCallback.RuleEntry;
1711
- readonly 'jest/no-duplicate-hooks': NoDuplicateHooks.RuleEntry;
1712
- readonly 'jest/no-export': NoExport.RuleEntry;
1713
- readonly 'jest/no-focused-tests': NoFocusedTests.RuleEntry;
1714
- readonly 'jest/no-hooks': NoHooks.RuleEntry;
1715
- readonly 'jest/no-identical-title': NoIdenticalTitle.RuleEntry;
1716
- readonly 'jest/no-interpolation-in-snapshots': NoInterpolationInSnapshots.RuleEntry;
1717
- readonly 'jest/no-jasmine-globals': NoJasmineGlobals.RuleEntry;
1718
- readonly 'jest/no-large-snapshots': NoLargeSnapshots.RuleEntry;
1719
- readonly 'jest/no-mocks-import': NoMocksImport.RuleEntry;
1720
- readonly 'jest/no-restricted-jest-methods': NoRestrictedJestMethods.RuleEntry;
1721
- readonly 'jest/no-restricted-matchers': NoRestrictedMatchers.RuleEntry;
1722
- readonly 'jest/no-standalone-expect': NoStandaloneExpect.RuleEntry;
1723
- readonly 'jest/no-test-prefixes': NoTestPrefixes.RuleEntry;
1724
- readonly 'jest/no-test-return-statement': NoTestReturnStatement.RuleEntry;
1725
- readonly 'jest/no-untyped-mock-factory': NoUntypedMockFactory.RuleEntry;
1726
- readonly 'jest/padding-around-after-all-blocks': PaddingAroundAfterAllBlocks.RuleEntry;
1727
- readonly 'jest/padding-around-after-each-blocks': PaddingAroundAfterEachBlocks.RuleEntry;
1728
- readonly 'jest/padding-around-all': PaddingAroundAll.RuleEntry;
1729
- readonly 'jest/padding-around-before-all-blocks': PaddingAroundBeforeAllBlocks.RuleEntry;
1730
- readonly 'jest/padding-around-before-each-blocks': PaddingAroundBeforeEachBlocks.RuleEntry;
1731
- readonly 'jest/padding-around-describe-blocks': PaddingAroundDescribeBlocks.RuleEntry;
1732
- readonly 'jest/padding-around-expect-groups': PaddingAroundExpectGroups.RuleEntry;
1733
- readonly 'jest/padding-around-test-blocks': PaddingAroundTestBlocks.RuleEntry;
1734
- readonly 'jest/prefer-called-with': PreferCalledWith.RuleEntry;
1735
- readonly 'jest/prefer-comparison-matcher': PreferComparisonMatcher.RuleEntry;
1736
- readonly 'jest/prefer-each': PreferEach.RuleEntry;
1737
- readonly 'jest/prefer-ending-with-an-expect': PreferEndingWithAnExpect.RuleEntry;
1738
- readonly 'jest/prefer-equality-matcher': PreferEqualityMatcher.RuleEntry;
1739
- readonly 'jest/prefer-expect-assertions': PreferExpectAssertions.RuleEntry;
1740
- readonly 'jest/prefer-expect-resolves': PreferExpectResolves.RuleEntry;
1741
- readonly 'jest/prefer-hooks-in-order': PreferHooksInOrder.RuleEntry;
1742
- readonly 'jest/prefer-hooks-on-top': PreferHooksOnTop.RuleEntry;
1743
- readonly 'jest/prefer-importing-jest-globals': PreferImportingJestGlobals.RuleEntry;
1744
- readonly 'jest/prefer-jest-mocked': PreferJestMocked.RuleEntry;
1745
- readonly 'jest/prefer-lowercase-title': PreferLowercaseTitle.RuleEntry;
1746
- readonly 'jest/prefer-mock-promise-shorthand': PreferMockPromiseShorthand.RuleEntry;
1747
- readonly 'jest/prefer-snapshot-hint': PreferSnapshotHint.RuleEntry;
1748
- readonly 'jest/prefer-spy-on': PreferSpyOn.RuleEntry;
1749
- readonly 'jest/prefer-strict-equal': PreferStrictEqual.RuleEntry;
1750
- readonly 'jest/prefer-to-be': PreferToBe.RuleEntry;
1751
- readonly 'jest/prefer-to-contain': PreferToContain.RuleEntry;
1752
- readonly 'jest/prefer-to-have-length': PreferToHaveLength.RuleEntry;
1753
- readonly 'jest/prefer-todo': PreferTodo.RuleEntry;
1754
- readonly 'jest/require-hook': RequireHook.RuleEntry;
1755
- readonly 'jest/require-to-throw-message': RequireToThrowMessage.RuleEntry;
1756
- readonly 'jest/require-top-level-describe': RequireTopLevelDescribe.RuleEntry;
1757
- readonly 'jest/unbound-method': UnboundMethod.RuleEntry;
1758
- readonly 'jest/valid-describe-callback': ValidDescribeCallback.RuleEntry;
1759
- readonly 'jest/valid-expect-in-promise': ValidExpectInPromise.RuleEntry;
1760
- readonly 'jest/valid-expect': ValidExpect.RuleEntry;
1761
- readonly 'jest/valid-title': ValidTitle.RuleEntry;
1762
- };
1763
-
1764
- export type EslintJestRulesOption = {
1765
- readonly 'jest/consistent-test-it': ConsistentTestIt.Options;
1766
- readonly 'jest/expect-expect': ExpectExpect.Options;
1767
- readonly 'jest/max-expects': MaxExpects.Options;
1768
- readonly 'jest/max-nested-describe': MaxNestedDescribe.Options;
1769
- readonly 'jest/no-hooks': NoHooks.Options;
1770
- readonly 'jest/no-large-snapshots': NoLargeSnapshots.Options;
1771
- readonly 'jest/no-restricted-jest-methods': NoRestrictedJestMethods.Options;
1772
- readonly 'jest/no-restricted-matchers': NoRestrictedMatchers.Options;
1773
- readonly 'jest/no-standalone-expect': NoStandaloneExpect.Options;
1774
- readonly 'jest/prefer-ending-with-an-expect': PreferEndingWithAnExpect.Options;
1775
- readonly 'jest/prefer-expect-assertions': PreferExpectAssertions.Options;
1776
- readonly 'jest/prefer-importing-jest-globals': PreferImportingJestGlobals.Options;
1777
- readonly 'jest/prefer-lowercase-title': PreferLowercaseTitle.Options;
1778
- readonly 'jest/prefer-snapshot-hint': PreferSnapshotHint.Options;
1779
- readonly 'jest/require-hook': RequireHook.Options;
1780
- readonly 'jest/require-top-level-describe': RequireTopLevelDescribe.Options;
1781
- readonly 'jest/unbound-method': UnboundMethod.Options;
1782
- readonly 'jest/valid-expect': ValidExpect.Options;
1783
- readonly 'jest/valid-title': ValidTitle.Options;
1784
- };
1714
+ export type EslintJestRules = Readonly<{
1715
+ 'jest/consistent-test-it': ConsistentTestIt.RuleEntry;
1716
+ 'jest/expect-expect': ExpectExpect.RuleEntry;
1717
+ 'jest/max-expects': MaxExpects.RuleEntry;
1718
+ 'jest/max-nested-describe': MaxNestedDescribe.RuleEntry;
1719
+ 'jest/no-alias-methods': NoAliasMethods.RuleEntry;
1720
+ 'jest/no-commented-out-tests': NoCommentedOutTests.RuleEntry;
1721
+ 'jest/no-conditional-expect': NoConditionalExpect.RuleEntry;
1722
+ 'jest/no-conditional-in-test': NoConditionalInTest.RuleEntry;
1723
+ 'jest/no-confusing-set-timeout': NoConfusingSetTimeout.RuleEntry;
1724
+ 'jest/no-deprecated-functions': NoDeprecatedFunctions.RuleEntry;
1725
+ 'jest/no-disabled-tests': NoDisabledTests.RuleEntry;
1726
+ 'jest/no-done-callback': NoDoneCallback.RuleEntry;
1727
+ 'jest/no-duplicate-hooks': NoDuplicateHooks.RuleEntry;
1728
+ 'jest/no-export': NoExport.RuleEntry;
1729
+ 'jest/no-focused-tests': NoFocusedTests.RuleEntry;
1730
+ 'jest/no-hooks': NoHooks.RuleEntry;
1731
+ 'jest/no-identical-title': NoIdenticalTitle.RuleEntry;
1732
+ 'jest/no-interpolation-in-snapshots': NoInterpolationInSnapshots.RuleEntry;
1733
+ 'jest/no-jasmine-globals': NoJasmineGlobals.RuleEntry;
1734
+ 'jest/no-large-snapshots': NoLargeSnapshots.RuleEntry;
1735
+ 'jest/no-mocks-import': NoMocksImport.RuleEntry;
1736
+ 'jest/no-restricted-jest-methods': NoRestrictedJestMethods.RuleEntry;
1737
+ 'jest/no-restricted-matchers': NoRestrictedMatchers.RuleEntry;
1738
+ 'jest/no-standalone-expect': NoStandaloneExpect.RuleEntry;
1739
+ 'jest/no-test-prefixes': NoTestPrefixes.RuleEntry;
1740
+ 'jest/no-test-return-statement': NoTestReturnStatement.RuleEntry;
1741
+ 'jest/no-untyped-mock-factory': NoUntypedMockFactory.RuleEntry;
1742
+ 'jest/padding-around-after-all-blocks': PaddingAroundAfterAllBlocks.RuleEntry;
1743
+ 'jest/padding-around-after-each-blocks': PaddingAroundAfterEachBlocks.RuleEntry;
1744
+ 'jest/padding-around-all': PaddingAroundAll.RuleEntry;
1745
+ 'jest/padding-around-before-all-blocks': PaddingAroundBeforeAllBlocks.RuleEntry;
1746
+ 'jest/padding-around-before-each-blocks': PaddingAroundBeforeEachBlocks.RuleEntry;
1747
+ 'jest/padding-around-describe-blocks': PaddingAroundDescribeBlocks.RuleEntry;
1748
+ 'jest/padding-around-expect-groups': PaddingAroundExpectGroups.RuleEntry;
1749
+ 'jest/padding-around-test-blocks': PaddingAroundTestBlocks.RuleEntry;
1750
+ 'jest/prefer-called-with': PreferCalledWith.RuleEntry;
1751
+ 'jest/prefer-comparison-matcher': PreferComparisonMatcher.RuleEntry;
1752
+ 'jest/prefer-each': PreferEach.RuleEntry;
1753
+ 'jest/prefer-ending-with-an-expect': PreferEndingWithAnExpect.RuleEntry;
1754
+ 'jest/prefer-equality-matcher': PreferEqualityMatcher.RuleEntry;
1755
+ 'jest/prefer-expect-assertions': PreferExpectAssertions.RuleEntry;
1756
+ 'jest/prefer-expect-resolves': PreferExpectResolves.RuleEntry;
1757
+ 'jest/prefer-hooks-in-order': PreferHooksInOrder.RuleEntry;
1758
+ 'jest/prefer-hooks-on-top': PreferHooksOnTop.RuleEntry;
1759
+ 'jest/prefer-importing-jest-globals': PreferImportingJestGlobals.RuleEntry;
1760
+ 'jest/prefer-jest-mocked': PreferJestMocked.RuleEntry;
1761
+ 'jest/prefer-lowercase-title': PreferLowercaseTitle.RuleEntry;
1762
+ 'jest/prefer-mock-promise-shorthand': PreferMockPromiseShorthand.RuleEntry;
1763
+ 'jest/prefer-snapshot-hint': PreferSnapshotHint.RuleEntry;
1764
+ 'jest/prefer-spy-on': PreferSpyOn.RuleEntry;
1765
+ 'jest/prefer-strict-equal': PreferStrictEqual.RuleEntry;
1766
+ 'jest/prefer-to-be': PreferToBe.RuleEntry;
1767
+ 'jest/prefer-to-contain': PreferToContain.RuleEntry;
1768
+ 'jest/prefer-to-have-length': PreferToHaveLength.RuleEntry;
1769
+ 'jest/prefer-todo': PreferTodo.RuleEntry;
1770
+ 'jest/require-hook': RequireHook.RuleEntry;
1771
+ 'jest/require-to-throw-message': RequireToThrowMessage.RuleEntry;
1772
+ 'jest/require-top-level-describe': RequireTopLevelDescribe.RuleEntry;
1773
+ 'jest/unbound-method': UnboundMethod.RuleEntry;
1774
+ 'jest/valid-describe-callback': ValidDescribeCallback.RuleEntry;
1775
+ 'jest/valid-expect-in-promise': ValidExpectInPromise.RuleEntry;
1776
+ 'jest/valid-expect': ValidExpect.RuleEntry;
1777
+ 'jest/valid-title': ValidTitle.RuleEntry;
1778
+ }>;
1779
+
1780
+ export type EslintJestRulesOption = Readonly<{
1781
+ 'jest/consistent-test-it': ConsistentTestIt.Options;
1782
+ 'jest/expect-expect': ExpectExpect.Options;
1783
+ 'jest/max-expects': MaxExpects.Options;
1784
+ 'jest/max-nested-describe': MaxNestedDescribe.Options;
1785
+ 'jest/no-hooks': NoHooks.Options;
1786
+ 'jest/no-large-snapshots': NoLargeSnapshots.Options;
1787
+ 'jest/no-restricted-jest-methods': NoRestrictedJestMethods.Options;
1788
+ 'jest/no-restricted-matchers': NoRestrictedMatchers.Options;
1789
+ 'jest/no-standalone-expect': NoStandaloneExpect.Options;
1790
+ 'jest/prefer-ending-with-an-expect': PreferEndingWithAnExpect.Options;
1791
+ 'jest/prefer-expect-assertions': PreferExpectAssertions.Options;
1792
+ 'jest/prefer-importing-jest-globals': PreferImportingJestGlobals.Options;
1793
+ 'jest/prefer-lowercase-title': PreferLowercaseTitle.Options;
1794
+ 'jest/prefer-snapshot-hint': PreferSnapshotHint.Options;
1795
+ 'jest/require-hook': RequireHook.Options;
1796
+ 'jest/require-top-level-describe': RequireTopLevelDescribe.Options;
1797
+ 'jest/unbound-method': UnboundMethod.Options;
1798
+ 'jest/valid-expect': ValidExpect.Options;
1799
+ 'jest/valid-title': ValidTitle.Options;
1800
+ }>;