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
@@ -43,14 +43,14 @@ namespace ExpectExpect {
43
43
  * ]
44
44
  * ```
45
45
  */
46
- export type Options = {
47
- readonly assertFunctionNames?: readonly [] | readonly [string];
48
- };
46
+ export type Options = Readonly<{
47
+ assertFunctionNames?: readonly [] | readonly [string];
48
+ }>;
49
49
 
50
50
  export type RuleEntry =
51
+ | 'off'
51
52
  | Linter.Severity
52
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
53
- | 'off';
53
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
54
54
  }
55
55
 
56
56
  /**
@@ -85,14 +85,14 @@ namespace MaxExpects {
85
85
  * ]
86
86
  * ```
87
87
  */
88
- export type Options = {
89
- readonly max?: number;
90
- };
88
+ export type Options = Readonly<{
89
+ max?: number;
90
+ }>;
91
91
 
92
92
  export type RuleEntry =
93
+ | 'off'
93
94
  | Linter.Severity
94
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
95
- | 'off';
95
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
96
96
  }
97
97
 
98
98
  /**
@@ -127,14 +127,14 @@ namespace MaxNestedDescribe {
127
127
  * ]
128
128
  * ```
129
129
  */
130
- export type Options = {
131
- readonly max?: number;
132
- };
130
+ export type Options = Readonly<{
131
+ max?: number;
132
+ }>;
133
133
 
134
134
  export type RuleEntry =
135
+ | 'off'
135
136
  | Linter.Severity
136
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
137
- | 'off';
137
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
138
138
  }
139
139
 
140
140
  /**
@@ -172,14 +172,14 @@ namespace MissingPlaywrightAwait {
172
172
  * ]
173
173
  * ```
174
174
  */
175
- export type Options = {
176
- readonly customMatchers?: readonly string[];
177
- };
175
+ export type Options = Readonly<{
176
+ customMatchers?: readonly string[];
177
+ }>;
178
178
 
179
179
  export type RuleEntry =
180
+ | 'off'
180
181
  | Linter.Severity
181
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
182
- | 'off';
182
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
183
183
  }
184
184
 
185
185
  /**
@@ -375,14 +375,14 @@ namespace NoHooks {
375
375
  * ]
376
376
  * ```
377
377
  */
378
- export type Options = {
379
- readonly allow?: readonly unknown[];
380
- };
378
+ export type Options = Readonly<{
379
+ allow?: readonly unknown[];
380
+ }>;
381
381
 
382
382
  export type RuleEntry =
383
+ | 'off'
383
384
  | Linter.Severity
384
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
385
- | 'off';
385
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
386
386
  }
387
387
 
388
388
  /**
@@ -487,14 +487,14 @@ namespace NoRawLocators {
487
487
  * ]
488
488
  * ```
489
489
  */
490
- export type Options = {
491
- readonly allowed?: readonly string[];
492
- };
490
+ export type Options = Readonly<{
491
+ allowed?: readonly string[];
492
+ }>;
493
493
 
494
494
  export type RuleEntry =
495
+ | 'off'
495
496
  | Linter.Severity
496
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
497
- | 'off';
497
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
498
498
  }
499
499
 
500
500
  /**
@@ -531,9 +531,9 @@ namespace NoRestrictedMatchers {
531
531
  export type Options = Readonly<Record<string, string | null>>;
532
532
 
533
533
  export type RuleEntry =
534
+ | 'off'
534
535
  | Linter.Severity
535
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
536
- | 'off';
536
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
537
537
  }
538
538
 
539
539
  /**
@@ -569,14 +569,15 @@ namespace NoSkippedTest {
569
569
  * ]
570
570
  * ```
571
571
  */
572
- export type Options = {
573
- readonly allowConditional?: boolean;
574
- };
572
+ export type Options = Readonly<{
573
+ /** @default false */
574
+ allowConditional?: boolean;
575
+ }>;
575
576
 
576
577
  export type RuleEntry =
578
+ | 'off'
577
579
  | Linter.Severity
