@vitest/eslint-plugin 1.2.7 → 1.3.0
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/README.md +97 -91
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +221 -106
- package/dist/index.d.mts +221 -106
- package/dist/index.mjs +4 -4
- package/package.json +6 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
1
|
+
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
|
|
3
|
+
interface PluginDocs {
|
|
4
|
+
recommended?: boolean;
|
|
5
|
+
requiresTypeChecking?: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
type MESSAGE_IDS$2 = 'noImportingVitestGlobals' | 'noRequiringVitestGlobals';
|
|
9
|
+
|
|
10
|
+
type MESSAGE_IDS$1 = 'useToStrictEqual' | 'suggestReplaceWithStrictEqual';
|
|
11
|
+
|
|
12
|
+
type MESSAGE_IDS = 'tooManyArgs' | 'notEnoughArgs' | 'modifierUnknown' | 'matcherNotFound' | 'matcherNotCalled' | 'asyncMustBeAwaited' | 'promisesWithAsyncAssertionsMustBeAwaited';
|
|
13
|
+
|
|
14
|
+
type MessageIds$2 = 'noDoneCallback' | 'suggestWrappingInPromise' | 'useAwaitInsteadOfCallback';
|
|
15
|
+
|
|
16
|
+
type MESSAGE_ID$2 = 'missingFunction' | 'pending' | 'pendingSuite' | 'pendingTest' | 'disabledSuite' | 'disabledTest';
|
|
17
|
+
|
|
18
|
+
type Options$3 = [
|
|
19
|
+
{
|
|
20
|
+
max: number;
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
type MESSAGE_ID$1 = 'restrictedViMethod' | 'restrictedViMethodWithMessage';
|
|
25
|
+
type Options$2 = [Record<string, string | null>];
|
|
26
|
+
|
|
27
|
+
declare enum UtilName {
|
|
28
|
+
vi = "vi",
|
|
29
|
+
vitest = "vitest"
|
|
30
|
+
}
|
|
31
|
+
declare enum TestCaseName {
|
|
32
|
+
fit = "fit",
|
|
33
|
+
it = "it",
|
|
34
|
+
test = "test",
|
|
35
|
+
xit = "xit",
|
|
36
|
+
xtest = "xtest",
|
|
37
|
+
bench = "bench"
|
|
38
|
+
}
|
|
39
|
+
declare enum HookName {
|
|
40
|
+
beforeAll = "beforeAll",
|
|
41
|
+
beforeEach = "beforeEach",
|
|
42
|
+
afterAll = "afterAll",
|
|
43
|
+
afterEach = "afterEach"
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type MessageIds$1 = 'consistentMethod' | 'consistentMethodWithinDescribe';
|
|
47
|
+
|
|
48
|
+
type Options$1 = [
|
|
49
|
+
Partial<{
|
|
50
|
+
fixable: boolean;
|
|
51
|
+
}>
|
|
52
|
+
];
|
|
53
|
+
|
|
54
|
+
type MESSAGE_ID = 'multipleTestTitle' | 'multipleDescribeTitle';
|
|
55
|
+
|
|
56
|
+
type Options = [
|
|
57
|
+
{
|
|
58
|
+
max: number;
|
|
59
|
+
}
|
|
60
|
+
];
|
|
61
|
+
|
|
62
|
+
type MessageIds = 'lowerCaseTitle' | 'fullyLowerCaseTitle';
|
|
3
63
|
|
|
4
64
|
declare const plugin: {
|
|
5
65
|
meta: {
|
|
@@ -7,95 +67,148 @@ declare const plugin: {
|
|
|
7
67
|
version: string;
|
|
8
68
|
};
|
|
9
69
|
rules: {
|
|
10
|
-
"prefer-lowercase-title":
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"no-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"no-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"no-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"prefer-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"prefer-
|
|
70
|
+
"prefer-lowercase-title": _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds, [Partial<{
|
|
71
|
+
ignore: string[];
|
|
72
|
+
allowedPrefixes: string[];
|
|
73
|
+
ignoreTopLevelDescribe: boolean;
|
|
74
|
+
lowercaseFirstCharacterOnly: boolean;
|
|
75
|
+
}>], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
76
|
+
"max-nested-describe": _typescript_eslint_utils_ts_eslint.RuleModule<"maxNestedDescribe", Options, PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
77
|
+
"no-identical-title": _typescript_eslint_utils_ts_eslint.RuleModule<MESSAGE_ID, [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
78
|
+
"no-focused-tests": _typescript_eslint_utils_ts_eslint.RuleModule<"noFocusedTests", Options$1, PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
79
|
+
"no-conditional-tests": _typescript_eslint_utils_ts_eslint.RuleModule<"noConditionalTests", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
80
|
+
"expect-expect": _typescript_eslint_utils_ts_eslint.RuleModule<"noAssertions", [{
|
|
81
|
+
assertFunctionNames: string[];
|
|
82
|
+
additionalTestBlockFunctions: string[];
|
|
83
|
+
}], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
84
|
+
"consistent-test-it": _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds$1, [Partial<{
|
|
85
|
+
fn: TestCaseName.it | TestCaseName.test;
|
|
86
|
+
withinDescribe: TestCaseName.it | TestCaseName.test;
|
|
87
|
+
}>], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
88
|
+
"consistent-vitest-vi": _typescript_eslint_utils_ts_eslint.RuleModule<"consistentUtil", [Partial<{
|
|
89
|
+
fn: UtilName;
|
|
90
|
+
}>], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
91
|
+
"prefer-to-be": _typescript_eslint_utils_ts_eslint.RuleModule<"useToBe" | "useToBeUndefined" | "useToBeDefined" | "useToBeNull" | "useToBeNaN", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
92
|
+
"no-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"unexpectedHook", [Partial<{
|
|
93
|
+
allow: readonly HookName[];
|
|
94
|
+
}>], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
95
|
+
"no-restricted-vi-methods": _typescript_eslint_utils_ts_eslint.RuleModule<MESSAGE_ID$1, Options$2, PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
96
|
+
"consistent-test-filename": _typescript_eslint_utils_ts_eslint.RuleModule<"consistentTestFilename", [Partial<{
|
|
97
|
+
pattern: string;
|
|
98
|
+
allTestPattern: string;
|
|
99
|
+
}>], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
100
|
+
"max-expects": _typescript_eslint_utils_ts_eslint.RuleModule<"maxExpect", Options$3, PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
101
|
+
"no-alias-methods": _typescript_eslint_utils_ts_eslint.RuleModule<"noAliasMethods", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
102
|
+
"no-commented-out-tests": _typescript_eslint_utils_ts_eslint.RuleModule<"noCommentedOutTests", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
103
|
+
"no-conditional-expect": _typescript_eslint_utils_ts_eslint.RuleModule<"noConditionalExpect", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
104
|
+
"no-conditional-in-test": _typescript_eslint_utils_ts_eslint.RuleModule<"noConditionalInTest", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
105
|
+
"no-disabled-tests": _typescript_eslint_utils_ts_eslint.RuleModule<MESSAGE_ID$2, [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
106
|
+
"no-done-callback": _typescript_eslint_utils_ts_eslint.RuleModule<MessageIds$2, [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
107
|
+
"no-duplicate-hooks": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateHooks", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
108
|
+
"no-large-snapshots": _typescript_eslint_utils_ts_eslint.RuleModule<"noSnapShot" | "tooLongSnapShot", [{
|
|
109
|
+
maxSize?: number;
|
|
110
|
+
inlineMaxSize?: number;
|
|
111
|
+
allowedSnapshots?: Record<string, Array<string | RegExp>>;
|
|
112
|
+
}], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
113
|
+
"no-interpolation-in-snapshots": _typescript_eslint_utils_ts_eslint.RuleModule<"noInterpolationInSnapshots", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
114
|
+
"no-mocks-import": _typescript_eslint_utils_ts_eslint.RuleModule<"noMocksImport", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
115
|
+
"no-restricted-matchers": _typescript_eslint_utils_ts_eslint.RuleModule<"restrictedChain" | "restrictedChainWithMessage", Record<string, string | null>[], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
116
|
+
"no-standalone-expect": _typescript_eslint_utils_ts_eslint.RuleModule<"noStandaloneExpect", {
|
|
117
|
+
additionalTestBlockFunctions?: string[];
|
|
118
|
+
}[], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
119
|
+
"no-test-prefixes": _typescript_eslint_utils_ts_eslint.RuleModule<"usePreferredName", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
120
|
+
"no-test-return-statement": _typescript_eslint_utils_ts_eslint.RuleModule<"noTestReturnStatement", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
121
|
+
"no-import-node-test": _typescript_eslint_utils_ts_eslint.RuleModule<"noImportNodeTest", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
122
|
+
"prefer-called-with": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledWith", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
123
|
+
"valid-title": _typescript_eslint_utils_ts_eslint.RuleModule<"titleMustBeString" | "emptyTitle" | "duplicatePrefix" | "accidentalSpace" | "disallowedWord" | "mustNotMatch" | "mustMatch" | "mustNotMatchCustom" | "mustMatchCustom", {
|
|
124
|
+
ignoreTypeOfDescribeName?: boolean;
|
|
125
|
+
allowArguments?: boolean;
|
|
126
|
+
disallowedWords?: string[];
|
|
127
|
+
mustNotMatch?: Partial<Record<"test" | "describe" | "it", string | [matcher: string, message?: string | undefined]>> | [matcher: string, message?: string | undefined] | string;
|
|
128
|
+
mustMatch?: Partial<Record<"test" | "describe" | "it", string | [matcher: string, message?: string | undefined]>> | [matcher: string, message?: string | undefined] | string;
|
|
129
|
+
}[], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
130
|
+
"valid-expect": _typescript_eslint_utils_ts_eslint.RuleModule<MESSAGE_IDS, [Partial<{
|
|
131
|
+
alwaysAwait: boolean;
|
|
132
|
+
asyncMatchers: string[];
|
|
133
|
+
minArgs: number;
|
|
134
|
+
maxArgs: number;
|
|
135
|
+
}>], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
136
|
+
"prefer-to-be-falsy": _typescript_eslint_utils_ts_eslint.RuleModule<"preferToBeFalsy", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
137
|
+
"prefer-to-be-object": _typescript_eslint_utils_ts_eslint.RuleModule<"preferToBeObject", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
138
|
+
"prefer-to-be-truthy": _typescript_eslint_utils_ts_eslint.RuleModule<"preferToBeTruthy", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
139
|
+
"prefer-to-have-length": _typescript_eslint_utils_ts_eslint.RuleModule<"preferToHaveLength", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
140
|
+
"prefer-equality-matcher": _typescript_eslint_utils_ts_eslint.RuleModule<"useEqualityMatcher" | "suggestEqualityMatcher", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
141
|
+
"prefer-strict-equal": _typescript_eslint_utils_ts_eslint.RuleModule<MESSAGE_IDS$1, [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
142
|
+
"prefer-expect-resolves": _typescript_eslint_utils_ts_eslint.RuleModule<"expectResolves", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
143
|
+
"prefer-each": _typescript_eslint_utils_ts_eslint.RuleModule<"preferEach", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
144
|
+
"prefer-hooks-on-top": _typescript_eslint_utils_ts_eslint.RuleModule<"noHookOnTop", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
145
|
+
"prefer-hooks-in-order": _typescript_eslint_utils_ts_eslint.RuleModule<"reorderHooks", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
146
|
+
"require-local-test-context-for-concurrent-snapshots": _typescript_eslint_utils_ts_eslint.RuleModule<"requireLocalTestContext", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
147
|
+
"prefer-mock-promise-shorthand": _typescript_eslint_utils_ts_eslint.RuleModule<"useMockShorthand", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
148
|
+
"prefer-vi-mocked": _typescript_eslint_utils_ts_eslint.RuleModule<"useViMocked", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
149
|
+
"prefer-snapshot-hint": _typescript_eslint_utils_ts_eslint.RuleModule<"missingHint", [("always" | "multi" | undefined)?], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
150
|
+
"valid-describe-callback": _typescript_eslint_utils_ts_eslint.RuleModule<"nameAndCallback" | "secondArgumentMustBeFunction" | "unexpectedDescribeArgument" | "unexpectedReturnInDescribe", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
151
|
+
"require-top-level-describe": _typescript_eslint_utils_ts_eslint.RuleModule<"unexpectedHook" | "tooManyDescribes" | "unexpectedTestCase", [Partial<{
|
|
152
|
+
maxNumberOfTopLevelDescribes: number;
|
|
153
|
+
}>], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
154
|
+
"require-to-throw-message": _typescript_eslint_utils_ts_eslint.RuleModule<"addErrorMessage", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
155
|
+
"require-hook": _typescript_eslint_utils_ts_eslint.RuleModule<"useHook", [{
|
|
156
|
+
allowedFunctionCalls?: readonly string[];
|
|
157
|
+
}], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
158
|
+
"prefer-todo": _typescript_eslint_utils_ts_eslint.RuleModule<"emptyTest" | "unimplementedTest", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
159
|
+
"prefer-spy-on": _typescript_eslint_utils_ts_eslint.RuleModule<"useViSpayOn", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
160
|
+
"prefer-comparison-matcher": _typescript_eslint_utils_ts_eslint.RuleModule<"useToBeComparison", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
161
|
+
"prefer-describe-function-title": _typescript_eslint_utils_ts_eslint.RuleModule<"preferFunction", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
162
|
+
"prefer-to-contain": _typescript_eslint_utils_ts_eslint.RuleModule<"useToContain", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
163
|
+
"prefer-expect-assertions": _typescript_eslint_utils_ts_eslint.RuleModule<"hasAssertionsTakesNoArguments" | "assertionsRequiresOneArgument" | "assertionsRequiresNumberArgument" | "haveExpectAssertions" | "suggestAddingHasAssertions" | "suggestAddingAssertions" | "suggestRemovingExtraArguments", {
|
|
164
|
+
onlyFunctionsWithAsyncKeyword?: boolean;
|
|
165
|
+
onlyFunctionsWithExpectInLoop?: boolean;
|
|
166
|
+
onlyFunctionsWithExpectInCallback?: boolean;
|
|
167
|
+
}[], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
168
|
+
"padding-around-after-all-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
169
|
+
"padding-around-after-each-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
170
|
+
"padding-around-all": _typescript_eslint_utils_ts_eslint.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
171
|
+
"padding-around-before-all-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
172
|
+
"padding-around-before-each-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
173
|
+
"padding-around-describe-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
174
|
+
"padding-around-expect-groups": _typescript_eslint_utils_ts_eslint.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
175
|
+
"padding-around-test-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
176
|
+
"valid-expect-in-promise": _typescript_eslint_utils_ts_eslint.RuleModule<"expectInFloatingPromise", [Partial<{
|
|
177
|
+
alwaysAwait: boolean;
|
|
178
|
+
asyncMatchers: string[];
|
|
179
|
+
minArgs: number;
|
|
180
|
+
maxArgs: number;
|
|
181
|
+
}>], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
182
|
+
"prefer-strict-boolean-matchers": _typescript_eslint_utils_ts_eslint.RuleModule<"preferToBeTrue" | "preferToBeFalse", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
183
|
+
"require-mock-type-parameters": _typescript_eslint_utils_ts_eslint.RuleModule<"noTypeParameter", {
|
|
184
|
+
checkImportFunctions?: boolean;
|
|
185
|
+
}[], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
186
|
+
"no-importing-vitest-globals": _typescript_eslint_utils_ts_eslint.RuleModule<MESSAGE_IDS$2, [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
187
|
+
"prefer-importing-vitest-globals": _typescript_eslint_utils_ts_eslint.RuleModule<"preferImportingVitestGlobals", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
188
|
+
"prefer-called-once": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledOnce", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
189
|
+
"prefer-called-times": _typescript_eslint_utils_ts_eslint.RuleModule<"preferCalledTimes", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
190
|
+
"warn-todo": _typescript_eslint_utils_ts_eslint.RuleModule<"warnTodo", [], PluginDocs, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
78
191
|
};
|
|
79
192
|
environments: {
|
|
80
193
|
env: {
|
|
81
194
|
globals: {
|
|
82
|
-
suite:
|
|
83
|
-
test:
|
|
84
|
-
describe:
|
|
85
|
-
it:
|
|
86
|
-
expectTypeOf:
|
|
87
|
-
assertType:
|
|
88
|
-
expect:
|
|
89
|
-
assert:
|
|
90
|
-
chai:
|
|
91
|
-
vitest:
|
|
92
|
-
vi:
|
|
93
|
-
beforeAll:
|
|
94
|
-
afterAll:
|
|
95
|
-
beforeEach:
|
|
96
|
-
afterEach:
|
|
97
|
-
onTestFailed:
|
|
98
|
-
onTestFinished:
|
|
195
|
+
suite: boolean;
|
|
196
|
+
test: boolean;
|
|
197
|
+
describe: boolean;
|
|
198
|
+
it: boolean;
|
|
199
|
+
expectTypeOf: boolean;
|
|
200
|
+
assertType: boolean;
|
|
201
|
+
expect: boolean;
|
|
202
|
+
assert: boolean;
|
|
203
|
+
chai: boolean;
|
|
204
|
+
vitest: boolean;
|
|
205
|
+
vi: boolean;
|
|
206
|
+
beforeAll: boolean;
|
|
207
|
+
afterAll: boolean;
|
|
208
|
+
beforeEach: boolean;
|
|
209
|
+
afterEach: boolean;
|
|
210
|
+
onTestFailed: boolean;
|
|
211
|
+
onTestFinished: boolean;
|
|
99
212
|
};
|
|
100
213
|
};
|
|
101
214
|
};
|
|
@@ -111,7 +224,7 @@ declare const plugin: {
|
|
|
111
224
|
recommended: {
|
|
112
225
|
name: string;
|
|
113
226
|
plugins: {
|
|
114
|
-
readonly vitest:
|
|
227
|
+
readonly vitest: /*elided*/ any;
|
|
115
228
|
};
|
|
116
229
|
rules: {
|
|
117
230
|
readonly "vitest/expect-expect": "error";
|
|
@@ -127,7 +240,7 @@ declare const plugin: {
|
|
|
127
240
|
all: {
|
|
128
241
|
name: string;
|
|
129
242
|
plugins: {
|
|
130
|
-
readonly vitest:
|
|
243
|
+
readonly vitest: /*elided*/ any;
|
|
131
244
|
};
|
|
132
245
|
rules: {
|
|
133
246
|
readonly "vitest/prefer-lowercase-title": "warn";
|
|
@@ -198,29 +311,31 @@ declare const plugin: {
|
|
|
198
311
|
readonly "vitest/require-mock-type-parameters": "warn";
|
|
199
312
|
readonly "vitest/no-importing-vitest-globals": "off";
|
|
200
313
|
readonly "vitest/prefer-importing-vitest-globals": "warn";
|
|
314
|
+
readonly "vitest/prefer-called-once": "warn";
|
|
315
|
+
readonly "vitest/prefer-called-times": "warn";
|
|
201
316
|
};
|
|
202
317
|
};
|
|
203
318
|
env: {
|
|
204
319
|
name: string;
|
|
205
320
|
languageOptions: {
|
|
206
321
|
globals: {
|
|
207
|
-
suite:
|
|
208
|
-
test:
|
|
209
|
-
describe:
|
|
210
|
-
it:
|
|
211
|
-
expectTypeOf:
|
|
212
|
-
assertType:
|
|
213
|
-
expect:
|
|
214
|
-
assert:
|
|
215
|
-
chai:
|
|
216
|
-
vitest:
|
|
217
|
-
vi:
|
|
218
|
-
beforeAll:
|
|
219
|
-
afterAll:
|
|
220
|
-
beforeEach:
|
|
221
|
-
afterEach:
|
|
222
|
-
onTestFailed:
|
|
223
|
-
onTestFinished:
|
|
322
|
+
suite: string;
|
|
323
|
+
test: string;
|
|
324
|
+
describe: string;
|
|
325
|
+
it: string;
|
|
326
|
+
expectTypeOf: string;
|
|
327
|
+
assertType: string;
|
|
328
|
+
expect: string;
|
|
329
|
+
assert: string;
|
|
330
|
+
chai: string;
|
|
331
|
+
vitest: string;
|
|
332
|
+
vi: string;
|
|
333
|
+
beforeAll: string;
|
|
334
|
+
afterAll: string;
|
|
335
|
+
beforeEach: string;
|
|
336
|
+
afterEach: string;
|
|
337
|
+
onTestFailed: string;
|
|
338
|
+
onTestFinished: string;
|
|
224
339
|
};
|
|
225
340
|
};
|
|
226
341
|
};
|