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.
- package/dist/rules/typescript-eslint-rules.d.mts +1 -0
- package/dist/rules/typescript-eslint-rules.d.mts.map +1 -1
- package/dist/rules/typescript-eslint-rules.mjs +1 -0
- 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 +2 -0
- 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
|
@@ -49,15 +49,15 @@ namespace ConsistentTestIt {
|
|
|
49
49
|
* ]
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
|
-
export type Options = {
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
104
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
511
|
-
|
|
512
|
-
|
|
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
|
-
|
|
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
|
-
|
|
932
|
-
|
|
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
|
-
|
|
997
|
-
|
|
998
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1579
|
-
|
|
1580
|
-
readonly
|
|
1581
|
-
|
|
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
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
type
|
|
1689
|
-
|
|
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
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
export type EslintJestRulesOption = {
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
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
|
+
}>;
|