578
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
579
- | 'off';
580
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
580
581
  }
581
582
 
582
583
  /**
@@ -612,14 +613,15 @@ namespace NoSlowedTest {
612
613
  * ]
613
614
  * ```
614
615
  */
615
- export type Options = {
616
- readonly allowConditional?: boolean;
617
- };
616
+ export type Options = Readonly<{
617
+ /** @default false */
618
+ allowConditional?: boolean;
619
+ }>;
618
620
 
619
621
  export type RuleEntry =
622
+ | 'off'
620
623
  | Linter.Severity
621
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
622
- | 'off';
624
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
623
625
  }
624
626
 
625
627
  /**
@@ -903,16 +905,17 @@ namespace PreferLowercaseTitle {
903
905
  * ]
904
906
  * ```
905
907
  */
906
- export type Options = {
907
- readonly allowedPrefixes?: readonly string[];
908
- readonly ignore?: readonly ('test.describe' | 'test')[];
909
- readonly ignoreTopLevelDescribe?: boolean;
910
- };
908
+ export type Options = Readonly<{
909
+ allowedPrefixes?: readonly string[];
910
+ ignore?: readonly ('test.describe' | 'test')[];
911
+ /** @default false */
912
+ ignoreTopLevelDescribe?: boolean;
913
+ }>;
911
914
 
912
915
  export type RuleEntry =
916
+ | 'off'
913
917
  | Linter.Severity
914
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
915
- | 'off';
918
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
916
919
  }
917
920
 
918
921
  /**
@@ -948,14 +951,15 @@ namespace PreferNativeLocators {
948
951
  * ]
949
952
  * ```
950
953
  */
951
- export type Options = {
952
- readonly testIdAttribute?: string;
953
- };
954
+ export type Options = Readonly<{
955
+ /** @default 'data-testid' */
956
+ testIdAttribute?: string;
957
+ }>;
954
958
 
955
959
  export type RuleEntry =
960
+ | 'off'
956
961
  | Linter.Severity
957
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
958
- | 'off';
962
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
959
963
  }
960
964
 
961
965
  /**
@@ -1101,14 +1105,14 @@ namespace RequireHook {
1101
1105
  * ]
1102
1106
  * ```
1103
1107
  */
1104
- export type Options = {
1105
- readonly allowedFunctionCalls?: readonly string[];
1106
- };
1108
+ export type Options = Readonly<{
1109
+ allowedFunctionCalls?: readonly string[];
1110
+ }>;
1107
1111
 
1108
1112
  export type RuleEntry =
1113
+ | 'off'
1109
1114
  | Linter.Severity
1110
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1111
- | 'off';
1115
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1112
1116
  }
1113
1117
 
1114
1118
  /**
@@ -1178,14 +1182,14 @@ namespace RequireTopLevelDescribe {
1178
1182
  * ]
1179
1183
  * ```
1180
1184
  */
1181
- export type Options = {
1182
- readonly maxTopLevelDescribes?: number;
1183
- };
1185
+ export type Options = Readonly<{
1186
+ maxTopLevelDescribes?: number;
1187
+ }>;
1184
1188
 
1185
1189
  export type RuleEntry =
1190
+ | 'off'
1186
1191
  | Linter.Severity
1187
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1188
- | 'off';
1192
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1189
1193
  }
1190
1194
 
1191
1195
  /**
@@ -1241,15 +1245,15 @@ namespace ValidExpect {
1241
1245
  * ]
1242
1246
  * ```
1243
1247
  */
1244
- export type Options = {
1245
- readonly maxArgs?: number;
1246
- readonly minArgs?: number;
1247
- };
1248
+ export type Options = Readonly<{
1249
+ maxArgs?: number;
1250
+ minArgs?: number;
1251
+ }>;
1248
1252
 
1249
1253
  export type RuleEntry =
1254
+ | 'off'
1250
1255
  | Linter.Severity
1251
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1252
- | 'off';
1256
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1253
1257
  }
1254
1258
 
