@theholocron/eslint-config 8.4.8 → 8.5.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/dist/configs/vitest.d.ts
CHANGED
|
@@ -1,206 +1,5 @@
|
|
|
1
|
+
import { Linter } from "eslint";
|
|
1
2
|
//#region configs/vitest.d.ts
|
|
2
|
-
declare function vitestConfig():
|
|
3
|
-
name: string;
|
|
4
|
-
files: string[];
|
|
5
|
-
plugins: {
|
|
6
|
-
vitest: {
|
|
7
|
-
readonly meta: {
|
|
8
|
-
readonly name: "vitest";
|
|
9
|
-
readonly version: string;
|
|
10
|
-
};
|
|
11
|
-
readonly rules: Record<string, import("eslint").Rule.RuleModule>;
|
|
12
|
-
readonly environments: {
|
|
13
|
-
readonly env: {
|
|
14
|
-
readonly globals: {
|
|
15
|
-
readonly suite: true;
|
|
16
|
-
readonly test: true;
|
|
17
|
-
readonly describe: true;
|
|
18
|
-
readonly it: true;
|
|
19
|
-
readonly expectTypeOf: true;
|
|
20
|
-
readonly assertType: true;
|
|
21
|
-
readonly expect: true;
|
|
22
|
-
readonly assert: true;
|
|
23
|
-
readonly chai: true;
|
|
24
|
-
readonly vitest: true;
|
|
25
|
-
readonly vi: true;
|
|
26
|
-
readonly beforeAll: true;
|
|
27
|
-
readonly afterAll: true;
|
|
28
|
-
readonly beforeEach: true;
|
|
29
|
-
readonly afterEach: true;
|
|
30
|
-
readonly onTestFailed: true;
|
|
31
|
-
readonly onTestFinished: true;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
readonly configs: {
|
|
36
|
-
readonly "legacy-recommended": {
|
|
37
|
-
plugins: string[];
|
|
38
|
-
rules: {};
|
|
39
|
-
};
|
|
40
|
-
readonly "legacy-all": {
|
|
41
|
-
plugins: string[];
|
|
42
|
-
rules: {};
|
|
43
|
-
};
|
|
44
|
-
readonly recommended: {
|
|
45
|
-
readonly name: "vitest/recommended";
|
|
46
|
-
readonly plugins: {
|
|
47
|
-
readonly vitest: import("eslint").ESLint.Plugin;
|
|
48
|
-
};
|
|
49
|
-
readonly rules: {
|
|
50
|
-
readonly "vitest/expect-expect": "error";
|
|
51
|
-
readonly "vitest/no-commented-out-tests": "error";
|
|
52
|
-
readonly "vitest/no-conditional-expect": "error";
|
|
53
|
-
readonly "vitest/no-disabled-tests": "warn";
|
|
54
|
-
readonly "vitest/no-focused-tests": "error";
|
|
55
|
-
readonly "vitest/no-identical-title": "error";
|
|
56
|
-
readonly "vitest/no-import-node-test": "error";
|
|
57
|
-
readonly "vitest/no-interpolation-in-snapshots": "error";
|
|
58
|
-
readonly "vitest/no-mocks-import": "error";
|
|
59
|
-
readonly "vitest/no-standalone-expect": "error";
|
|
60
|
-
readonly "vitest/no-unneeded-async-expect-function": "error";
|
|
61
|
-
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
62
|
-
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
63
|
-
readonly "vitest/valid-describe-callback": "error";
|
|
64
|
-
readonly "vitest/valid-expect": "error";
|
|
65
|
-
readonly "vitest/valid-expect-in-promise": "error";
|
|
66
|
-
readonly "vitest/valid-title": "error";
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
readonly all: {
|
|
70
|
-
readonly name: "vitest/all";
|
|
71
|
-
readonly plugins: {
|
|
72
|
-
readonly vitest: import("eslint").ESLint.Plugin;
|
|
73
|
-
};
|
|
74
|
-
readonly rules: {
|
|
75
|
-
readonly "vitest/consistent-each-for": "warn";
|
|
76
|
-
readonly "vitest/consistent-test-filename": "warn";
|
|
77
|
-
readonly "vitest/consistent-test-it": "warn";
|
|
78
|
-
readonly "vitest/consistent-vitest-vi": "warn";
|
|
79
|
-
readonly "vitest/expect-expect": "warn";
|
|
80
|
-
readonly "vitest/hoisted-apis-on-top": "warn";
|
|
81
|
-
readonly "vitest/max-expects": "warn";
|
|
82
|
-
readonly "vitest/max-nested-describe": "warn";
|
|
83
|
-
readonly "vitest/no-alias-methods": "warn";
|
|
84
|
-
readonly "vitest/no-commented-out-tests": "warn";
|
|
85
|
-
readonly "vitest/no-conditional-expect": "warn";
|
|
86
|
-
readonly "vitest/no-conditional-in-test": "warn";
|
|
87
|
-
readonly "vitest/no-conditional-tests": "warn";
|
|
88
|
-
readonly "vitest/no-disabled-tests": "warn";
|
|
89
|
-
readonly "vitest/no-duplicate-hooks": "warn";
|
|
90
|
-
readonly "vitest/no-focused-tests": "warn";
|
|
91
|
-
readonly "vitest/no-hooks": "warn";
|
|
92
|
-
readonly "vitest/no-identical-title": "warn";
|
|
93
|
-
readonly "vitest/no-import-node-test": "warn";
|
|
94
|
-
readonly "vitest/no-importing-vitest-globals": "off";
|
|
95
|
-
readonly "vitest/no-interpolation-in-snapshots": "warn";
|
|
96
|
-
readonly "vitest/no-large-snapshots": "warn";
|
|
97
|
-
readonly "vitest/no-mocks-import": "warn";
|
|
98
|
-
readonly "vitest/no-restricted-matchers": "warn";
|
|
99
|
-
readonly "vitest/no-restricted-vi-methods": "warn";
|
|
100
|
-
readonly "vitest/no-standalone-expect": "warn";
|
|
101
|
-
readonly "vitest/no-test-prefixes": "warn";
|
|
102
|
-
readonly "vitest/no-test-return-statement": "warn";
|
|
103
|
-
readonly "vitest/no-unneeded-async-expect-function": "warn";
|
|
104
|
-
readonly "vitest/padding-around-after-all-blocks": "warn";
|
|
105
|
-
readonly "vitest/padding-around-after-each-blocks": "warn";
|
|
106
|
-
readonly "vitest/padding-around-all": "warn";
|
|
107
|
-
readonly "vitest/padding-around-before-all-blocks": "warn";
|
|
108
|
-
readonly "vitest/padding-around-before-each-blocks": "warn";
|
|
109
|
-
readonly "vitest/padding-around-describe-blocks": "warn";
|
|
110
|
-
readonly "vitest/padding-around-expect-groups": "warn";
|
|
111
|
-
readonly "vitest/padding-around-test-blocks": "warn";
|
|
112
|
-
readonly "vitest/prefer-called-exactly-once-with": "warn";
|
|
113
|
-
readonly "vitest/prefer-called-once": "off";
|
|
114
|
-
readonly "vitest/prefer-called-times": "warn";
|
|
115
|
-
readonly "vitest/prefer-called-with": "warn";
|
|
116
|
-
readonly "vitest/prefer-comparison-matcher": "warn";
|
|
117
|
-
readonly "vitest/prefer-describe-function-title": "warn";
|
|
118
|
-
readonly "vitest/prefer-each": "warn";
|
|
119
|
-
readonly "vitest/prefer-equality-matcher": "warn";
|
|
120
|
-
readonly "vitest/prefer-expect-assertions": "warn";
|
|
121
|
-
readonly "vitest/prefer-expect-resolves": "warn";
|
|
122
|
-
readonly "vitest/prefer-expect-type-of": "warn";
|
|
123
|
-
readonly "vitest/prefer-hooks-in-order": "warn";
|
|
124
|
-
readonly "vitest/prefer-hooks-on-top": "warn";
|
|
125
|
-
readonly "vitest/prefer-import-in-mock": "warn";
|
|
126
|
-
readonly "vitest/prefer-importing-vitest-globals": "warn";
|
|
127
|
-
readonly "vitest/prefer-lowercase-title": "warn";
|
|
128
|
-
readonly "vitest/prefer-mock-promise-shorthand": "warn";
|
|
129
|
-
readonly "vitest/prefer-snapshot-hint": "warn";
|
|
130
|
-
readonly "vitest/prefer-spy-on": "warn";
|
|
131
|
-
readonly "vitest/prefer-strict-boolean-matchers": "warn";
|
|
132
|
-
readonly "vitest/prefer-strict-equal": "warn";
|
|
133
|
-
readonly "vitest/prefer-to-be-falsy": "off";
|
|
134
|
-
readonly "vitest/prefer-to-be-object": "warn";
|
|
135
|
-
readonly "vitest/prefer-to-be-truthy": "off";
|
|
136
|
-
readonly "vitest/prefer-to-be": "warn";
|
|
137
|
-
readonly "vitest/prefer-to-contain": "warn";
|
|
138
|
-
readonly "vitest/prefer-to-have-been-called-times": "warn";
|
|
139
|
-
readonly "vitest/prefer-to-have-length": "warn";
|
|
140
|
-
readonly "vitest/prefer-todo": "warn";
|
|
141
|
-
readonly "vitest/prefer-vi-mocked": "warn";
|
|
142
|
-
readonly "vitest/require-awaited-expect-poll": "warn";
|
|
143
|
-
readonly "vitest/require-hook": "warn";
|
|
144
|
-
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "warn";
|
|
145
|
-
readonly "vitest/require-mock-type-parameters": "warn";
|
|
146
|
-
readonly "vitest/require-test-timeout": "off";
|
|
147
|
-
readonly "vitest/require-to-throw-message": "warn";
|
|
148
|
-
readonly "vitest/require-top-level-describe": "warn";
|
|
149
|
-
readonly "vitest/unbound-method": "warn";
|
|
150
|
-
readonly "vitest/valid-describe-callback": "warn";
|
|
151
|
-
readonly "vitest/valid-expect-in-promise": "warn";
|
|
152
|
-
readonly "vitest/valid-expect": "warn";
|
|
153
|
-
readonly "vitest/valid-title": "warn";
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
readonly env: {
|
|
157
|
-
readonly name: "vitest/env";
|
|
158
|
-
readonly languageOptions: {
|
|
159
|
-
readonly globals: {
|
|
160
|
-
readonly suite: "writable";
|
|
161
|
-
readonly test: "writable";
|
|
162
|
-
readonly describe: "writable";
|
|
163
|
-
readonly it: "writable";
|
|
164
|
-
readonly expectTypeOf: "writable";
|
|
165
|
-
readonly assertType: "writable";
|
|
166
|
-
readonly expect: "writable";
|
|
167
|
-
readonly assert: "writable";
|
|
168
|
-
readonly chai: "writable";
|
|
169
|
-
readonly vitest: "writable";
|
|
170
|
-
readonly vi: "writable";
|
|
171
|
-
readonly beforeAll: "writable";
|
|
172
|
-
readonly afterAll: "writable";
|
|
173
|
-
readonly beforeEach: "writable";
|
|
174
|
-
readonly afterEach: "writable";
|
|
175
|
-
readonly onTestFailed: "writable";
|
|
176
|
-
readonly onTestFinished: "writable";
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
rules: {
|
|
184
|
-
"vitest/expect-expect": (string | {
|
|
185
|
-
assertFunctionNames: string[];
|
|
186
|
-
})[];
|
|
187
|
-
"vitest/no-commented-out-tests": "error";
|
|
188
|
-
"vitest/no-conditional-expect": "error";
|
|
189
|
-
"vitest/no-disabled-tests": "warn";
|
|
190
|
-
"vitest/no-focused-tests": "error";
|
|
191
|
-
"vitest/no-identical-title": "error";
|
|
192
|
-
"vitest/no-import-node-test": "error";
|
|
193
|
-
"vitest/no-interpolation-in-snapshots": "error";
|
|
194
|
-
"vitest/no-mocks-import": "error";
|
|
195
|
-
"vitest/no-standalone-expect": "error";
|
|
196
|
-
"vitest/no-unneeded-async-expect-function": "error";
|
|
197
|
-
"vitest/prefer-called-exactly-once-with": "error";
|
|
198
|
-
"vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
199
|
-
"vitest/valid-describe-callback": "error";
|
|
200
|
-
"vitest/valid-expect": "error";
|
|
201
|
-
"vitest/valid-expect-in-promise": "error";
|
|
202
|
-
"vitest/valid-title": "error";
|
|
203
|
-
};
|
|
204
|
-
}[];
|
|
3
|
+
declare function vitestConfig(): Linter.Config[];
|
|
205
4
|
//#endregion
|
|
206
5
|
export { vitestConfig as vitest, vitestConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/eslint-config",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.0",
|
|
4
4
|
"description": "A ESLint configuration for writing well-formed Javascript within the Galaxy.",
|
|
5
5
|
"homepage": "https://github.com/theholocron/configs/tree/main/packages/eslint-config#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/configs/issues",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"typescript": "^5.9.3",
|
|
36
36
|
"typescript-eslint": "^8.67.0",
|
|
37
37
|
"vitest": "^4.1.10",
|
|
38
|
-
"@theholocron/tsconfig": "8.
|
|
39
|
-
"@theholocron/vitest-config": "8.
|
|
38
|
+
"@theholocron/tsconfig": "8.5.0",
|
|
39
|
+
"@theholocron/vitest-config": "8.5.0"
|
|
40
40
|
},
|
|
41
41
|
"exports": {
|
|
42
42
|
".": {
|