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.
- package/dist/rules/typescript-eslint-rules.d.mts +3 -1
- package/dist/rules/typescript-eslint-rules.d.mts.map +1 -1
- package/dist/rules/typescript-eslint-rules.mjs +8 -1
- package/dist/rules/typescript-eslint-rules.mjs.map +1 -1
- package/dist/types/rules/eslint-array-func-rules.d.mts +8 -8
- package/dist/types/rules/eslint-array-func-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-cypress-rules.d.mts +27 -23
- package/dist/types/rules/eslint-cypress-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-functional-rules.d.mts +426 -425
- package/dist/types/rules/eslint-functional-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-import-rules.d.mts +343 -325
- package/dist/types/rules/eslint-import-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-jest-rules.d.mts +183 -171
- package/dist/types/rules/eslint-jest-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-jsx-a11y-rules.d.mts +211 -209
- package/dist/types/rules/eslint-jsx-a11y-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-math-rules.d.mts +49 -48
- package/dist/types/rules/eslint-math-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-n-rules.d.mts +296 -293
- package/dist/types/rules/eslint-n-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-playwright-rules.d.mts +161 -149
- package/dist/types/rules/eslint-playwright-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-plugin-rules.d.mts +95 -85
- package/dist/types/rules/eslint-plugin-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-plugin-sort-destructure-keys-rules.d.mts +10 -10
- package/dist/types/rules/eslint-plugin-sort-destructure-keys-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts +23 -16
- package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-promise-rules.d.mts +68 -68
- package/dist/types/rules/eslint-promise-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-coding-style-rules.d.mts +29 -29
- package/dist/types/rules/eslint-react-coding-style-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-hooks-rules.d.mts +100 -100
- package/dist/types/rules/eslint-react-hooks-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-perf-rules.d.mts +28 -28
- package/dist/types/rules/eslint-react-perf-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-refresh-rules.d.mts +13 -13
- package/dist/types/rules/eslint-react-refresh-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-rules.d.mts +646 -620
- package/dist/types/rules/eslint-react-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-rules.d.mts +1022 -1016
- package/dist/types/rules/eslint-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-security-rules.d.mts +16 -16
- package/dist/types/rules/eslint-security-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-strict-dependencies-rules.d.mts +18 -18
- package/dist/types/rules/eslint-strict-dependencies-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-stylistic-rules.d.mts +1440 -1400
- package/dist/types/rules/eslint-stylistic-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-testing-library-rules.d.mts +110 -105
- package/dist/types/rules/eslint-testing-library-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-total-functions-rules.d.mts +16 -16
- package/dist/types/rules/eslint-total-functions-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-tree-shakable-rules.d.mts +3 -3
- package/dist/types/rules/eslint-tree-shakable-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-ts-restrictions-rules.d.mts +30 -30
- package/dist/types/rules/eslint-ts-restrictions-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-unicorn-rules.d.mts +398 -392
- package/dist/types/rules/eslint-unicorn-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts +3 -3
- package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-vitest-rules.d.mts +204 -190
- package/dist/types/rules/eslint-vitest-rules.d.mts.map +1 -1
- package/dist/types/rules/typescript-eslint-rules.d.mts +1107 -1077
- package/dist/types/rules/typescript-eslint-rules.d.mts.map +1 -1
- package/package.json +23 -23
- package/src/rules/typescript-eslint-rules.mts +9 -1
- package/src/types/rules/eslint-array-func-rules.mts +8 -8
- package/src/types/rules/eslint-cypress-rules.mts +28 -24
- package/src/types/rules/eslint-functional-rules.mts +581 -576
- package/src/types/rules/eslint-import-rules.mts +403 -384
- package/src/types/rules/eslint-jest-rules.mts +212 -196
- package/src/types/rules/eslint-jsx-a11y-rules.mts +252 -250
- package/src/types/rules/eslint-math-rules.mts +53 -52
- package/src/types/rules/eslint-n-rules.mts +1762 -1757
- package/src/types/rules/eslint-playwright-rules.mts +187 -171
- package/src/types/rules/eslint-plugin-rules.mts +109 -99
- package/src/types/rules/eslint-plugin-sort-destructure-keys-rules.mts +11 -11
- package/src/types/rules/eslint-prefer-arrow-functions-rules.mts +24 -17
- package/src/types/rules/eslint-promise-rules.mts +76 -76
- package/src/types/rules/eslint-react-coding-style-rules.mts +32 -32
- package/src/types/rules/eslint-react-hooks-rules.mts +129 -129
- package/src/types/rules/eslint-react-perf-rules.mts +32 -32
- package/src/types/rules/eslint-react-refresh-rules.mts +14 -14
- package/src/types/rules/eslint-react-rules.mts +787 -792
- package/src/types/rules/eslint-rules.mts +1180 -1173
- package/src/types/rules/eslint-security-rules.mts +16 -16
- package/src/types/rules/eslint-strict-dependencies-rules.mts +19 -19
- package/src/types/rules/eslint-stylistic-rules.mts +1767 -1807
- package/src/types/rules/eslint-testing-library-rules.mts +128 -124
- package/src/types/rules/eslint-total-functions-rules.mts +16 -16
- package/src/types/rules/eslint-tree-shakable-rules.mts +3 -3
- package/src/types/rules/eslint-ts-restrictions-rules.mts +34 -33
- package/src/types/rules/eslint-unicorn-rules.mts +447 -436
- package/src/types/rules/eslint-vitest-coding-style-rules.mts +3 -3
- package/src/types/rules/eslint-vitest-rules.mts +232 -219
- 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
908
|
-
|
|
909
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1246
|
-
|
|
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
|
-
|
|
1340
|
+
export type Options = Readonly<{
|
|
1341
|
+
allowedTags?: readonly (
|
|
1338
1342
|
| string
|
|
1339
|
-
| {
|
|
1340
|
-
|
|
1341
|
-
}
|
|
1343
|
+
| Readonly<{
|
|
1344
|
+
source?: string;
|
|
1345
|
+
}>
|
|
1342
1346
|
)[];
|
|
1343
|
-
|
|
1347
|
+
disallowedTags?: readonly (
|
|
1344
1348
|
| string
|
|
1345
|
-
| {
|
|
1346
|
-
|
|
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
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
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
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
export type EslintPlaywrightRulesOption = {
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
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
|
+
}>;
|