1255
1259
  /**
@@ -1333,25 +1337,25 @@ namespace ValidTestTags {
1333
1337
  * ]
1334
1338
  * ```
1335
1339
  */
1336
- export type Options = {
1337
- readonly allowedTags?: readonly (
1340
+ export type Options = Readonly<{
1341
+ allowedTags?: readonly (
1338
1342
  | string
1339
- | {
1340
- readonly source?: string;
1341
- }
1343
+ | Readonly<{
1344
+ source?: string;
1345
+ }>
1342
1346
  )[];
1343
- readonly disallowedTags?: readonly (
1347
+ disallowedTags?: readonly (
1344
1348
  | string
1345
- | {
1346
- readonly source?: string;
1347
- }
1349
+ | Readonly<{
1350
+ source?: string;
1351
+ }>
1348
1352
  )[];
1349
- };
1353
+ }>;
1350
1354
 
1351
1355
  export type RuleEntry =
1356
+ | 'off'
1352
1357
  | Linter.Severity
1353
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1354
- | 'off';
1358
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1355
1359
  }
1356
1360
 
1357
1361
  /**
@@ -1449,97 +1453,109 @@ namespace ValidTitle {
1449
1453
  * ]
1450
1454
  * ```
1451
1455
  */
1452
- /* modified */
1453
- export type Options = {
1454
- readonly disallowedWords?: readonly string[];
1455
- readonly ignoreSpaces?: boolean;
1456
- readonly ignoreTypeOfDescribeName?: boolean;
1457
- readonly ignoreTypeOfStepName?: boolean;
1458
- readonly ignoreTypeOfTestName?: boolean;
1459
- readonly mustNotMatch?: MustMatchType | string;
1460
- readonly mustMatch?: MustMatchType | string;
1461
- };
1462
-
1463
- type MustMatchType = Readonly<
1464
- Partial<Record<'describe' | 'it' | 'test', string>>
1465
- >;
1456
+ export type MustMatchType =
1457
+ | PatternOrPatternArray
1458
+ | Readonly<{
1459
+ describe?: PatternOrPatternArray;
1460
+ test?: PatternOrPatternArray;
1461
+ step?: PatternOrPatternArray;
1462
+ }>;
1463
+
1464
+ export type PatternOrPatternArray =
1465
+ | string
1466
+ | readonly [string]
1467
+ | readonly [string, string];
1468
+
1469
+ export type Options = Readonly<{
1470
+ disallowedWords?: readonly string[];
1471
+ /** @default false */
1472
+ ignoreSpaces?: boolean;
1473
+ /** @default false */
1474
+ ignoreTypeOfDescribeName?: boolean;
1475
+ /** @default true */
1476
+ ignoreTypeOfStepName?: boolean;
1477
+ /** @default false */
1478
+ ignoreTypeOfTestName?: boolean;
1479
+ mustMatch?: MustMatchType;
1480
+ mustNotMatch?: MustMatchType;
1481
+ }>;
1466
1482
 
1467
1483
  export type RuleEntry =
1484
+ | 'off'
1468
1485
  | Linter.Severity
1469
- | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>
1470
- | 'off';
1486
+ | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
1471
1487
  }
1472
1488
 
