@vitest/eslint-plugin 1.3.26 → 1.4.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 +50 -43
- package/dist/index.cjs +3593 -3623
- package/dist/index.d.cts +56 -828
- package/dist/index.d.ts +56 -829
- package/dist/index.js +3593 -3623
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,208 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as _typescript_eslint_utils_ts_eslint0 from "@typescript-eslint/utils/ts-eslint";
|
|
1
|
+
import { ESLint, Rule } from "eslint";
|
|
3
2
|
|
|
4
|
-
//#region src/utils/index.d.ts
|
|
5
|
-
interface PluginDocs {
|
|
6
|
-
recommended?: boolean;
|
|
7
|
-
requiresTypeChecking?: boolean;
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/rules/prefer-lowercase-title.d.ts
|
|
11
|
-
type MessageIds$3 = 'lowerCaseTitle' | 'fullyLowerCaseTitle';
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/rules/max-nested-describe.d.ts
|
|
14
|
-
type Options$4 = [{
|
|
15
|
-
max: number;
|
|
16
|
-
}];
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/rules/no-identical-title.d.ts
|
|
19
|
-
type MESSAGE_ID$2 = 'multipleTestTitle' | 'multipleDescribeTitle';
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/rules/no-focused-tests.d.ts
|
|
22
|
-
type Options$3 = [Partial<{
|
|
23
|
-
fixable: boolean;
|
|
24
|
-
}>];
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/utils/types.d.ts
|
|
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
|
-
//#endregion
|
|
46
|
-
//#region src/rules/consistent-test-it.d.ts
|
|
47
|
-
type MessageIds$2 = 'consistentMethod' | 'consistentMethodWithinDescribe';
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/rules/no-restricted-vi-methods.d.ts
|
|
50
|
-
type MESSAGE_ID$1 = 'restrictedViMethod' | 'restrictedViMethodWithMessage';
|
|
51
|
-
type Options$2 = [Record<string, string | null>];
|
|
52
|
-
//#endregion
|
|
53
|
-
//#region src/rules/max-expects.d.ts
|
|
54
|
-
type Options$1 = [{
|
|
55
|
-
max: number;
|
|
56
|
-
}];
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region src/rules/no-disabled-tests.d.ts
|
|
59
|
-
type MESSAGE_ID = 'missingFunction' | 'pending' | 'pendingSuite' | 'pendingTest' | 'disabledSuite' | 'disabledTest';
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region src/rules/no-done-callback.d.ts
|
|
62
|
-
type MessageIds$1 = 'noDoneCallback' | 'suggestWrappingInPromise' | 'useAwaitInsteadOfCallback';
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region src/rules/valid-expect.d.ts
|
|
65
|
-
type MESSAGE_IDS$2 = 'tooManyArgs' | 'notEnoughArgs' | 'modifierUnknown' | 'matcherNotFound' | 'matcherNotCalled' | 'asyncMustBeAwaited' | 'promisesWithAsyncAssertionsMustBeAwaited';
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region src/rules/prefer-strict-equal.d.ts
|
|
68
|
-
type MESSAGE_IDS$1 = 'useToStrictEqual' | 'suggestReplaceWithStrictEqual';
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/rules/no-importing-vitest-globals.d.ts
|
|
71
|
-
type MESSAGE_IDS = 'noImportingVitestGlobals' | 'noRequiringVitestGlobals';
|
|
72
|
-
//#endregion
|
|
73
3
|
//#region src/index.d.ts
|
|
74
4
|
declare const plugin: {
|
|
75
5
|
readonly meta: {
|
|
76
6
|
readonly name: "vitest";
|
|
77
7
|
readonly version: string;
|
|
78
8
|
};
|
|
79
|
-
readonly rules:
|
|
80
|
-
readonly "prefer-lowercase-title": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageIds$3, [Partial<{
|
|
81
|
-
ignore: string[];
|
|
82
|
-
allowedPrefixes: string[];
|
|
83
|
-
ignoreTopLevelDescribe: boolean;
|
|
84
|
-
lowercaseFirstCharacterOnly: boolean;
|
|
85
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
86
|
-
readonly "max-nested-describe": _typescript_eslint_utils_ts_eslint0.RuleModule<"maxNestedDescribe", Options$4, PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
87
|
-
readonly "no-identical-title": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_ID$2, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
88
|
-
readonly "no-focused-tests": _typescript_eslint_utils_ts_eslint0.RuleModule<"noFocusedTests", Options$3, PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
89
|
-
readonly "no-conditional-tests": _typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalTests", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
90
|
-
readonly "expect-expect": _typescript_eslint_utils_ts_eslint0.RuleModule<"noAssertions", [{
|
|
91
|
-
assertFunctionNames: string[];
|
|
92
|
-
additionalTestBlockFunctions: string[];
|
|
93
|
-
}], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
94
|
-
readonly "hoisted-apis-on-top": _typescript_eslint_utils_ts_eslint0.RuleModule<"hoistedApisOnTop" | "suggestMoveHoistedApiToTop" | "suggestReplaceMockWithDoMock", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
95
|
-
readonly "consistent-test-it": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageIds$2, [Partial<{
|
|
96
|
-
fn: TestCaseName.it | TestCaseName.test;
|
|
97
|
-
withinDescribe: TestCaseName.it | TestCaseName.test;
|
|
98
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
99
|
-
readonly "consistent-vitest-vi": _typescript_eslint_utils_ts_eslint0.RuleModule<"consistentUtil", [Partial<{
|
|
100
|
-
fn: UtilName;
|
|
101
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
102
|
-
readonly "prefer-to-be": _typescript_eslint_utils_ts_eslint0.RuleModule<"useToBe" | "useToBeUndefined" | "useToBeDefined" | "useToBeNull" | "useToBeNaN", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
103
|
-
readonly "no-hooks": _typescript_eslint_utils_ts_eslint0.RuleModule<"unexpectedHook", [Partial<{
|
|
104
|
-
allow: readonly HookName[];
|
|
105
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
106
|
-
readonly "no-restricted-vi-methods": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_ID$1, Options$2, PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
107
|
-
readonly "consistent-test-filename": _typescript_eslint_utils_ts_eslint0.RuleModule<"consistentTestFilename", [Partial<{
|
|
108
|
-
pattern: string;
|
|
109
|
-
allTestPattern: string;
|
|
110
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
111
|
-
readonly "max-expects": _typescript_eslint_utils_ts_eslint0.RuleModule<"maxExpect", Options$1, PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
112
|
-
readonly "no-alias-methods": _typescript_eslint_utils_ts_eslint0.RuleModule<"noAliasMethods", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
113
|
-
readonly "no-commented-out-tests": _typescript_eslint_utils_ts_eslint0.RuleModule<"noCommentedOutTests", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
114
|
-
readonly "no-conditional-expect": _typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalExpect", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
115
|
-
readonly "no-conditional-in-test": _typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalInTest", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
116
|
-
readonly "no-disabled-tests": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_ID, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
117
|
-
readonly "no-done-callback": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageIds$1, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
118
|
-
readonly "no-duplicate-hooks": _typescript_eslint_utils_ts_eslint0.RuleModule<"noDuplicateHooks", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
119
|
-
readonly "no-large-snapshots": _typescript_eslint_utils_ts_eslint0.RuleModule<"noSnapShot" | "tooLongSnapShot", [{
|
|
120
|
-
maxSize?: number;
|
|
121
|
-
inlineMaxSize?: number;
|
|
122
|
-
allowedSnapshots?: Record<string, Array<string | RegExp>>;
|
|
123
|
-
}], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
124
|
-
readonly "no-interpolation-in-snapshots": _typescript_eslint_utils_ts_eslint0.RuleModule<"noInterpolationInSnapshots", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
125
|
-
readonly "no-mocks-import": _typescript_eslint_utils_ts_eslint0.RuleModule<"noMocksImport", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
126
|
-
readonly "no-restricted-matchers": _typescript_eslint_utils_ts_eslint0.RuleModule<"restrictedChain" | "restrictedChainWithMessage", Record<string, string | null>[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
127
|
-
readonly "no-standalone-expect": _typescript_eslint_utils_ts_eslint0.RuleModule<"noStandaloneExpect", {
|
|
128
|
-
additionalTestBlockFunctions?: string[];
|
|
129
|
-
}[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
130
|
-
readonly "no-test-prefixes": _typescript_eslint_utils_ts_eslint0.RuleModule<"usePreferredName", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
131
|
-
readonly "no-test-return-statement": _typescript_eslint_utils_ts_eslint0.RuleModule<"noTestReturnStatement", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
132
|
-
readonly "no-import-node-test": _typescript_eslint_utils_ts_eslint0.RuleModule<"noImportNodeTest", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
133
|
-
readonly "prefer-called-with": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferCalledWith", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
134
|
-
readonly "valid-title": _typescript_eslint_utils_ts_eslint0.RuleModule<"titleMustBeString" | "emptyTitle" | "duplicatePrefix" | "accidentalSpace" | "disallowedWord" | "mustNotMatch" | "mustMatch" | "mustNotMatchCustom" | "mustMatchCustom", {
|
|
135
|
-
ignoreTypeOfDescribeName?: boolean;
|
|
136
|
-
allowArguments?: boolean;
|
|
137
|
-
disallowedWords?: string[];
|
|
138
|
-
mustNotMatch?: Partial<Record<"test" | "describe" | "it", string | [matcher: string, message?: string | undefined]>> | [matcher: string, message?: string | undefined] | string;
|
|
139
|
-
mustMatch?: Partial<Record<"test" | "describe" | "it", string | [matcher: string, message?: string | undefined]>> | [matcher: string, message?: string | undefined] | string;
|
|
140
|
-
}[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
141
|
-
readonly "valid-expect": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_IDS$2, [Partial<{
|
|
142
|
-
alwaysAwait: boolean;
|
|
143
|
-
asyncMatchers: string[];
|
|
144
|
-
minArgs: number;
|
|
145
|
-
maxArgs: number;
|
|
146
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
147
|
-
readonly "prefer-to-be-falsy": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToBeFalsy", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
148
|
-
readonly "prefer-to-be-object": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToBeObject", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
149
|
-
readonly "prefer-to-be-truthy": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToBeTruthy", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
150
|
-
readonly "prefer-to-have-length": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToHaveLength", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
151
|
-
readonly "prefer-equality-matcher": _typescript_eslint_utils_ts_eslint0.RuleModule<"useEqualityMatcher" | "suggestEqualityMatcher", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
152
|
-
readonly "prefer-strict-equal": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_IDS$1, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
153
|
-
readonly "prefer-expect-resolves": _typescript_eslint_utils_ts_eslint0.RuleModule<"expectResolves", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
154
|
-
readonly "prefer-each": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferEach", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
155
|
-
readonly "prefer-hooks-on-top": _typescript_eslint_utils_ts_eslint0.RuleModule<"noHookOnTop", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
156
|
-
readonly "prefer-hooks-in-order": _typescript_eslint_utils_ts_eslint0.RuleModule<"reorderHooks", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
157
|
-
readonly "require-local-test-context-for-concurrent-snapshots": _typescript_eslint_utils_ts_eslint0.RuleModule<"requireLocalTestContext", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
158
|
-
readonly "prefer-mock-promise-shorthand": _typescript_eslint_utils_ts_eslint0.RuleModule<"useMockShorthand", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
159
|
-
readonly "prefer-vi-mocked": _typescript_eslint_utils_ts_eslint0.RuleModule<"useViMocked", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
160
|
-
readonly "prefer-snapshot-hint": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingHint", [("always" | "multi" | undefined)?], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
161
|
-
readonly "valid-describe-callback": _typescript_eslint_utils_ts_eslint0.RuleModule<"nameAndCallback" | "secondArgumentMustBeFunction" | "unexpectedDescribeArgument" | "unexpectedReturnInDescribe", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
162
|
-
readonly "require-top-level-describe": _typescript_eslint_utils_ts_eslint0.RuleModule<"unexpectedHook" | "tooManyDescribes" | "unexpectedTestCase", [Partial<{
|
|
163
|
-
maxNumberOfTopLevelDescribes: number;
|
|
164
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
165
|
-
readonly "require-to-throw-message": _typescript_eslint_utils_ts_eslint0.RuleModule<"addErrorMessage", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
166
|
-
readonly "require-hook": _typescript_eslint_utils_ts_eslint0.RuleModule<"useHook", [{
|
|
167
|
-
allowedFunctionCalls?: readonly string[];
|
|
168
|
-
}], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
169
|
-
readonly "prefer-todo": _typescript_eslint_utils_ts_eslint0.RuleModule<"emptyTest" | "unimplementedTest", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
170
|
-
readonly "prefer-spy-on": _typescript_eslint_utils_ts_eslint0.RuleModule<"useViSpayOn", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
171
|
-
readonly "prefer-comparison-matcher": _typescript_eslint_utils_ts_eslint0.RuleModule<"useToBeComparison", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
172
|
-
readonly "prefer-describe-function-title": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferFunction", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
173
|
-
readonly "prefer-to-contain": _typescript_eslint_utils_ts_eslint0.RuleModule<"useToContain", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
174
|
-
readonly "prefer-expect-assertions": _typescript_eslint_utils_ts_eslint0.RuleModule<"hasAssertionsTakesNoArguments" | "assertionsRequiresOneArgument" | "assertionsRequiresNumberArgument" | "haveExpectAssertions" | "suggestAddingHasAssertions" | "suggestAddingAssertions" | "suggestRemovingExtraArguments", {
|
|
175
|
-
onlyFunctionsWithAsyncKeyword?: boolean;
|
|
176
|
-
onlyFunctionsWithExpectInLoop?: boolean;
|
|
177
|
-
onlyFunctionsWithExpectInCallback?: boolean;
|
|
178
|
-
}[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
179
|
-
readonly "padding-around-after-all-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
180
|
-
readonly "padding-around-after-each-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
181
|
-
readonly "padding-around-all": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
182
|
-
readonly "padding-around-before-all-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
183
|
-
readonly "padding-around-before-each-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
184
|
-
readonly "padding-around-describe-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
185
|
-
readonly "padding-around-expect-groups": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
186
|
-
readonly "padding-around-test-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
187
|
-
readonly "valid-expect-in-promise": _typescript_eslint_utils_ts_eslint0.RuleModule<"expectInFloatingPromise", [Partial<{
|
|
188
|
-
alwaysAwait: boolean;
|
|
189
|
-
asyncMatchers: string[];
|
|
190
|
-
minArgs: number;
|
|
191
|
-
maxArgs: number;
|
|
192
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
193
|
-
readonly "prefer-strict-boolean-matchers": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToBeTrue" | "preferToBeFalse", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
194
|
-
readonly "require-mock-type-parameters": _typescript_eslint_utils_ts_eslint0.RuleModule<"noTypeParameter", {
|
|
195
|
-
checkImportFunctions?: boolean;
|
|
196
|
-
}[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
197
|
-
readonly "no-importing-vitest-globals": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_IDS, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
198
|
-
readonly "prefer-importing-vitest-globals": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferImportingVitestGlobals", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
199
|
-
readonly "prefer-called-once": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferCalledOnce", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
200
|
-
readonly "prefer-called-times": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferCalledTimes", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
201
|
-
readonly "prefer-expect-type-of": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferExpectTypeOf", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
202
|
-
readonly "warn-todo": _typescript_eslint_utils_ts_eslint0.RuleModule<"warnTodo", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
203
|
-
readonly "prefer-import-in-mock": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferImport", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
204
|
-
readonly "prefer-called-exactly-once-with": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferCalledExactlyOnceWith", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
205
|
-
};
|
|
9
|
+
readonly rules: Record<string, Rule.RuleModule>;
|
|
206
10
|
readonly environments: {
|
|
207
11
|
readonly env: {
|
|
208
12
|
readonly globals: {
|
|
@@ -238,649 +42,53 @@ declare const plugin: {
|
|
|
238
42
|
readonly recommended: {
|
|
239
43
|
readonly name: "vitest/recommended";
|
|
240
44
|
readonly plugins: {
|
|
241
|
-
readonly vitest:
|
|
242
|
-
readonly meta: {
|
|
243
|
-
readonly name: "vitest";
|
|
244
|
-
readonly version: string;
|
|
245
|
-
};
|
|
246
|
-
readonly rules: {
|
|
247
|
-
readonly "prefer-lowercase-title": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageIds$3, [Partial<{
|
|
248
|
-
ignore: string[];
|
|
249
|
-
allowedPrefixes: string[];
|
|
250
|
-
ignoreTopLevelDescribe: boolean;
|
|
251
|
-
lowercaseFirstCharacterOnly: boolean;
|
|
252
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
253
|
-
readonly "max-nested-describe": _typescript_eslint_utils_ts_eslint0.RuleModule<"maxNestedDescribe", Options$4, PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
254
|
-
readonly "no-identical-title": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_ID$2, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
255
|
-
readonly "no-focused-tests": _typescript_eslint_utils_ts_eslint0.RuleModule<"noFocusedTests", Options$3, PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
256
|
-
readonly "no-conditional-tests": _typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalTests", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
257
|
-
readonly "expect-expect": _typescript_eslint_utils_ts_eslint0.RuleModule<"noAssertions", [{
|
|
258
|
-
assertFunctionNames: string[];
|
|
259
|
-
additionalTestBlockFunctions: string[];
|
|
260
|
-
}], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
261
|
-
readonly "hoisted-apis-on-top": _typescript_eslint_utils_ts_eslint0.RuleModule<"hoistedApisOnTop" | "suggestMoveHoistedApiToTop" | "suggestReplaceMockWithDoMock", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
262
|
-
readonly "consistent-test-it": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageIds$2, [Partial<{
|
|
263
|
-
fn: TestCaseName.it | TestCaseName.test;
|
|
264
|
-
withinDescribe: TestCaseName.it | TestCaseName.test;
|
|
265
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
266
|
-
readonly "consistent-vitest-vi": _typescript_eslint_utils_ts_eslint0.RuleModule<"consistentUtil", [Partial<{
|
|
267
|
-
fn: UtilName;
|
|
268
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
269
|
-
readonly "prefer-to-be": _typescript_eslint_utils_ts_eslint0.RuleModule<"useToBe" | "useToBeUndefined" | "useToBeDefined" | "useToBeNull" | "useToBeNaN", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
270
|
-
readonly "no-hooks": _typescript_eslint_utils_ts_eslint0.RuleModule<"unexpectedHook", [Partial<{
|
|
271
|
-
allow: readonly HookName[];
|
|
272
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
273
|
-
readonly "no-restricted-vi-methods": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_ID$1, Options$2, PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
274
|
-
readonly "consistent-test-filename": _typescript_eslint_utils_ts_eslint0.RuleModule<"consistentTestFilename", [Partial<{
|
|
275
|
-
pattern: string;
|
|
276
|
-
allTestPattern: string;
|
|
277
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
278
|
-
readonly "max-expects": _typescript_eslint_utils_ts_eslint0.RuleModule<"maxExpect", Options$1, PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
279
|
-
readonly "no-alias-methods": _typescript_eslint_utils_ts_eslint0.RuleModule<"noAliasMethods", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
280
|
-
readonly "no-commented-out-tests": _typescript_eslint_utils_ts_eslint0.RuleModule<"noCommentedOutTests", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
281
|
-
readonly "no-conditional-expect": _typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalExpect", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
282
|
-
readonly "no-conditional-in-test": _typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalInTest", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
283
|
-
readonly "no-disabled-tests": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_ID, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
284
|
-
readonly "no-done-callback": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageIds$1, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
285
|
-
readonly "no-duplicate-hooks": _typescript_eslint_utils_ts_eslint0.RuleModule<"noDuplicateHooks", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
286
|
-
readonly "no-large-snapshots": _typescript_eslint_utils_ts_eslint0.RuleModule<"noSnapShot" | "tooLongSnapShot", [{
|
|
287
|
-
maxSize?: number;
|
|
288
|
-
inlineMaxSize?: number;
|
|
289
|
-
allowedSnapshots?: Record<string, Array<string | RegExp>>;
|
|
290
|
-
}], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
291
|
-
readonly "no-interpolation-in-snapshots": _typescript_eslint_utils_ts_eslint0.RuleModule<"noInterpolationInSnapshots", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
292
|
-
readonly "no-mocks-import": _typescript_eslint_utils_ts_eslint0.RuleModule<"noMocksImport", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
293
|
-
readonly "no-restricted-matchers": _typescript_eslint_utils_ts_eslint0.RuleModule<"restrictedChain" | "restrictedChainWithMessage", Record<string, string | null>[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
294
|
-
readonly "no-standalone-expect": _typescript_eslint_utils_ts_eslint0.RuleModule<"noStandaloneExpect", {
|
|
295
|
-
additionalTestBlockFunctions?: string[];
|
|
296
|
-
}[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
297
|
-
readonly "no-test-prefixes": _typescript_eslint_utils_ts_eslint0.RuleModule<"usePreferredName", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
298
|
-
readonly "no-test-return-statement": _typescript_eslint_utils_ts_eslint0.RuleModule<"noTestReturnStatement", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
299
|
-
readonly "no-import-node-test": _typescript_eslint_utils_ts_eslint0.RuleModule<"noImportNodeTest", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
300
|
-
readonly "prefer-called-with": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferCalledWith", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
301
|
-
readonly "valid-title": _typescript_eslint_utils_ts_eslint0.RuleModule<"titleMustBeString" | "emptyTitle" | "duplicatePrefix" | "accidentalSpace" | "disallowedWord" | "mustNotMatch" | "mustMatch" | "mustNotMatchCustom" | "mustMatchCustom", {
|
|
302
|
-
ignoreTypeOfDescribeName?: boolean;
|
|
303
|
-
allowArguments?: boolean;
|
|
304
|
-
disallowedWords?: string[];
|
|
305
|
-
mustNotMatch?: Partial<Record<"test" | "describe" | "it", string | [matcher: string, message?: string | undefined]>> | [matcher: string, message?: string | undefined] | string;
|
|
306
|
-
mustMatch?: Partial<Record<"test" | "describe" | "it", string | [matcher: string, message?: string | undefined]>> | [matcher: string, message?: string | undefined] | string;
|
|
307
|
-
}[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
308
|
-
readonly "valid-expect": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_IDS$2, [Partial<{
|
|
309
|
-
alwaysAwait: boolean;
|
|
310
|
-
asyncMatchers: string[];
|
|
311
|
-
minArgs: number;
|
|
312
|
-
maxArgs: number;
|
|
313
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
314
|
-
readonly "prefer-to-be-falsy": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToBeFalsy", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
315
|
-
readonly "prefer-to-be-object": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToBeObject", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
316
|
-
readonly "prefer-to-be-truthy": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToBeTruthy", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
317
|
-
readonly "prefer-to-have-length": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToHaveLength", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
318
|
-
readonly "prefer-equality-matcher": _typescript_eslint_utils_ts_eslint0.RuleModule<"useEqualityMatcher" | "suggestEqualityMatcher", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
319
|
-
readonly "prefer-strict-equal": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_IDS$1, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
320
|
-
readonly "prefer-expect-resolves": _typescript_eslint_utils_ts_eslint0.RuleModule<"expectResolves", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
321
|
-
readonly "prefer-each": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferEach", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
322
|
-
readonly "prefer-hooks-on-top": _typescript_eslint_utils_ts_eslint0.RuleModule<"noHookOnTop", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
323
|
-
readonly "prefer-hooks-in-order": _typescript_eslint_utils_ts_eslint0.RuleModule<"reorderHooks", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
324
|
-
readonly "require-local-test-context-for-concurrent-snapshots": _typescript_eslint_utils_ts_eslint0.RuleModule<"requireLocalTestContext", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
325
|
-
readonly "prefer-mock-promise-shorthand": _typescript_eslint_utils_ts_eslint0.RuleModule<"useMockShorthand", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
326
|
-
readonly "prefer-vi-mocked": _typescript_eslint_utils_ts_eslint0.RuleModule<"useViMocked", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
327
|
-
readonly "prefer-snapshot-hint": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingHint", [("always" | "multi" | undefined)?], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
328
|
-
readonly "valid-describe-callback": _typescript_eslint_utils_ts_eslint0.RuleModule<"nameAndCallback" | "secondArgumentMustBeFunction" | "unexpectedDescribeArgument" | "unexpectedReturnInDescribe", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
329
|
-
readonly "require-top-level-describe": _typescript_eslint_utils_ts_eslint0.RuleModule<"unexpectedHook" | "tooManyDescribes" | "unexpectedTestCase", [Partial<{
|
|
330
|
-
maxNumberOfTopLevelDescribes: number;
|
|
331
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
332
|
-
readonly "require-to-throw-message": _typescript_eslint_utils_ts_eslint0.RuleModule<"addErrorMessage", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
333
|
-
readonly "require-hook": _typescript_eslint_utils_ts_eslint0.RuleModule<"useHook", [{
|
|
334
|
-
allowedFunctionCalls?: readonly string[];
|
|
335
|
-
}], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
336
|
-
readonly "prefer-todo": _typescript_eslint_utils_ts_eslint0.RuleModule<"emptyTest" | "unimplementedTest", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
337
|
-
readonly "prefer-spy-on": _typescript_eslint_utils_ts_eslint0.RuleModule<"useViSpayOn", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
338
|
-
readonly "prefer-comparison-matcher": _typescript_eslint_utils_ts_eslint0.RuleModule<"useToBeComparison", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
339
|
-
readonly "prefer-describe-function-title": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferFunction", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
340
|
-
readonly "prefer-to-contain": _typescript_eslint_utils_ts_eslint0.RuleModule<"useToContain", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
341
|
-
readonly "prefer-expect-assertions": _typescript_eslint_utils_ts_eslint0.RuleModule<"hasAssertionsTakesNoArguments" | "assertionsRequiresOneArgument" | "assertionsRequiresNumberArgument" | "haveExpectAssertions" | "suggestAddingHasAssertions" | "suggestAddingAssertions" | "suggestRemovingExtraArguments", {
|
|
342
|
-
onlyFunctionsWithAsyncKeyword?: boolean;
|
|
343
|
-
onlyFunctionsWithExpectInLoop?: boolean;
|
|
344
|
-
onlyFunctionsWithExpectInCallback?: boolean;
|
|
345
|
-
}[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
346
|
-
readonly "padding-around-after-all-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
347
|
-
readonly "padding-around-after-each-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
348
|
-
readonly "padding-around-all": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
349
|
-
readonly "padding-around-before-all-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
350
|
-
readonly "padding-around-before-each-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
351
|
-
readonly "padding-around-describe-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
352
|
-
readonly "padding-around-expect-groups": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
353
|
-
readonly "padding-around-test-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
354
|
-
readonly "valid-expect-in-promise": _typescript_eslint_utils_ts_eslint0.RuleModule<"expectInFloatingPromise", [Partial<{
|
|
355
|
-
alwaysAwait: boolean;
|
|
356
|
-
asyncMatchers: string[];
|
|
357
|
-
minArgs: number;
|
|
358
|
-
maxArgs: number;
|
|
359
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
360
|
-
readonly "prefer-strict-boolean-matchers": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToBeTrue" | "preferToBeFalse", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
361
|
-
readonly "require-mock-type-parameters": _typescript_eslint_utils_ts_eslint0.RuleModule<"noTypeParameter", {
|
|
362
|
-
checkImportFunctions?: boolean;
|
|
363
|
-
}[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
364
|
-
readonly "no-importing-vitest-globals": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_IDS, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
365
|
-
readonly "prefer-importing-vitest-globals": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferImportingVitestGlobals", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
366
|
-
readonly "prefer-called-once": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferCalledOnce", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
367
|
-
readonly "prefer-called-times": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferCalledTimes", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
368
|
-
readonly "prefer-expect-type-of": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferExpectTypeOf", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
369
|
-
readonly "warn-todo": _typescript_eslint_utils_ts_eslint0.RuleModule<"warnTodo", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
370
|
-
readonly "prefer-import-in-mock": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferImport", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
371
|
-
readonly "prefer-called-exactly-once-with": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferCalledExactlyOnceWith", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
372
|
-
};
|
|
373
|
-
readonly environments: {
|
|
374
|
-
readonly env: {
|
|
375
|
-
readonly globals: {
|
|
376
|
-
readonly suite: true;
|
|
377
|
-
readonly test: true;
|
|
378
|
-
readonly describe: true;
|
|
379
|
-
readonly it: true;
|
|
380
|
-
readonly expectTypeOf: true;
|
|
381
|
-
readonly assertType: true;
|
|
382
|
-
readonly expect: true;
|
|
383
|
-
readonly assert: true;
|
|
384
|
-
readonly chai: true;
|
|
385
|
-
readonly vitest: true;
|
|
386
|
-
readonly vi: true;
|
|
387
|
-
readonly beforeAll: true;
|
|
388
|
-
readonly afterAll: true;
|
|
389
|
-
readonly beforeEach: true;
|
|
390
|
-
readonly afterEach: true;
|
|
391
|
-
readonly onTestFailed: true;
|
|
392
|
-
readonly onTestFinished: true;
|
|
393
|
-
};
|
|
394
|
-
};
|
|
395
|
-
};
|
|
396
|
-
readonly configs: {
|
|
397
|
-
readonly 'legacy-recommended': {
|
|
398
|
-
plugins: string[];
|
|
399
|
-
rules: {};
|
|
400
|
-
};
|
|
401
|
-
readonly 'legacy-all': {
|
|
402
|
-
plugins: string[];
|
|
403
|
-
rules: {};
|
|
404
|
-
};
|
|
405
|
-
readonly recommended: {
|
|
406
|
-
readonly name: "vitest/recommended";
|
|
407
|
-
readonly plugins: {
|
|
408
|
-
readonly vitest: /*elided*/any;
|
|
409
|
-
};
|
|
410
|
-
readonly rules: {
|
|
411
|
-
readonly "vitest/expect-expect": "error";
|
|
412
|
-
readonly "vitest/no-identical-title": "error";
|
|
413
|
-
readonly "vitest/no-commented-out-tests": "error";
|
|
414
|
-
readonly "vitest/valid-title": "error";
|
|
415
|
-
readonly "vitest/valid-expect": "error";
|
|
416
|
-
readonly "vitest/valid-describe-callback": "error";
|
|
417
|
-
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
418
|
-
readonly "vitest/no-import-node-test": "error";
|
|
419
|
-
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
420
|
-
};
|
|
421
|
-
};
|
|
422
|
-
readonly all: {
|
|
423
|
-
readonly name: "vitest/all";
|
|
424
|
-
readonly plugins: {
|
|
425
|
-
readonly vitest: /*elided*/any;
|
|
426
|
-
};
|
|
427
|
-
readonly rules: {
|
|
428
|
-
readonly "vitest/prefer-lowercase-title": "warn";
|
|
429
|
-
readonly "vitest/max-nested-describe": "warn";
|
|
430
|
-
readonly "vitest/no-focused-tests": "warn";
|
|
431
|
-
readonly "vitest/no-conditional-tests": "warn";
|
|
432
|
-
readonly "vitest/consistent-test-it": "warn";
|
|
433
|
-
readonly "vitest/consistent-vitest-vi": "warn";
|
|
434
|
-
readonly "vitest/no-hooks": "warn";
|
|
435
|
-
readonly "vitest/no-restricted-vi-methods": "warn";
|
|
436
|
-
readonly "vitest/consistent-test-filename": "warn";
|
|
437
|
-
readonly "vitest/max-expects": "warn";
|
|
438
|
-
readonly "vitest/no-alias-methods": "warn";
|
|
439
|
-
readonly "vitest/no-conditional-expect": "warn";
|
|
440
|
-
readonly "vitest/no-conditional-in-test": "warn";
|
|
441
|
-
readonly "vitest/no-disabled-tests": "warn";
|
|
442
|
-
readonly "vitest/no-done-callback": "warn";
|
|
443
|
-
readonly "vitest/no-duplicate-hooks": "warn";
|
|
444
|
-
readonly "vitest/no-large-snapshots": "warn";
|
|
445
|
-
readonly "vitest/no-interpolation-in-snapshots": "warn";
|
|
446
|
-
readonly "vitest/no-mocks-import": "warn";
|
|
447
|
-
readonly "vitest/no-restricted-matchers": "warn";
|
|
448
|
-
readonly "vitest/no-standalone-expect": "warn";
|
|
449
|
-
readonly "vitest/no-test-prefixes": "warn";
|
|
450
|
-
readonly "vitest/no-test-return-statement": "warn";
|
|
451
|
-
readonly "vitest/prefer-called-with": "warn";
|
|
452
|
-
readonly "vitest/prefer-to-be-falsy": "off";
|
|
453
|
-
readonly "vitest/prefer-to-be-object": "warn";
|
|
454
|
-
readonly "vitest/prefer-to-be-truthy": "off";
|
|
455
|
-
readonly "vitest/prefer-to-have-length": "warn";
|
|
456
|
-
readonly "vitest/prefer-equality-matcher": "warn";
|
|
457
|
-
readonly "vitest/prefer-strict-equal": "warn";
|
|
458
|
-
readonly "vitest/prefer-expect-resolves": "warn";
|
|
459
|
-
readonly "vitest/prefer-each": "warn";
|
|
460
|
-
readonly "vitest/prefer-hooks-on-top": "warn";
|
|
461
|
-
readonly "vitest/prefer-hooks-in-order": "warn";
|
|
462
|
-
readonly "vitest/prefer-mock-promise-shorthand": "warn";
|
|
463
|
-
readonly "vitest/prefer-vi-mocked": "warn";
|
|
464
|
-
readonly "vitest/prefer-snapshot-hint": "warn";
|
|
465
|
-
readonly "vitest/require-top-level-describe": "warn";
|
|
466
|
-
readonly "vitest/require-to-throw-message": "warn";
|
|
467
|
-
readonly "vitest/require-hook": "warn";
|
|
468
|
-
readonly "vitest/prefer-todo": "warn";
|
|
469
|
-
readonly "vitest/prefer-spy-on": "warn";
|
|
470
|
-
readonly "vitest/prefer-comparison-matcher": "warn";
|
|
471
|
-
readonly "vitest/prefer-describe-function-title": "warn";
|
|
472
|
-
readonly "vitest/prefer-to-contain": "warn";
|
|
473
|
-
readonly "vitest/prefer-expect-assertions": "warn";
|
|
474
|
-
readonly "vitest/prefer-to-be": "warn";
|
|
475
|
-
readonly "vitest/padding-around-after-all-blocks": "warn";
|
|
476
|
-
readonly "vitest/padding-around-after-each-blocks": "warn";
|
|
477
|
-
readonly "vitest/padding-around-all": "warn";
|
|
478
|
-
readonly "vitest/padding-around-before-all-blocks": "warn";
|
|
479
|
-
readonly "vitest/padding-around-before-each-blocks": "warn";
|
|
480
|
-
readonly "vitest/padding-around-describe-blocks": "warn";
|
|
481
|
-
readonly "vitest/padding-around-expect-groups": "warn";
|
|
482
|
-
readonly "vitest/padding-around-test-blocks": "warn";
|
|
483
|
-
readonly "vitest/valid-expect-in-promise": "warn";
|
|
484
|
-
readonly "vitest/expect-expect": "warn";
|
|
485
|
-
readonly "vitest/no-identical-title": "warn";
|
|
486
|
-
readonly "vitest/no-commented-out-tests": "warn";
|
|
487
|
-
readonly "vitest/valid-title": "warn";
|
|
488
|
-
readonly "vitest/valid-expect": "warn";
|
|
489
|
-
readonly "vitest/valid-describe-callback": "warn";
|
|
490
|
-
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "warn";
|
|
491
|
-
readonly "vitest/no-import-node-test": "warn";
|
|
492
|
-
readonly "vitest/prefer-strict-boolean-matchers": "warn";
|
|
493
|
-
readonly "vitest/require-mock-type-parameters": "warn";
|
|
494
|
-
readonly "vitest/no-importing-vitest-globals": "off";
|
|
495
|
-
readonly "vitest/prefer-importing-vitest-globals": "warn";
|
|
496
|
-
readonly "vitest/prefer-called-once": "off";
|
|
497
|
-
readonly "vitest/prefer-called-times": "warn";
|
|
498
|
-
readonly "vitest/prefer-expect-type-of": "warn";
|
|
499
|
-
readonly "vitest/hoisted-apis-on-top": "warn";
|
|
500
|
-
readonly "vitest/prefer-import-in-mock": "warn";
|
|
501
|
-
readonly "vitest/prefer-called-exactly-once-with": "warn";
|
|
502
|
-
};
|
|
503
|
-
};
|
|
504
|
-
readonly env: {
|
|
505
|
-
readonly name: "vitest/env";
|
|
506
|
-
readonly languageOptions: {
|
|
507
|
-
readonly globals: {
|
|
508
|
-
readonly suite: "writable";
|
|
509
|
-
readonly test: "writable";
|
|
510
|
-
readonly describe: "writable";
|
|
511
|
-
readonly it: "writable";
|
|
512
|
-
readonly expectTypeOf: "writable";
|
|
513
|
-
readonly assertType: "writable";
|
|
514
|
-
readonly expect: "writable";
|
|
515
|
-
readonly assert: "writable";
|
|
516
|
-
readonly chai: "writable";
|
|
517
|
-
readonly vitest: "writable";
|
|
518
|
-
readonly vi: "writable";
|
|
519
|
-
readonly beforeAll: "writable";
|
|
520
|
-
readonly afterAll: "writable";
|
|
521
|
-
readonly beforeEach: "writable";
|
|
522
|
-
readonly afterEach: "writable";
|
|
523
|
-
readonly onTestFailed: "writable";
|
|
524
|
-
readonly onTestFinished: "writable";
|
|
525
|
-
};
|
|
526
|
-
};
|
|
527
|
-
};
|
|
528
|
-
};
|
|
529
|
-
};
|
|
45
|
+
readonly vitest: ESLint.Plugin;
|
|
530
46
|
};
|
|
531
47
|
readonly rules: {
|
|
532
48
|
readonly "vitest/expect-expect": "error";
|
|
533
|
-
readonly "vitest/no-identical-title": "error";
|
|
534
49
|
readonly "vitest/no-commented-out-tests": "error";
|
|
535
|
-
readonly "vitest/
|
|
536
|
-
readonly "vitest/valid-expect": "error";
|
|
537
|
-
readonly "vitest/valid-describe-callback": "error";
|
|
538
|
-
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
50
|
+
readonly "vitest/no-identical-title": "error";
|
|
539
51
|
readonly "vitest/no-import-node-test": "error";
|
|
540
52
|
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
53
|
+
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
54
|
+
readonly "vitest/valid-describe-callback": "error";
|
|
55
|
+
readonly "vitest/valid-expect": "error";
|
|
56
|
+
readonly "vitest/valid-title": "error";
|
|
541
57
|
};
|
|
542
58
|
};
|
|
543
59
|
readonly all: {
|
|
544
60
|
readonly name: "vitest/all";
|
|
545
61
|
readonly plugins: {
|
|
546
|
-
readonly vitest:
|
|
547
|
-
readonly meta: {
|
|
548
|
-
readonly name: "vitest";
|
|
549
|
-
readonly version: string;
|
|
550
|
-
};
|
|
551
|
-
readonly rules: {
|
|
552
|
-
readonly "prefer-lowercase-title": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageIds$3, [Partial<{
|
|
553
|
-
ignore: string[];
|
|
554
|
-
allowedPrefixes: string[];
|
|
555
|
-
ignoreTopLevelDescribe: boolean;
|
|
556
|
-
lowercaseFirstCharacterOnly: boolean;
|
|
557
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
558
|
-
readonly "max-nested-describe": _typescript_eslint_utils_ts_eslint0.RuleModule<"maxNestedDescribe", Options$4, PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
559
|
-
readonly "no-identical-title": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_ID$2, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
560
|
-
readonly "no-focused-tests": _typescript_eslint_utils_ts_eslint0.RuleModule<"noFocusedTests", Options$3, PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
561
|
-
readonly "no-conditional-tests": _typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalTests", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
562
|
-
readonly "expect-expect": _typescript_eslint_utils_ts_eslint0.RuleModule<"noAssertions", [{
|
|
563
|
-
assertFunctionNames: string[];
|
|
564
|
-
additionalTestBlockFunctions: string[];
|
|
565
|
-
}], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
566
|
-
readonly "hoisted-apis-on-top": _typescript_eslint_utils_ts_eslint0.RuleModule<"hoistedApisOnTop" | "suggestMoveHoistedApiToTop" | "suggestReplaceMockWithDoMock", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
567
|
-
readonly "consistent-test-it": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageIds$2, [Partial<{
|
|
568
|
-
fn: TestCaseName.it | TestCaseName.test;
|
|
569
|
-
withinDescribe: TestCaseName.it | TestCaseName.test;
|
|
570
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
571
|
-
readonly "consistent-vitest-vi": _typescript_eslint_utils_ts_eslint0.RuleModule<"consistentUtil", [Partial<{
|
|
572
|
-
fn: UtilName;
|
|
573
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
574
|
-
readonly "prefer-to-be": _typescript_eslint_utils_ts_eslint0.RuleModule<"useToBe" | "useToBeUndefined" | "useToBeDefined" | "useToBeNull" | "useToBeNaN", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
575
|
-
readonly "no-hooks": _typescript_eslint_utils_ts_eslint0.RuleModule<"unexpectedHook", [Partial<{
|
|
576
|
-
allow: readonly HookName[];
|
|
577
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
578
|
-
readonly "no-restricted-vi-methods": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_ID$1, Options$2, PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
579
|
-
readonly "consistent-test-filename": _typescript_eslint_utils_ts_eslint0.RuleModule<"consistentTestFilename", [Partial<{
|
|
580
|
-
pattern: string;
|
|
581
|
-
allTestPattern: string;
|
|
582
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
583
|
-
readonly "max-expects": _typescript_eslint_utils_ts_eslint0.RuleModule<"maxExpect", Options$1, PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
584
|
-
readonly "no-alias-methods": _typescript_eslint_utils_ts_eslint0.RuleModule<"noAliasMethods", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
585
|
-
readonly "no-commented-out-tests": _typescript_eslint_utils_ts_eslint0.RuleModule<"noCommentedOutTests", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
586
|
-
readonly "no-conditional-expect": _typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalExpect", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
587
|
-
readonly "no-conditional-in-test": _typescript_eslint_utils_ts_eslint0.RuleModule<"noConditionalInTest", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
588
|
-
readonly "no-disabled-tests": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_ID, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
589
|
-
readonly "no-done-callback": _typescript_eslint_utils_ts_eslint0.RuleModule<MessageIds$1, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
590
|
-
readonly "no-duplicate-hooks": _typescript_eslint_utils_ts_eslint0.RuleModule<"noDuplicateHooks", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
591
|
-
readonly "no-large-snapshots": _typescript_eslint_utils_ts_eslint0.RuleModule<"noSnapShot" | "tooLongSnapShot", [{
|
|
592
|
-
maxSize?: number;
|
|
593
|
-
inlineMaxSize?: number;
|
|
594
|
-
allowedSnapshots?: Record<string, Array<string | RegExp>>;
|
|
595
|
-
}], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
596
|
-
readonly "no-interpolation-in-snapshots": _typescript_eslint_utils_ts_eslint0.RuleModule<"noInterpolationInSnapshots", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
597
|
-
readonly "no-mocks-import": _typescript_eslint_utils_ts_eslint0.RuleModule<"noMocksImport", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
598
|
-
readonly "no-restricted-matchers": _typescript_eslint_utils_ts_eslint0.RuleModule<"restrictedChain" | "restrictedChainWithMessage", Record<string, string | null>[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
599
|
-
readonly "no-standalone-expect": _typescript_eslint_utils_ts_eslint0.RuleModule<"noStandaloneExpect", {
|
|
600
|
-
additionalTestBlockFunctions?: string[];
|
|
601
|
-
}[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
602
|
-
readonly "no-test-prefixes": _typescript_eslint_utils_ts_eslint0.RuleModule<"usePreferredName", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
603
|
-
readonly "no-test-return-statement": _typescript_eslint_utils_ts_eslint0.RuleModule<"noTestReturnStatement", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
604
|
-
readonly "no-import-node-test": _typescript_eslint_utils_ts_eslint0.RuleModule<"noImportNodeTest", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
605
|
-
readonly "prefer-called-with": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferCalledWith", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
606
|
-
readonly "valid-title": _typescript_eslint_utils_ts_eslint0.RuleModule<"titleMustBeString" | "emptyTitle" | "duplicatePrefix" | "accidentalSpace" | "disallowedWord" | "mustNotMatch" | "mustMatch" | "mustNotMatchCustom" | "mustMatchCustom", {
|
|
607
|
-
ignoreTypeOfDescribeName?: boolean;
|
|
608
|
-
allowArguments?: boolean;
|
|
609
|
-
disallowedWords?: string[];
|
|
610
|
-
mustNotMatch?: Partial<Record<"test" | "describe" | "it", string | [matcher: string, message?: string | undefined]>> | [matcher: string, message?: string | undefined] | string;
|
|
611
|
-
mustMatch?: Partial<Record<"test" | "describe" | "it", string | [matcher: string, message?: string | undefined]>> | [matcher: string, message?: string | undefined] | string;
|
|
612
|
-
}[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
613
|
-
readonly "valid-expect": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_IDS$2, [Partial<{
|
|
614
|
-
alwaysAwait: boolean;
|
|
615
|
-
asyncMatchers: string[];
|
|
616
|
-
minArgs: number;
|
|
617
|
-
maxArgs: number;
|
|
618
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
619
|
-
readonly "prefer-to-be-falsy": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToBeFalsy", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
620
|
-
readonly "prefer-to-be-object": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToBeObject", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
621
|
-
readonly "prefer-to-be-truthy": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToBeTruthy", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
622
|
-
readonly "prefer-to-have-length": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToHaveLength", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
623
|
-
readonly "prefer-equality-matcher": _typescript_eslint_utils_ts_eslint0.RuleModule<"useEqualityMatcher" | "suggestEqualityMatcher", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
624
|
-
readonly "prefer-strict-equal": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_IDS$1, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
625
|
-
readonly "prefer-expect-resolves": _typescript_eslint_utils_ts_eslint0.RuleModule<"expectResolves", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
626
|
-
readonly "prefer-each": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferEach", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
627
|
-
readonly "prefer-hooks-on-top": _typescript_eslint_utils_ts_eslint0.RuleModule<"noHookOnTop", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
628
|
-
readonly "prefer-hooks-in-order": _typescript_eslint_utils_ts_eslint0.RuleModule<"reorderHooks", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
629
|
-
readonly "require-local-test-context-for-concurrent-snapshots": _typescript_eslint_utils_ts_eslint0.RuleModule<"requireLocalTestContext", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
630
|
-
readonly "prefer-mock-promise-shorthand": _typescript_eslint_utils_ts_eslint0.RuleModule<"useMockShorthand", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
631
|
-
readonly "prefer-vi-mocked": _typescript_eslint_utils_ts_eslint0.RuleModule<"useViMocked", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
632
|
-
readonly "prefer-snapshot-hint": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingHint", [("always" | "multi" | undefined)?], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
633
|
-
readonly "valid-describe-callback": _typescript_eslint_utils_ts_eslint0.RuleModule<"nameAndCallback" | "secondArgumentMustBeFunction" | "unexpectedDescribeArgument" | "unexpectedReturnInDescribe", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
634
|
-
readonly "require-top-level-describe": _typescript_eslint_utils_ts_eslint0.RuleModule<"unexpectedHook" | "tooManyDescribes" | "unexpectedTestCase", [Partial<{
|
|
635
|
-
maxNumberOfTopLevelDescribes: number;
|
|
636
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
637
|
-
readonly "require-to-throw-message": _typescript_eslint_utils_ts_eslint0.RuleModule<"addErrorMessage", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
638
|
-
readonly "require-hook": _typescript_eslint_utils_ts_eslint0.RuleModule<"useHook", [{
|
|
639
|
-
allowedFunctionCalls?: readonly string[];
|
|
640
|
-
}], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
641
|
-
readonly "prefer-todo": _typescript_eslint_utils_ts_eslint0.RuleModule<"emptyTest" | "unimplementedTest", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
642
|
-
readonly "prefer-spy-on": _typescript_eslint_utils_ts_eslint0.RuleModule<"useViSpayOn", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
643
|
-
readonly "prefer-comparison-matcher": _typescript_eslint_utils_ts_eslint0.RuleModule<"useToBeComparison", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
644
|
-
readonly "prefer-describe-function-title": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferFunction", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
645
|
-
readonly "prefer-to-contain": _typescript_eslint_utils_ts_eslint0.RuleModule<"useToContain", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
646
|
-
readonly "prefer-expect-assertions": _typescript_eslint_utils_ts_eslint0.RuleModule<"hasAssertionsTakesNoArguments" | "assertionsRequiresOneArgument" | "assertionsRequiresNumberArgument" | "haveExpectAssertions" | "suggestAddingHasAssertions" | "suggestAddingAssertions" | "suggestRemovingExtraArguments", {
|
|
647
|
-
onlyFunctionsWithAsyncKeyword?: boolean;
|
|
648
|
-
onlyFunctionsWithExpectInLoop?: boolean;
|
|
649
|
-
onlyFunctionsWithExpectInCallback?: boolean;
|
|
650
|
-
}[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
651
|
-
readonly "padding-around-after-all-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
652
|
-
readonly "padding-around-after-each-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
653
|
-
readonly "padding-around-all": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
654
|
-
readonly "padding-around-before-all-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
655
|
-
readonly "padding-around-before-each-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
656
|
-
readonly "padding-around-describe-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
657
|
-
readonly "padding-around-expect-groups": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
658
|
-
readonly "padding-around-test-blocks": _typescript_eslint_utils_ts_eslint0.RuleModule<"missingPadding", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
659
|
-
readonly "valid-expect-in-promise": _typescript_eslint_utils_ts_eslint0.RuleModule<"expectInFloatingPromise", [Partial<{
|
|
660
|
-
alwaysAwait: boolean;
|
|
661
|
-
asyncMatchers: string[];
|
|
662
|
-
minArgs: number;
|
|
663
|
-
maxArgs: number;
|
|
664
|
-
}>], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
665
|
-
readonly "prefer-strict-boolean-matchers": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferToBeTrue" | "preferToBeFalse", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
666
|
-
readonly "require-mock-type-parameters": _typescript_eslint_utils_ts_eslint0.RuleModule<"noTypeParameter", {
|
|
667
|
-
checkImportFunctions?: boolean;
|
|
668
|
-
}[], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
669
|
-
readonly "no-importing-vitest-globals": _typescript_eslint_utils_ts_eslint0.RuleModule<MESSAGE_IDS, [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
670
|
-
readonly "prefer-importing-vitest-globals": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferImportingVitestGlobals", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
671
|
-
readonly "prefer-called-once": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferCalledOnce", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
672
|
-
readonly "prefer-called-times": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferCalledTimes", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
673
|
-
readonly "prefer-expect-type-of": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferExpectTypeOf", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
674
|
-
readonly "warn-todo": _typescript_eslint_utils_ts_eslint0.RuleModule<"warnTodo", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
675
|
-
readonly "prefer-import-in-mock": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferImport", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
676
|
-
readonly "prefer-called-exactly-once-with": _typescript_eslint_utils_ts_eslint0.RuleModule<"preferCalledExactlyOnceWith", [], PluginDocs, _typescript_eslint_utils_ts_eslint0.RuleListener>;
|
|
677
|
-
};
|
|
678
|
-
readonly environments: {
|
|
679
|
-
readonly env: {
|
|
680
|
-
readonly globals: {
|
|
681
|
-
readonly suite: true;
|
|
682
|
-
readonly test: true;
|
|
683
|
-
readonly describe: true;
|
|
684
|
-
readonly it: true;
|
|
685
|
-
readonly expectTypeOf: true;
|
|
686
|
-
readonly assertType: true;
|
|
687
|
-
readonly expect: true;
|
|
688
|
-
readonly assert: true;
|
|
689
|
-
readonly chai: true;
|
|
690
|
-
readonly vitest: true;
|
|
691
|
-
readonly vi: true;
|
|
692
|
-
readonly beforeAll: true;
|
|
693
|
-
readonly afterAll: true;
|
|
694
|
-
readonly beforeEach: true;
|
|
695
|
-
readonly afterEach: true;
|
|
696
|
-
readonly onTestFailed: true;
|
|
697
|
-
readonly onTestFinished: true;
|
|
698
|
-
};
|
|
699
|
-
};
|
|
700
|
-
};
|
|
701
|
-
readonly configs: {
|
|
702
|
-
readonly 'legacy-recommended': {
|
|
703
|
-
plugins: string[];
|
|
704
|
-
rules: {};
|
|
705
|
-
};
|
|
706
|
-
readonly 'legacy-all': {
|
|
707
|
-
plugins: string[];
|
|
708
|
-
rules: {};
|
|
709
|
-
};
|
|
710
|
-
readonly recommended: {
|
|
711
|
-
readonly name: "vitest/recommended";
|
|
712
|
-
readonly plugins: {
|
|
713
|
-
readonly vitest: /*elided*/any;
|
|
714
|
-
};
|
|
715
|
-
readonly rules: {
|
|
716
|
-
readonly "vitest/expect-expect": "error";
|
|
717
|
-
readonly "vitest/no-identical-title": "error";
|
|
718
|
-
readonly "vitest/no-commented-out-tests": "error";
|
|
719
|
-
readonly "vitest/valid-title": "error";
|
|
720
|
-
readonly "vitest/valid-expect": "error";
|
|
721
|
-
readonly "vitest/valid-describe-callback": "error";
|
|
722
|
-
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
723
|
-
readonly "vitest/no-import-node-test": "error";
|
|
724
|
-
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
725
|
-
};
|
|
726
|
-
};
|
|
727
|
-
readonly all: {
|
|
728
|
-
readonly name: "vitest/all";
|
|
729
|
-
readonly plugins: {
|
|
730
|
-
readonly vitest: /*elided*/any;
|
|
731
|
-
};
|
|
732
|
-
readonly rules: {
|
|
733
|
-
readonly "vitest/prefer-lowercase-title": "warn";
|
|
734
|
-
readonly "vitest/max-nested-describe": "warn";
|
|
735
|
-
readonly "vitest/no-focused-tests": "warn";
|
|
736
|
-
readonly "vitest/no-conditional-tests": "warn";
|
|
737
|
-
readonly "vitest/consistent-test-it": "warn";
|
|
738
|
-
readonly "vitest/consistent-vitest-vi": "warn";
|
|
739
|
-
readonly "vitest/no-hooks": "warn";
|
|
740
|
-
readonly "vitest/no-restricted-vi-methods": "warn";
|
|
741
|
-
readonly "vitest/consistent-test-filename": "warn";
|
|
742
|
-
readonly "vitest/max-expects": "warn";
|
|
743
|
-
readonly "vitest/no-alias-methods": "warn";
|
|
744
|
-
readonly "vitest/no-conditional-expect": "warn";
|
|
745
|
-
readonly "vitest/no-conditional-in-test": "warn";
|
|
746
|
-
readonly "vitest/no-disabled-tests": "warn";
|
|
747
|
-
readonly "vitest/no-done-callback": "warn";
|
|
748
|
-
readonly "vitest/no-duplicate-hooks": "warn";
|
|
749
|
-
readonly "vitest/no-large-snapshots": "warn";
|
|
750
|
-
readonly "vitest/no-interpolation-in-snapshots": "warn";
|
|
751
|
-
readonly "vitest/no-mocks-import": "warn";
|
|
752
|
-
readonly "vitest/no-restricted-matchers": "warn";
|
|
753
|
-
readonly "vitest/no-standalone-expect": "warn";
|
|
754
|
-
readonly "vitest/no-test-prefixes": "warn";
|
|
755
|
-
readonly "vitest/no-test-return-statement": "warn";
|
|
756
|
-
readonly "vitest/prefer-called-with": "warn";
|
|
757
|
-
readonly "vitest/prefer-to-be-falsy": "off";
|
|
758
|
-
readonly "vitest/prefer-to-be-object": "warn";
|
|
759
|
-
readonly "vitest/prefer-to-be-truthy": "off";
|
|
760
|
-
readonly "vitest/prefer-to-have-length": "warn";
|
|
761
|
-
readonly "vitest/prefer-equality-matcher": "warn";
|
|
762
|
-
readonly "vitest/prefer-strict-equal": "warn";
|
|
763
|
-
readonly "vitest/prefer-expect-resolves": "warn";
|
|
764
|
-
readonly "vitest/prefer-each": "warn";
|
|
765
|
-
readonly "vitest/prefer-hooks-on-top": "warn";
|
|
766
|
-
readonly "vitest/prefer-hooks-in-order": "warn";
|
|
767
|
-
readonly "vitest/prefer-mock-promise-shorthand": "warn";
|
|
768
|
-
readonly "vitest/prefer-vi-mocked": "warn";
|
|
769
|
-
readonly "vitest/prefer-snapshot-hint": "warn";
|
|
770
|
-
readonly "vitest/require-top-level-describe": "warn";
|
|
771
|
-
readonly "vitest/require-to-throw-message": "warn";
|
|
772
|
-
readonly "vitest/require-hook": "warn";
|
|
773
|
-
readonly "vitest/prefer-todo": "warn";
|
|
774
|
-
readonly "vitest/prefer-spy-on": "warn";
|
|
775
|
-
readonly "vitest/prefer-comparison-matcher": "warn";
|
|
776
|
-
readonly "vitest/prefer-describe-function-title": "warn";
|
|
777
|
-
readonly "vitest/prefer-to-contain": "warn";
|
|
778
|
-
readonly "vitest/prefer-expect-assertions": "warn";
|
|
779
|
-
readonly "vitest/prefer-to-be": "warn";
|
|
780
|
-
readonly "vitest/padding-around-after-all-blocks": "warn";
|
|
781
|
-
readonly "vitest/padding-around-after-each-blocks": "warn";
|
|
782
|
-
readonly "vitest/padding-around-all": "warn";
|
|
783
|
-
readonly "vitest/padding-around-before-all-blocks": "warn";
|
|
784
|
-
readonly "vitest/padding-around-before-each-blocks": "warn";
|
|
785
|
-
readonly "vitest/padding-around-describe-blocks": "warn";
|
|
786
|
-
readonly "vitest/padding-around-expect-groups": "warn";
|
|
787
|
-
readonly "vitest/padding-around-test-blocks": "warn";
|
|
788
|
-
readonly "vitest/valid-expect-in-promise": "warn";
|
|
789
|
-
readonly "vitest/expect-expect": "warn";
|
|
790
|
-
readonly "vitest/no-identical-title": "warn";
|
|
791
|
-
readonly "vitest/no-commented-out-tests": "warn";
|
|
792
|
-
readonly "vitest/valid-title": "warn";
|
|
793
|
-
readonly "vitest/valid-expect": "warn";
|
|
794
|
-
readonly "vitest/valid-describe-callback": "warn";
|
|
795
|
-
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "warn";
|
|
796
|
-
readonly "vitest/no-import-node-test": "warn";
|
|
797
|
-
readonly "vitest/prefer-strict-boolean-matchers": "warn";
|
|
798
|
-
readonly "vitest/require-mock-type-parameters": "warn";
|
|
799
|
-
readonly "vitest/no-importing-vitest-globals": "off";
|
|
800
|
-
readonly "vitest/prefer-importing-vitest-globals": "warn";
|
|
801
|
-
readonly "vitest/prefer-called-once": "off";
|
|
802
|
-
readonly "vitest/prefer-called-times": "warn";
|
|
803
|
-
readonly "vitest/prefer-expect-type-of": "warn";
|
|
804
|
-
readonly "vitest/hoisted-apis-on-top": "warn";
|
|
805
|
-
readonly "vitest/prefer-import-in-mock": "warn";
|
|
806
|
-
readonly "vitest/prefer-called-exactly-once-with": "warn";
|
|
807
|
-
};
|
|
808
|
-
};
|
|
809
|
-
readonly env: {
|
|
810
|
-
readonly name: "vitest/env";
|
|
811
|
-
readonly languageOptions: {
|
|
812
|
-
readonly globals: {
|
|
813
|
-
readonly suite: "writable";
|
|
814
|
-
readonly test: "writable";
|
|
815
|
-
readonly describe: "writable";
|
|
816
|
-
readonly it: "writable";
|
|
817
|
-
readonly expectTypeOf: "writable";
|
|
818
|
-
readonly assertType: "writable";
|
|
819
|
-
readonly expect: "writable";
|
|
820
|
-
readonly assert: "writable";
|
|
821
|
-
readonly chai: "writable";
|
|
822
|
-
readonly vitest: "writable";
|
|
823
|
-
readonly vi: "writable";
|
|
824
|
-
readonly beforeAll: "writable";
|
|
825
|
-
readonly afterAll: "writable";
|
|
826
|
-
readonly beforeEach: "writable";
|
|
827
|
-
readonly afterEach: "writable";
|
|
828
|
-
readonly onTestFailed: "writable";
|
|
829
|
-
readonly onTestFinished: "writable";
|
|
830
|
-
};
|
|
831
|
-
};
|
|
832
|
-
};
|
|
833
|
-
};
|
|
834
|
-
};
|
|
62
|
+
readonly vitest: ESLint.Plugin;
|
|
835
63
|
};
|
|
836
64
|
readonly rules: {
|
|
837
|
-
readonly "vitest/
|
|
838
|
-
readonly "vitest/max-nested-describe": "warn";
|
|
839
|
-
readonly "vitest/no-focused-tests": "warn";
|
|
840
|
-
readonly "vitest/no-conditional-tests": "warn";
|
|
65
|
+
readonly "vitest/consistent-test-filename": "warn";
|
|
841
66
|
readonly "vitest/consistent-test-it": "warn";
|
|
842
67
|
readonly "vitest/consistent-vitest-vi": "warn";
|
|
843
|
-
readonly "vitest/
|
|
844
|
-
readonly "vitest/
|
|
845
|
-
readonly "vitest/consistent-test-filename": "warn";
|
|
68
|
+
readonly "vitest/expect-expect": "warn";
|
|
69
|
+
readonly "vitest/hoisted-apis-on-top": "warn";
|
|
846
70
|
readonly "vitest/max-expects": "warn";
|
|
71
|
+
readonly "vitest/max-nested-describe": "warn";
|
|
847
72
|
readonly "vitest/no-alias-methods": "warn";
|
|
73
|
+
readonly "vitest/no-commented-out-tests": "warn";
|
|
848
74
|
readonly "vitest/no-conditional-expect": "warn";
|
|
849
75
|
readonly "vitest/no-conditional-in-test": "warn";
|
|
76
|
+
readonly "vitest/no-conditional-tests": "warn";
|
|
850
77
|
readonly "vitest/no-disabled-tests": "warn";
|
|
851
|
-
readonly "vitest/no-done-callback": "warn";
|
|
852
78
|
readonly "vitest/no-duplicate-hooks": "warn";
|
|
853
|
-
readonly "vitest/no-
|
|
79
|
+
readonly "vitest/no-focused-tests": "warn";
|
|
80
|
+
readonly "vitest/no-hooks": "warn";
|
|
81
|
+
readonly "vitest/no-identical-title": "warn";
|
|
82
|
+
readonly "vitest/no-import-node-test": "warn";
|
|
83
|
+
readonly "vitest/no-importing-vitest-globals": "off";
|
|
854
84
|
readonly "vitest/no-interpolation-in-snapshots": "warn";
|
|
85
|
+
readonly "vitest/no-large-snapshots": "warn";
|
|
855
86
|
readonly "vitest/no-mocks-import": "warn";
|
|
856
87
|
readonly "vitest/no-restricted-matchers": "warn";
|
|
88
|
+
readonly "vitest/no-restricted-vi-methods": "warn";
|
|
857
89
|
readonly "vitest/no-standalone-expect": "warn";
|
|
858
90
|
readonly "vitest/no-test-prefixes": "warn";
|
|
859
91
|
readonly "vitest/no-test-return-statement": "warn";
|
|
860
|
-
readonly "vitest/prefer-called-with": "warn";
|
|
861
|
-
readonly "vitest/prefer-to-be-falsy": "off";
|
|
862
|
-
readonly "vitest/prefer-to-be-object": "warn";
|
|
863
|
-
readonly "vitest/prefer-to-be-truthy": "off";
|
|
864
|
-
readonly "vitest/prefer-to-have-length": "warn";
|
|
865
|
-
readonly "vitest/prefer-equality-matcher": "warn";
|
|
866
|
-
readonly "vitest/prefer-strict-equal": "warn";
|
|
867
|
-
readonly "vitest/prefer-expect-resolves": "warn";
|
|
868
|
-
readonly "vitest/prefer-each": "warn";
|
|
869
|
-
readonly "vitest/prefer-hooks-on-top": "warn";
|
|
870
|
-
readonly "vitest/prefer-hooks-in-order": "warn";
|
|
871
|
-
readonly "vitest/prefer-mock-promise-shorthand": "warn";
|
|
872
|
-
readonly "vitest/prefer-vi-mocked": "warn";
|
|
873
|
-
readonly "vitest/prefer-snapshot-hint": "warn";
|
|
874
|
-
readonly "vitest/require-top-level-describe": "warn";
|
|
875
|
-
readonly "vitest/require-to-throw-message": "warn";
|
|
876
|
-
readonly "vitest/require-hook": "warn";
|
|
877
|
-
readonly "vitest/prefer-todo": "warn";
|
|
878
|
-
readonly "vitest/prefer-spy-on": "warn";
|
|
879
|
-
readonly "vitest/prefer-comparison-matcher": "warn";
|
|
880
|
-
readonly "vitest/prefer-describe-function-title": "warn";
|
|
881
|
-
readonly "vitest/prefer-to-contain": "warn";
|
|
882
|
-
readonly "vitest/prefer-expect-assertions": "warn";
|
|
883
|
-
readonly "vitest/prefer-to-be": "warn";
|
|
884
92
|
readonly "vitest/padding-around-after-all-blocks": "warn";
|
|
885
93
|
readonly "vitest/padding-around-after-each-blocks": "warn";
|
|
886
94
|
readonly "vitest/padding-around-all": "warn";
|
|
@@ -889,25 +97,44 @@ declare const plugin: {
|
|
|
889
97
|
readonly "vitest/padding-around-describe-blocks": "warn";
|
|
890
98
|
readonly "vitest/padding-around-expect-groups": "warn";
|
|
891
99
|
readonly "vitest/padding-around-test-blocks": "warn";
|
|
892
|
-
readonly "vitest/
|
|
893
|
-
readonly "vitest/expect-expect": "warn";
|
|
894
|
-
readonly "vitest/no-identical-title": "warn";
|
|
895
|
-
readonly "vitest/no-commented-out-tests": "warn";
|
|
896
|
-
readonly "vitest/valid-title": "warn";
|
|
897
|
-
readonly "vitest/valid-expect": "warn";
|
|
898
|
-
readonly "vitest/valid-describe-callback": "warn";
|
|
899
|
-
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "warn";
|
|
900
|
-
readonly "vitest/no-import-node-test": "warn";
|
|
901
|
-
readonly "vitest/prefer-strict-boolean-matchers": "warn";
|
|
902
|
-
readonly "vitest/require-mock-type-parameters": "warn";
|
|
903
|
-
readonly "vitest/no-importing-vitest-globals": "off";
|
|
904
|
-
readonly "vitest/prefer-importing-vitest-globals": "warn";
|
|
100
|
+
readonly "vitest/prefer-called-exactly-once-with": "warn";
|
|
905
101
|
readonly "vitest/prefer-called-once": "off";
|
|
906
102
|
readonly "vitest/prefer-called-times": "warn";
|
|
103
|
+
readonly "vitest/prefer-called-with": "warn";
|
|
104
|
+
readonly "vitest/prefer-comparison-matcher": "warn";
|
|
105
|
+
readonly "vitest/prefer-describe-function-title": "warn";
|
|
106
|
+
readonly "vitest/prefer-each": "warn";
|
|
107
|
+
readonly "vitest/prefer-equality-matcher": "warn";
|
|
108
|
+
readonly "vitest/prefer-expect-assertions": "warn";
|
|
109
|
+
readonly "vitest/prefer-expect-resolves": "warn";
|
|
907
110
|
readonly "vitest/prefer-expect-type-of": "warn";
|
|
908
|
-
readonly "vitest/
|
|
111
|
+
readonly "vitest/prefer-hooks-in-order": "warn";
|
|
112
|
+
readonly "vitest/prefer-hooks-on-top": "warn";
|
|
909
113
|
readonly "vitest/prefer-import-in-mock": "warn";
|
|
910
|
-
readonly "vitest/prefer-
|
|
114
|
+
readonly "vitest/prefer-importing-vitest-globals": "warn";
|
|
115
|
+
readonly "vitest/prefer-lowercase-title": "warn";
|
|
116
|
+
readonly "vitest/prefer-mock-promise-shorthand": "warn";
|
|
117
|
+
readonly "vitest/prefer-snapshot-hint": "warn";
|
|
118
|
+
readonly "vitest/prefer-spy-on": "warn";
|
|
119
|
+
readonly "vitest/prefer-strict-boolean-matchers": "warn";
|
|
120
|
+
readonly "vitest/prefer-strict-equal": "warn";
|
|
121
|
+
readonly "vitest/prefer-to-be-falsy": "off";
|
|
122
|
+
readonly "vitest/prefer-to-be-object": "warn";
|
|
123
|
+
readonly "vitest/prefer-to-be-truthy": "off";
|
|
124
|
+
readonly "vitest/prefer-to-be": "warn";
|
|
125
|
+
readonly "vitest/prefer-to-contain": "warn";
|
|
126
|
+
readonly "vitest/prefer-to-have-length": "warn";
|
|
127
|
+
readonly "vitest/prefer-todo": "warn";
|
|
128
|
+
readonly "vitest/prefer-vi-mocked": "warn";
|
|
129
|
+
readonly "vitest/require-hook": "warn";
|
|
130
|
+
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "warn";
|
|
131
|
+
readonly "vitest/require-mock-type-parameters": "warn";
|
|
132
|
+
readonly "vitest/require-to-throw-message": "warn";
|
|
133
|
+
readonly "vitest/require-top-level-describe": "warn";
|
|
134
|
+
readonly "vitest/valid-describe-callback": "warn";
|
|
135
|
+
readonly "vitest/valid-expect-in-promise": "warn";
|
|
136
|
+
readonly "vitest/valid-expect": "warn";
|
|
137
|
+
readonly "vitest/valid-title": "warn";
|
|
911
138
|
};
|
|
912
139
|
};
|
|
913
140
|
readonly env: {
|