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
|
@@ -16,6 +16,6 @@ namespace NoExpectToStrictEqual {
|
|
|
16
16
|
export type RuleEntry = Linter.StringSeverity;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export type EslintVitestCodingStyleRules = {
|
|
20
|
-
|
|
21
|
-
}
|
|
19
|
+
export type EslintVitestCodingStyleRules = Readonly<{
|
|
20
|
+
'vitest-coding-style/no-expect-to-strict-equal': NoExpectToStrictEqual.RuleEntry;
|
|
21
|
+
}>;
|
|
@@ -46,15 +46,17 @@ namespace ConsistentTestFilename {
|
|
|
46
46
|
* ]
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
|
-
export type Options = {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
export type Options = Readonly<{
|
|
50
|
+
/** @default '.*\.test\.[tj]sx?$' */
|
|
51
|
+
pattern?: string;
|
|
52
|
+
/** @default '.*\.(test|spec)\.[tj]sx?$' */
|
|
53
|
+
allTestPattern?: string;
|
|
54
|
+
}>;
|
|
53
55
|
|
|
54
56
|
export type RuleEntry =
|
|
57
|
+
| 'off'
|
|
55
58
|
| Linter.Severity
|
|
56
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
57
|
-
| 'off';
|
|
59
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
/**
|
|
@@ -100,15 +102,15 @@ namespace ConsistentTestIt {
|
|
|
100
102
|
* ]
|
|
101
103
|
* ```
|
|
102
104
|
*/
|
|
103
|
-
export type Options = {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
105
|
+
export type Options = Readonly<{
|
|
106
|
+
fn?: 'test' | 'it';
|
|
107
|
+
withinDescribe?: 'test' | 'it';
|
|
108
|
+
}>;
|
|
107
109
|
|
|
108
110
|
export type RuleEntry =
|
|
111
|
+
| 'off'
|
|
109
112
|
| Linter.Severity
|
|
110
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
111
|
-
| 'off';
|
|
113
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
/**
|
|
@@ -148,14 +150,15 @@ namespace ConsistentVitestVi {
|
|
|
148
150
|
* ]
|
|
149
151
|
* ```
|
|
150
152
|
*/
|
|
151
|
-
export type Options = {
|
|
152
|
-
|
|
153
|
-
|
|
153
|
+
export type Options = Readonly<{
|
|
154
|
+
/** @default 'vi' */
|
|
155
|
+
fn?: 'vi' | 'vitest';
|
|
156
|
+
}>;
|
|
154
157
|
|
|
155
158
|
export type RuleEntry =
|
|
159
|
+
| 'off'
|
|
156
160
|
| Linter.Severity
|
|
157
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
158
|
-
| 'off';
|
|
161
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
159
162
|
}
|
|
160
163
|
|
|
161
164
|
/**
|
|
@@ -198,15 +201,15 @@ namespace ExpectExpect {
|
|
|
198
201
|
* ]
|
|
199
202
|
* ```
|
|
200
203
|
*/
|
|
201
|
-
export type Options = {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
204
|
+
export type Options = Readonly<{
|
|
205
|
+
assertFunctionNames?: readonly string[];
|
|
206
|
+
additionalTestBlockFunctions?: readonly string[];
|
|
207
|
+
}>;
|
|
205
208
|
|
|
206
209
|
export type RuleEntry =
|
|
210
|
+
| 'off'
|
|
207
211
|
| Linter.Severity
|
|
208
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
209
|
-
| 'off';
|
|
212
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
210
213
|
}
|
|
211
214
|
|
|
212
215
|
/**
|
|
@@ -258,14 +261,14 @@ namespace MaxExpects {
|
|
|
258
261
|
* ]
|
|
259
262
|
* ```
|
|
260
263
|
*/
|
|
261
|
-
export type Options = {
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
+
export type Options = Readonly<{
|
|
265
|
+
max?: number;
|
|
266
|
+
}>;
|
|
264
267
|
|
|
265
268
|
export type RuleEntry =
|
|
269
|
+
| 'off'
|
|
266
270
|
| Linter.Severity
|
|
267
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
268
|
-
| 'off';
|
|
271
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
269
272
|
}
|
|
270
273
|
|
|
271
274
|
/**
|
|
@@ -299,14 +302,14 @@ namespace MaxNestedDescribe {
|
|
|
299
302
|
* ]
|
|
300
303
|
* ```
|
|
301
304
|
*/
|
|
302
|
-
export type Options = {
|
|
303
|
-
|
|
304
|
-
}
|
|
305
|
+
export type Options = Readonly<{
|
|
306
|
+
max?: number;
|
|
307
|
+
}>;
|
|
305
308
|
|
|
306
309
|
export type RuleEntry =
|
|
310
|
+
| 'off'
|
|
307
311
|
| Linter.Severity
|
|
308
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
309
|
-
| 'off';
|
|
312
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
310
313
|
}
|
|
311
314
|
|
|
312
315
|
/**
|
|
@@ -485,14 +488,15 @@ namespace NoFocusedTests {
|
|
|
485
488
|
* ]
|
|
486
489
|
* ```
|
|
487
490
|
*/
|
|
488
|
-
export type Options = {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
+
export type Options = Readonly<{
|
|
492
|
+
/** @default true */
|
|
493
|
+
fixable?: boolean;
|
|
494
|
+
}>;
|
|
491
495
|
|
|
492
496
|
export type RuleEntry =
|
|
497
|
+
| 'off'
|
|
493
498
|
| Linter.Severity
|
|
494
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
495
|
-
| 'off';
|
|
499
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
496
500
|
}
|
|
497
501
|
|
|
498
502
|
/**
|
|
@@ -538,20 +542,15 @@ namespace NoHooks {
|
|
|
538
542
|
* ]
|
|
539
543
|
* ```
|
|
540
544
|
*/
|
|
541
|
-
export type Options = {
|
|
545
|
+
export type Options = Readonly<{
|
|
542
546
|
/** This array option controls which Vitest hooks are checked by this rule. */
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
| 'afterEach'
|
|
546
|
-
| 'beforeAll'
|
|
547
|
-
| 'beforeEach'
|
|
548
|
-
)[];
|
|
549
|
-
};
|
|
547
|
+
allow?: readonly ('beforeAll' | 'beforeEach' | 'afterAll' | 'afterEach')[];
|
|
548
|
+
}>;
|
|
550
549
|
|
|
551
550
|
export type RuleEntry =
|
|
551
|
+
| 'off'
|
|
552
552
|
| Linter.Severity
|
|
553
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
554
|
-
| 'off';
|
|
553
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
555
554
|
}
|
|
556
555
|
|
|
557
556
|
/**
|
|
@@ -666,16 +665,16 @@ namespace NoLargeSnapshots {
|
|
|
666
665
|
* ]
|
|
667
666
|
* ```
|
|
668
667
|
*/
|
|
669
|
-
export type Options = {
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}
|
|
668
|
+
export type Options = Readonly<{
|
|
669
|
+
maxSize?: number;
|
|
670
|
+
inlineMaxSize?: number;
|
|
671
|
+
allowedSnapshots?: Readonly<Record<string, readonly unknown[]>>;
|
|
672
|
+
}>;
|
|
674
673
|
|
|
675
674
|
export type RuleEntry =
|
|
675
|
+
| 'off'
|
|
676
676
|
| Linter.Severity
|
|
677
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
678
|
-
| 'off';
|
|
677
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
679
678
|
}
|
|
680
679
|
|
|
681
680
|
/**
|
|
@@ -729,9 +728,9 @@ namespace NoRestrictedMatchers {
|
|
|
729
728
|
export type Options = Readonly<Record<string, string | null>>;
|
|
730
729
|
|
|
731
730
|
export type RuleEntry =
|
|
731
|
+
| 'off'
|
|
732
732
|
| Linter.Severity
|
|
733
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
734
|
-
| 'off';
|
|
733
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
735
734
|
}
|
|
736
735
|
|
|
737
736
|
/**
|
|
@@ -768,9 +767,9 @@ namespace NoRestrictedViMethods {
|
|
|
768
767
|
export type Options = Readonly<Record<string, string | null>>;
|
|
769
768
|
|
|
770
769
|
export type RuleEntry =
|
|
770
|
+
| 'off'
|
|
771
771
|
| Linter.Severity
|
|
772
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
773
|
-
| 'off';
|
|
772
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
774
773
|
}
|
|
775
774
|
|
|
776
775
|
/**
|
|
@@ -807,14 +806,14 @@ namespace NoStandaloneExpect {
|
|
|
807
806
|
* ]
|
|
808
807
|
* ```
|
|
809
808
|
*/
|
|
810
|
-
export type Options = {
|
|
811
|
-
|
|
812
|
-
}
|
|
809
|
+
export type Options = Readonly<{
|
|
810
|
+
additionalTestBlockFunctions?: readonly string[];
|
|
811
|
+
}>;
|
|
813
812
|
|
|
814
813
|
export type RuleEntry =
|
|
814
|
+
| 'off'
|
|
815
815
|
| Linter.Severity
|
|
816
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
817
|
-
| 'off';
|
|
816
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
818
817
|
}
|
|
819
818
|
|
|
820
819
|
/**
|
|
@@ -1169,16 +1168,16 @@ namespace PreferExpectAssertions {
|
|
|
1169
1168
|
* ]
|
|
1170
1169
|
* ```
|
|
1171
1170
|
*/
|
|
1172
|
-
export type Options = {
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
}
|
|
1171
|
+
export type Options = Readonly<{
|
|
1172
|
+
onlyFunctionsWithAsyncKeyword?: boolean;
|
|
1173
|
+
onlyFunctionsWithExpectInLoop?: boolean;
|
|
1174
|
+
onlyFunctionsWithExpectInCallback?: boolean;
|
|
1175
|
+
}>;
|
|
1177
1176
|
|
|
1178
1177
|
export type RuleEntry =
|
|
1178
|
+
| 'off'
|
|
1179
1179
|
| Linter.Severity
|
|
1180
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1181
|
-
| 'off';
|
|
1180
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1182
1181
|
}
|
|
1183
1182
|
|
|
1184
1183
|
/**
|
|
@@ -1341,17 +1340,19 @@ namespace PreferLowercaseTitle {
|
|
|
1341
1340
|
* ]
|
|
1342
1341
|
* ```
|
|
1343
1342
|
*/
|
|
1344
|
-
export type Options = {
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1343
|
+
export type Options = Readonly<{
|
|
1344
|
+
ignore?: readonly ('describe' | 'test' | 'it')[];
|
|
1345
|
+
allowedPrefixes?: readonly string[];
|
|
1346
|
+
/** @default false */
|
|
1347
|
+
ignoreTopLevelDescribe?: boolean;
|
|
1348
|
+
/** @default true */
|
|
1349
|
+
lowercaseFirstCharacterOnly?: boolean;
|
|
1350
|
+
}>;
|
|
1350
1351
|
|
|
1351
1352
|
export type RuleEntry =
|
|
1353
|
+
| 'off'
|
|
1352
1354
|
| Linter.Severity
|
|
1353
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1354
|
-
| 'off';
|
|
1355
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1355
1356
|
}
|
|
1356
1357
|
|
|
1357
1358
|
/**
|
|
@@ -1404,9 +1405,9 @@ namespace PreferSnapshotHint {
|
|
|
1404
1405
|
export type Options = 'always' | 'multi';
|
|
1405
1406
|
|
|
1406
1407
|
export type RuleEntry =
|
|
1408
|
+
| 'off'
|
|
1407
1409
|
| Linter.Severity
|
|
1408
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1409
|
-
| 'off';
|
|
1410
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1410
1411
|
}
|
|
1411
1412
|
|
|
1412
1413
|
/**
|
|
@@ -1661,14 +1662,14 @@ namespace RequireHook {
|
|
|
1661
1662
|
* ]
|
|
1662
1663
|
* ```
|
|
1663
1664
|
*/
|
|
1664
|
-
export type Options = {
|
|
1665
|
-
|
|
1666
|
-
}
|
|
1665
|
+
export type Options = Readonly<{
|
|
1666
|
+
allowedFunctionCalls?: readonly string[];
|
|
1667
|
+
}>;
|
|
1667
1668
|
|
|
1668
1669
|
export type RuleEntry =
|
|
1670
|
+
| 'off'
|
|
1669
1671
|
| Linter.Severity
|
|
1670
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1671
|
-
| 'off';
|
|
1672
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1672
1673
|
}
|
|
1673
1674
|
|
|
1674
1675
|
/**
|
|
@@ -1720,14 +1721,14 @@ namespace RequireMockTypeParameters {
|
|
|
1720
1721
|
* ]
|
|
1721
1722
|
* ```
|
|
1722
1723
|
*/
|
|
1723
|
-
export type Options = {
|
|
1724
|
-
|
|
1725
|
-
}
|
|
1724
|
+
export type Options = Readonly<{
|
|
1725
|
+
checkImportFunctions?: boolean;
|
|
1726
|
+
}>;
|
|
1726
1727
|
|
|
1727
1728
|
export type RuleEntry =
|
|
1729
|
+
| 'off'
|
|
1728
1730
|
| Linter.Severity
|
|
1729
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1730
|
-
| 'off';
|
|
1731
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1731
1732
|
}
|
|
1732
1733
|
|
|
1733
1734
|
/**
|
|
@@ -1780,14 +1781,15 @@ namespace RequireTopLevelDescribe {
|
|
|
1780
1781
|
* ]
|
|
1781
1782
|
* ```
|
|
1782
1783
|
*/
|
|
1783
|
-
export type Options = {
|
|
1784
|
-
|
|
1785
|
-
|
|
1784
|
+
export type Options = Readonly<{
|
|
1785
|
+
/** @default null */
|
|
1786
|
+
maxNumberOfTopLevelDescribes?: number;
|
|
1787
|
+
}>;
|
|
1786
1788
|
|
|
1787
1789
|
export type RuleEntry =
|
|
1790
|
+
| 'off'
|
|
1788
1791
|
| Linter.Severity
|
|
1789
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1790
|
-
| 'off';
|
|
1792
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1791
1793
|
}
|
|
1792
1794
|
|
|
1793
1795
|
/**
|
|
@@ -1870,17 +1872,18 @@ namespace ValidExpect {
|
|
|
1870
1872
|
* ]
|
|
1871
1873
|
* ```
|
|
1872
1874
|
*/
|
|
1873
|
-
export type Options = {
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
readonly
|
|
1877
|
-
|
|
1878
|
-
|
|
1875
|
+
export type Options = Readonly<{
|
|
1876
|
+
/** @default false */
|
|
1877
|
+
alwaysAwait?: boolean;
|
|
1878
|
+
asyncMatchers?: readonly string[];
|
|
1879
|
+
minArgs?: number;
|
|
1880
|
+
maxArgs?: number;
|
|
1881
|
+
}>;
|
|
1879
1882
|
|
|
1880
1883
|
export type RuleEntry =
|
|
1884
|
+
| 'off'
|
|
1881
1885
|
| Linter.Severity
|
|
1882
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1883
|
-
| 'off';
|
|
1886
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1884
1887
|
}
|
|
1885
1888
|
|
|
1886
1889
|
/**
|
|
@@ -1971,23 +1974,33 @@ namespace ValidTitle {
|
|
|
1971
1974
|
* ]
|
|
1972
1975
|
* ```
|
|
1973
1976
|
*/
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1977
|
+
export type MustMatchType =
|
|
1978
|
+
| PatternOrPatternArray
|
|
1979
|
+
| Readonly<{
|
|
1980
|
+
describe?: PatternOrPatternArray;
|
|
1981
|
+
test?: PatternOrPatternArray;
|
|
1982
|
+
it?: PatternOrPatternArray;
|
|
1983
|
+
}>;
|
|
1984
|
+
|
|
1985
|
+
export type PatternOrPatternArray =
|
|
1986
|
+
| string
|
|
1987
|
+
| readonly [string]
|
|
1988
|
+
| readonly [string, string];
|
|
1989
|
+
|
|
1990
|
+
export type Options = Readonly<{
|
|
1991
|
+
/** @default false */
|
|
1992
|
+
ignoreTypeOfDescribeName?: boolean;
|
|
1993
|
+
/** @default false */
|
|
1994
|
+
allowArguments?: boolean;
|
|
1995
|
+
disallowedWords?: readonly string[];
|
|
1996
|
+
mustMatch?: MustMatchType;
|
|
1997
|
+
mustNotMatch?: MustMatchType;
|
|
1998
|
+
}>;
|
|
1986
1999
|
|
|
1987
2000
|
export type RuleEntry =
|
|
2001
|
+
| 'off'
|
|
1988
2002
|
| Linter.Severity
|
|
1989
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1990
|
-
| 'off';
|
|
2003
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1991
2004
|
}
|
|
1992
2005
|
|
|
1993
2006
|
/**
|
|
@@ -2007,106 +2020,106 @@ namespace WarnTodo {
|
|
|
2007
2020
|
export type RuleEntry = Linter.StringSeverity;
|
|
2008
2021
|
}
|
|
2009
2022
|
|
|
2010
|
-
export type EslintVitestRules = {
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2023
|
+
export type EslintVitestRules = Readonly<{
|
|
2024
|
+
'vitest/consistent-test-filename': ConsistentTestFilename.RuleEntry;
|
|
2025
|
+
'vitest/consistent-test-it': ConsistentTestIt.RuleEntry;
|
|
2026
|
+
'vitest/consistent-vitest-vi': ConsistentVitestVi.RuleEntry;
|
|
2027
|
+
'vitest/expect-expect': ExpectExpect.RuleEntry;
|
|
2028
|
+
'vitest/hoisted-apis-on-top': HoistedApisOnTop.RuleEntry;
|
|
2029
|
+
'vitest/max-expects': MaxExpects.RuleEntry;
|
|
2030
|
+
'vitest/max-nested-describe': MaxNestedDescribe.RuleEntry;
|
|
2031
|
+
'vitest/no-alias-methods': NoAliasMethods.RuleEntry;
|
|
2032
|
+
'vitest/no-commented-out-tests': NoCommentedOutTests.RuleEntry;
|
|
2033
|
+
'vitest/no-conditional-expect': NoConditionalExpect.RuleEntry;
|
|
2034
|
+
'vitest/no-conditional-in-test': NoConditionalInTest.RuleEntry;
|
|
2035
|
+
'vitest/no-conditional-tests': NoConditionalTests.RuleEntry;
|
|
2036
|
+
'vitest/no-disabled-tests': NoDisabledTests.RuleEntry;
|
|
2037
|
+
'vitest/no-duplicate-hooks': NoDuplicateHooks.RuleEntry;
|
|
2038
|
+
'vitest/no-focused-tests': NoFocusedTests.RuleEntry;
|
|
2039
|
+
'vitest/no-hooks': NoHooks.RuleEntry;
|
|
2040
|
+
'vitest/no-identical-title': NoIdenticalTitle.RuleEntry;
|
|
2041
|
+
'vitest/no-import-node-test': NoImportNodeTest.RuleEntry;
|
|
2042
|
+
'vitest/no-importing-vitest-globals': NoImportingVitestGlobals.RuleEntry;
|
|
2043
|
+
'vitest/no-interpolation-in-snapshots': NoInterpolationInSnapshots.RuleEntry;
|
|
2044
|
+
'vitest/no-large-snapshots': NoLargeSnapshots.RuleEntry;
|
|
2045
|
+
'vitest/no-mocks-import': NoMocksImport.RuleEntry;
|
|
2046
|
+
'vitest/no-restricted-matchers': NoRestrictedMatchers.RuleEntry;
|
|
2047
|
+
'vitest/no-restricted-vi-methods': NoRestrictedViMethods.RuleEntry;
|
|
2048
|
+
'vitest/no-standalone-expect': NoStandaloneExpect.RuleEntry;
|
|
2049
|
+
'vitest/no-test-prefixes': NoTestPrefixes.RuleEntry;
|
|
2050
|
+
'vitest/no-test-return-statement': NoTestReturnStatement.RuleEntry;
|
|
2051
|
+
'vitest/padding-around-after-all-blocks': PaddingAroundAfterAllBlocks.RuleEntry;
|
|
2052
|
+
'vitest/padding-around-after-each-blocks': PaddingAroundAfterEachBlocks.RuleEntry;
|
|
2053
|
+
'vitest/padding-around-all': PaddingAroundAll.RuleEntry;
|
|
2054
|
+
'vitest/padding-around-before-all-blocks': PaddingAroundBeforeAllBlocks.RuleEntry;
|
|
2055
|
+
'vitest/padding-around-before-each-blocks': PaddingAroundBeforeEachBlocks.RuleEntry;
|
|
2056
|
+
'vitest/padding-around-describe-blocks': PaddingAroundDescribeBlocks.RuleEntry;
|
|
2057
|
+
'vitest/padding-around-expect-groups': PaddingAroundExpectGroups.RuleEntry;
|
|
2058
|
+
'vitest/padding-around-test-blocks': PaddingAroundTestBlocks.RuleEntry;
|
|
2059
|
+
'vitest/prefer-called-exactly-once-with': PreferCalledExactlyOnceWith.RuleEntry;
|
|
2060
|
+
'vitest/prefer-called-once': PreferCalledOnce.RuleEntry;
|
|
2061
|
+
'vitest/prefer-called-times': PreferCalledTimes.RuleEntry;
|
|
2062
|
+
'vitest/prefer-called-with': PreferCalledWith.RuleEntry;
|
|
2063
|
+
'vitest/prefer-comparison-matcher': PreferComparisonMatcher.RuleEntry;
|
|
2064
|
+
'vitest/prefer-describe-function-title': PreferDescribeFunctionTitle.RuleEntry;
|
|
2065
|
+
'vitest/prefer-each': PreferEach.RuleEntry;
|
|
2066
|
+
'vitest/prefer-equality-matcher': PreferEqualityMatcher.RuleEntry;
|
|
2067
|
+
'vitest/prefer-expect-assertions': PreferExpectAssertions.RuleEntry;
|
|
2068
|
+
'vitest/prefer-expect-resolves': PreferExpectResolves.RuleEntry;
|
|
2069
|
+
'vitest/prefer-expect-type-of': PreferExpectTypeOf.RuleEntry;
|
|
2070
|
+
'vitest/prefer-hooks-in-order': PreferHooksInOrder.RuleEntry;
|
|
2071
|
+
'vitest/prefer-hooks-on-top': PreferHooksOnTop.RuleEntry;
|
|
2072
|
+
'vitest/prefer-import-in-mock': PreferImportInMock.RuleEntry;
|
|
2073
|
+
'vitest/prefer-importing-vitest-globals': PreferImportingVitestGlobals.RuleEntry;
|
|
2074
|
+
'vitest/prefer-lowercase-title': PreferLowercaseTitle.RuleEntry;
|
|
2075
|
+
'vitest/prefer-mock-promise-shorthand': PreferMockPromiseShorthand.RuleEntry;
|
|
2076
|
+
'vitest/prefer-snapshot-hint': PreferSnapshotHint.RuleEntry;
|
|
2077
|
+
'vitest/prefer-spy-on': PreferSpyOn.RuleEntry;
|
|
2078
|
+
'vitest/prefer-strict-boolean-matchers': PreferStrictBooleanMatchers.RuleEntry;
|
|
2079
|
+
'vitest/prefer-strict-equal': PreferStrictEqual.RuleEntry;
|
|
2080
|
+
'vitest/prefer-to-be-falsy': PreferToBeFalsy.RuleEntry;
|
|
2081
|
+
'vitest/prefer-to-be-object': PreferToBeObject.RuleEntry;
|
|
2082
|
+
'vitest/prefer-to-be-truthy': PreferToBeTruthy.RuleEntry;
|
|
2083
|
+
'vitest/prefer-to-be': PreferToBe.RuleEntry;
|
|
2084
|
+
'vitest/prefer-to-contain': PreferToContain.RuleEntry;
|
|
2085
|
+
'vitest/prefer-to-have-length': PreferToHaveLength.RuleEntry;
|
|
2086
|
+
'vitest/prefer-todo': PreferTodo.RuleEntry;
|
|
2087
|
+
'vitest/prefer-vi-mocked': PreferViMocked.RuleEntry;
|
|
2088
|
+
'vitest/require-awaited-expect-poll': RequireAwaitedExpectPoll.RuleEntry;
|
|
2089
|
+
'vitest/require-hook': RequireHook.RuleEntry;
|
|
2090
|
+
'vitest/require-local-test-context-for-concurrent-snapshots': RequireLocalTestContextForConcurrentSnapshots.RuleEntry;
|
|
2091
|
+
'vitest/require-mock-type-parameters': RequireMockTypeParameters.RuleEntry;
|
|
2092
|
+
'vitest/require-to-throw-message': RequireToThrowMessage.RuleEntry;
|
|
2093
|
+
'vitest/require-top-level-describe': RequireTopLevelDescribe.RuleEntry;
|
|
2094
|
+
'vitest/valid-describe-callback': ValidDescribeCallback.RuleEntry;
|
|
2095
|
+
'vitest/valid-expect-in-promise': ValidExpectInPromise.RuleEntry;
|
|
2096
|
+
'vitest/valid-expect': ValidExpect.RuleEntry;
|
|
2097
|
+
'vitest/valid-title': ValidTitle.RuleEntry;
|
|
2098
|
+
'vitest/warn-todo': WarnTodo.RuleEntry;
|
|
2086
2099
|
|
|
2087
2100
|
// deprecated
|
|
2088
|
-
|
|
2089
|
-
}
|
|
2090
|
-
|
|
2091
|
-
export type EslintVitestRulesOption = {
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
}
|
|
2101
|
+
'vitest/no-done-callback': NoDoneCallback.RuleEntry;
|
|
2102
|
+
}>;
|
|
2103
|
+
|
|
2104
|
+
export type EslintVitestRulesOption = Readonly<{
|
|
2105
|
+
'vitest/consistent-test-filename': ConsistentTestFilename.Options;
|
|
2106
|
+
'vitest/consistent-test-it': ConsistentTestIt.Options;
|
|
2107
|
+
'vitest/consistent-vitest-vi': ConsistentVitestVi.Options;
|
|
2108
|
+
'vitest/expect-expect': ExpectExpect.Options;
|
|
2109
|
+
'vitest/max-expects': MaxExpects.Options;
|
|
2110
|
+
'vitest/max-nested-describe': MaxNestedDescribe.Options;
|
|
2111
|
+
'vitest/no-focused-tests': NoFocusedTests.Options;
|
|
2112
|
+
'vitest/no-hooks': NoHooks.Options;
|
|
2113
|
+
'vitest/no-large-snapshots': NoLargeSnapshots.Options;
|
|
2114
|
+
'vitest/no-restricted-matchers': NoRestrictedMatchers.Options;
|
|
2115
|
+
'vitest/no-restricted-vi-methods': NoRestrictedViMethods.Options;
|
|
2116
|
+
'vitest/no-standalone-expect': NoStandaloneExpect.Options;
|
|
2117
|
+
'vitest/prefer-expect-assertions': PreferExpectAssertions.Options;
|
|
2118
|
+
'vitest/prefer-lowercase-title': PreferLowercaseTitle.Options;
|
|
2119
|
+
'vitest/prefer-snapshot-hint': PreferSnapshotHint.Options;
|
|
2120
|
+
'vitest/require-hook': RequireHook.Options;
|
|
2121
|
+
'vitest/require-mock-type-parameters': RequireMockTypeParameters.Options;
|
|
2122
|
+
'vitest/require-top-level-describe': RequireTopLevelDescribe.Options;
|
|
2123
|
+
'vitest/valid-expect': ValidExpect.Options;
|
|
2124
|
+
'vitest/valid-title': ValidTitle.Options;
|
|
2125
|
+
}>;
|