1473
- export type EslintPlaywrightRules = {
1474
- readonly 'playwright/expect-expect': ExpectExpect.RuleEntry;
1475
- readonly 'playwright/max-expects': MaxExpects.RuleEntry;
1476
- readonly 'playwright/max-nested-describe': MaxNestedDescribe.RuleEntry;
1477
- readonly 'playwright/missing-playwright-await': MissingPlaywrightAwait.RuleEntry;
1478
- readonly 'playwright/no-commented-out-tests': NoCommentedOutTests.RuleEntry;
1479
- readonly 'playwright/no-conditional-expect': NoConditionalExpect.RuleEntry;
1480
- readonly 'playwright/no-conditional-in-test': NoConditionalInTest.RuleEntry;
1481
- readonly 'playwright/no-duplicate-hooks': NoDuplicateHooks.RuleEntry;
1482
- readonly 'playwright/no-element-handle': NoElementHandle.RuleEntry;
1483
- readonly 'playwright/no-eval': NoEval.RuleEntry;
1484
- readonly 'playwright/no-focused-test': NoFocusedTest.RuleEntry;
1485
- readonly 'playwright/no-force-option': NoForceOption.RuleEntry;
1486
- readonly 'playwright/no-get-by-title': NoGetByTitle.RuleEntry;
1487
- readonly 'playwright/no-hooks': NoHooks.RuleEntry;
1488
- readonly 'playwright/no-nested-step': NoNestedStep.RuleEntry;
1489
- readonly 'playwright/no-networkidle': NoNetworkidle.RuleEntry;
1490
- readonly 'playwright/no-nth-methods': NoNthMethods.RuleEntry;
1491
- readonly 'playwright/no-page-pause': NoPagePause.RuleEntry;
1492
- readonly 'playwright/no-raw-locators': NoRawLocators.RuleEntry;
1493
- readonly 'playwright/no-restricted-matchers': NoRestrictedMatchers.RuleEntry;
1494
- readonly 'playwright/no-skipped-test': NoSkippedTest.RuleEntry;
1495
- readonly 'playwright/no-slowed-test': NoSlowedTest.RuleEntry;
1496
- readonly 'playwright/no-standalone-expect': NoStandaloneExpect.RuleEntry;
1497
- readonly 'playwright/no-unsafe-references': NoUnsafeReferences.RuleEntry;
1498
- readonly 'playwright/no-unused-locators': NoUnusedLocators.RuleEntry;
1499
- readonly 'playwright/no-useless-await': NoUselessAwait.RuleEntry;
1500
- readonly 'playwright/no-useless-not': NoUselessNot.RuleEntry;
1501
- readonly 'playwright/no-wait-for-navigation': NoWaitForNavigation.RuleEntry;
1502
- readonly 'playwright/no-wait-for-selector': NoWaitForSelector.RuleEntry;
1503
- readonly 'playwright/no-wait-for-timeout': NoWaitForTimeout.RuleEntry;
1504
- readonly 'playwright/prefer-comparison-matcher': PreferComparisonMatcher.RuleEntry;
1505
- readonly 'playwright/prefer-equality-matcher': PreferEqualityMatcher.RuleEntry;
1506
- readonly 'playwright/prefer-hooks-in-order': PreferHooksInOrder.RuleEntry;
1507
- readonly 'playwright/prefer-hooks-on-top': PreferHooksOnTop.RuleEntry;
1508
- readonly 'playwright/prefer-locator': PreferLocator.RuleEntry;
1509
- readonly 'playwright/prefer-lowercase-title': PreferLowercaseTitle.RuleEntry;
1510
- readonly 'playwright/prefer-native-locators': PreferNativeLocators.RuleEntry;
1511
- readonly 'playwright/prefer-strict-equal': PreferStrictEqual.RuleEntry;
1512
- readonly 'playwright/prefer-to-be': PreferToBe.RuleEntry;
1513
- readonly 'playwright/prefer-to-contain': PreferToContain.RuleEntry;
1514
- readonly 'playwright/prefer-to-have-count': PreferToHaveCount.RuleEntry;
1515
- readonly 'playwright/prefer-to-have-length': PreferToHaveLength.RuleEntry;
1516
- readonly 'playwright/prefer-web-first-assertions': PreferWebFirstAssertions.RuleEntry;
1517
- readonly 'playwright/require-hook': RequireHook.RuleEntry;
1518
- readonly 'playwright/require-soft-assertions': RequireSoftAssertions.RuleEntry;
1519
- readonly 'playwright/require-to-throw-message': RequireToThrowMessage.RuleEntry;
1520
- readonly 'playwright/require-top-level-describe': RequireTopLevelDescribe.RuleEntry;
1521
- readonly 'playwright/valid-describe-callback': ValidDescribeCallback.RuleEntry;
1522
- readonly 'playwright/valid-expect': ValidExpect.RuleEntry;
1523
- readonly 'playwright/valid-expect-in-promise': ValidExpectInPromise.RuleEntry;
1524
- readonly 'playwright/valid-test-tags': ValidTestTags.RuleEntry;
1525
- readonly 'playwright/valid-title': ValidTitle.RuleEntry;
1526
- };
1527
-
1528
- export type EslintPlaywrightRulesOption = {
1529
- readonly 'playwright/expect-expect': ExpectExpect.Options;
1530
- readonly 'playwright/max-expects': MaxExpects.Options;
1531
- readonly 'playwright/max-nested-describe': MaxNestedDescribe.Options;
1532
- readonly 'playwright/missing-playwright-await': MissingPlaywrightAwait.Options;
1533
- readonly 'playwright/no-hooks': NoHooks.Options;
1534
- readonly 'playwright/no-raw-locators': NoRawLocators.Options;
1535
- readonly 'playwright/no-restricted-matchers': NoRestrictedMatchers.Options;
1536
- readonly 'playwright/no-skipped-test': NoSkippedTest.Options;
1537
- readonly 'playwright/no-slowed-test': NoSlowedTest.Options;
1538
- readonly 'playwright/prefer-lowercase-title': PreferLowercaseTitle.Options;
1539
- readonly 'playwright/prefer-native-locators': PreferNativeLocators.Options;
1540
- readonly 'playwright/require-hook': RequireHook.Options;
1541
- readonly 'playwright/require-top-level-describe': RequireTopLevelDescribe.Options;
1542
- readonly 'playwright/valid-expect': ValidExpect.Options;
1543
- readonly 'playwright/valid-test-tags': ValidTestTags.Options;
1544
- readonly 'playwright/valid-title': ValidTitle.Options;
1545
- };
1489
+ export type EslintPlaywrightRules = Readonly<{
1490
+ 'playwright/expect-expect': ExpectExpect.RuleEntry;
1491
+ 'playwright/max-expects': MaxExpects.RuleEntry;
1492
+ 'playwright/max-nested-describe': MaxNestedDescribe.RuleEntry;
1493
+ 'playwright/missing-playwright-await': MissingPlaywrightAwait.RuleEntry;
1494
+ 'playwright/no-commented-out-tests': NoCommentedOutTests.RuleEntry;
1495
+ 'playwright/no-conditional-expect': NoConditionalExpect.RuleEntry;
1496
+ 'playwright/no-conditional-in-test': NoConditionalInTest.RuleEntry;
1497
+ 'playwright/no-duplicate-hooks': NoDuplicateHooks.RuleEntry;
1498
+ 'playwright/no-element-handle': NoElementHandle.RuleEntry;
1499
+ 'playwright/no-eval': NoEval.RuleEntry;
1500
+ 'playwright/no-focused-test': NoFocusedTest.RuleEntry;
1501
+ 'playwright/no-force-option': NoForceOption.RuleEntry;
1502
+ 'playwright/no-get-by-title': NoGetByTitle.RuleEntry;
1503
+ 'playwright/no-hooks': NoHooks.RuleEntry;
1504
+ 'playwright/no-nested-step': NoNestedStep.RuleEntry;
1505
+ 'playwright/no-networkidle': NoNetworkidle.RuleEntry;
1506
+ 'playwright/no-nth-methods': NoNthMethods.RuleEntry;
1507
+ 'playwright/no-page-pause': NoPagePause.RuleEntry;
1508
+ 'playwright/no-raw-locators': NoRawLocators.RuleEntry;
1509
+ 'playwright/no-restricted-matchers': NoRestrictedMatchers.RuleEntry;
1510
+ 'playwright/no-skipped-test': NoSkippedTest.RuleEntry;
1511
+ 'playwright/no-slowed-test': NoSlowedTest.RuleEntry;
1512
+ 'playwright/no-standalone-expect': NoStandaloneExpect.RuleEntry;
1513
+ 'playwright/no-unsafe-references': NoUnsafeReferences.RuleEntry;
1514
+ 'playwright/no-unused-locators': NoUnusedLocators.RuleEntry;
1515
+ 'playwright/no-useless-await': NoUselessAwait.RuleEntry;
1516
+ 'playwright/no-useless-not': NoUselessNot.RuleEntry;
1517
+ 'playwright/no-wait-for-navigation': NoWaitForNavigation.RuleEntry;
1518
+ 'playwright/no-wait-for-selector': NoWaitForSelector.RuleEntry;
1519
+ 'playwright/no-wait-for-timeout': NoWaitForTimeout.RuleEntry;
1520
+ 'playwright/prefer-comparison-matcher': PreferComparisonMatcher.RuleEntry;
1521
+ 'playwright/prefer-equality-matcher': PreferEqualityMatcher.RuleEntry;
1522
+ 'playwright/prefer-hooks-in-order': PreferHooksInOrder.RuleEntry;
1523
+ 'playwright/prefer-hooks-on-top': PreferHooksOnTop.RuleEntry;
1524
+ 'playwright/prefer-locator': PreferLocator.RuleEntry;
1525
+ 'playwright/prefer-lowercase-title': PreferLowercaseTitle.RuleEntry;
1526
+ 'playwright/prefer-native-locators': PreferNativeLocators.RuleEntry;
1527
+ 'playwright/prefer-strict-equal': PreferStrictEqual.RuleEntry;
1528
+ 'playwright/prefer-to-be': PreferToBe.RuleEntry;
1529
+ 'playwright/prefer-to-contain': PreferToContain.RuleEntry;
1530
+ 'playwright/prefer-to-have-count': PreferToHaveCount.RuleEntry;
1531
+ 'playwright/prefer-to-have-length': PreferToHaveLength.RuleEntry;
1532
+ 'playwright/prefer-web-first-assertions': PreferWebFirstAssertions.RuleEntry;
1533
+ 'playwright/require-hook': RequireHook.RuleEntry;
1534
+ 'playwright/require-soft-assertions': RequireSoftAssertions.RuleEntry;
1535
+ 'playwright/require-to-throw-message': RequireToThrowMessage.RuleEntry;
1536
+ 'playwright/require-top-level-describe': RequireTopLevelDescribe.RuleEntry;
1537
+ 'playwright/valid-describe-callback': ValidDescribeCallback.RuleEntry;
1538
+ 'playwright/valid-expect': ValidExpect.RuleEntry;
1539
+ 'playwright/valid-expect-in-promise': ValidExpectInPromise.RuleEntry;
1540
+ 'playwright/valid-test-tags': ValidTestTags.RuleEntry;
1541
+ 'playwright/valid-title': ValidTitle.RuleEntry;
1542
+ }>;
1543
+
1544
+ export type EslintPlaywrightRulesOption = Readonly<{
1545
+ 'playwright/expect-expect': ExpectExpect.Options;
1546
+ 'playwright/max-expects': MaxExpects.Options;
1547
+ 'playwright/max-nested-describe': MaxNestedDescribe.Options;
1548
+ 'playwright/missing-playwright-await': MissingPlaywrightAwait.Options;
1549
+ 'playwright/no-hooks': NoHooks.Options;
1550
+ 'playwright/no-raw-locators': NoRawLocators.Options;
1551
+ 'playwright/no-restricted-matchers': NoRestrictedMatchers.Options;
1552
+ 'playwright/no-skipped-test': NoSkippedTest.Options;
1553
+ 'playwright/no-slowed-test': NoSlowedTest.Options;
1554
+ 'playwright/prefer-lowercase-title': PreferLowercaseTitle.Options;
1555
+ 'playwright/prefer-native-locators': PreferNativeLocators.Options;
1556
+ 'playwright/require-hook': RequireHook.Options;
1557
+ 'playwright/require-top-level-describe': RequireTopLevelDescribe.Options;
1558
+ 'playwright/valid-expect': ValidExpect.Options;
1559
+ 'playwright/valid-test-tags': ValidTestTags.Options;
1560
+ 'playwright/valid-title': ValidTitle.Options;
1561
+ }>;