@vitest/eslint-plugin 1.4.3 → 1.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/README.md +81 -79
- package/dist/index.cjs +315 -193
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +315 -193
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -46,13 +46,20 @@ declare const plugin: {
|
|
|
46
46
|
};
|
|
47
47
|
readonly rules: {
|
|
48
48
|
readonly "vitest/expect-expect": "error";
|
|
49
|
+
readonly "vitest/no-conditional-expect": "error";
|
|
50
|
+
readonly "vitest/no-disabled-tests": "warn";
|
|
51
|
+
readonly "vitest/no-focused-tests": "error";
|
|
49
52
|
readonly "vitest/no-commented-out-tests": "error";
|
|
50
53
|
readonly "vitest/no-identical-title": "error";
|
|
51
54
|
readonly "vitest/no-import-node-test": "error";
|
|
55
|
+
readonly "vitest/no-interpolation-in-snapshots": "error";
|
|
56
|
+
readonly "vitest/no-mocks-import": "error";
|
|
57
|
+
readonly "vitest/no-standalone-expect": "error";
|
|
52
58
|
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
53
59
|
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
54
60
|
readonly "vitest/valid-describe-callback": "error";
|
|
55
61
|
readonly "vitest/valid-expect": "error";
|
|
62
|
+
readonly "vitest/valid-expect-in-promise": "error";
|
|
56
63
|
readonly "vitest/valid-title": "error";
|
|
57
64
|
};
|
|
58
65
|
};
|
|
@@ -64,6 +71,7 @@ declare const plugin: {
|
|
|
64
71
|
readonly rules: {
|
|
65
72
|
readonly "vitest/consistent-test-filename": "warn";
|
|
66
73
|
readonly "vitest/consistent-test-it": "warn";
|
|
74
|
+
readonly "vitest/consistent-each-for": "warn";
|
|
67
75
|
readonly "vitest/consistent-vitest-vi": "warn";
|
|
68
76
|
readonly "vitest/expect-expect": "warn";
|
|
69
77
|
readonly "vitest/hoisted-apis-on-top": "warn";
|
|
@@ -136,6 +144,7 @@ declare const plugin: {
|
|
|
136
144
|
readonly "vitest/valid-expect": "warn";
|
|
137
145
|
readonly "vitest/valid-title": "warn";
|
|
138
146
|
readonly "vitest/require-awaited-expect-poll": "warn";
|
|
147
|
+
readonly "vitest/require-import-vi-mock": "warn";
|
|
139
148
|
};
|
|
140
149
|
};
|
|
141
150
|
readonly env: {
|
package/dist/index.d.ts
CHANGED
|
@@ -46,13 +46,20 @@ declare const plugin: {
|
|
|
46
46
|
};
|
|
47
47
|
readonly rules: {
|
|
48
48
|
readonly "vitest/expect-expect": "error";
|
|
49
|
+
readonly "vitest/no-conditional-expect": "error";
|
|
50
|
+
readonly "vitest/no-disabled-tests": "warn";
|
|
51
|
+
readonly "vitest/no-focused-tests": "error";
|
|
49
52
|
readonly "vitest/no-commented-out-tests": "error";
|
|
50
53
|
readonly "vitest/no-identical-title": "error";
|
|
51
54
|
readonly "vitest/no-import-node-test": "error";
|
|
55
|
+
readonly "vitest/no-interpolation-in-snapshots": "error";
|
|
56
|
+
readonly "vitest/no-mocks-import": "error";
|
|
57
|
+
readonly "vitest/no-standalone-expect": "error";
|
|
52
58
|
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
53
59
|
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
54
60
|
readonly "vitest/valid-describe-callback": "error";
|
|
55
61
|
readonly "vitest/valid-expect": "error";
|
|
62
|
+
readonly "vitest/valid-expect-in-promise": "error";
|
|
56
63
|
readonly "vitest/valid-title": "error";
|
|
57
64
|
};
|
|
58
65
|
};
|
|
@@ -64,6 +71,7 @@ declare const plugin: {
|
|
|
64
71
|
readonly rules: {
|
|
65
72
|
readonly "vitest/consistent-test-filename": "warn";
|
|
66
73
|
readonly "vitest/consistent-test-it": "warn";
|
|
74
|
+
readonly "vitest/consistent-each-for": "warn";
|
|
67
75
|
readonly "vitest/consistent-vitest-vi": "warn";
|
|
68
76
|
readonly "vitest/expect-expect": "warn";
|
|
69
77
|
readonly "vitest/hoisted-apis-on-top": "warn";
|
|
@@ -136,6 +144,7 @@ declare const plugin: {
|
|
|
136
144
|
readonly "vitest/valid-expect": "warn";
|
|
137
145
|
readonly "vitest/valid-title": "warn";
|
|
138
146
|
readonly "vitest/require-awaited-expect-poll": "warn";
|
|
147
|
+
readonly "vitest/require-import-vi-mock": "warn";
|
|
139
148
|
};
|
|
140
149
|
};
|
|
141
150
|
readonly env: {
|