@vitest/eslint-plugin 1.5.2 → 1.6.1
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 +2 -1
- package/dist/index.cjs +252 -197
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +252 -197
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -55,6 +55,7 @@ declare const plugin: {
|
|
|
55
55
|
readonly "vitest/no-interpolation-in-snapshots": "error";
|
|
56
56
|
readonly "vitest/no-mocks-import": "error";
|
|
57
57
|
readonly "vitest/no-standalone-expect": "error";
|
|
58
|
+
readonly "vitest/no-unneeded-async-expect-function": "error";
|
|
58
59
|
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
59
60
|
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
60
61
|
readonly "vitest/valid-describe-callback": "error";
|
|
@@ -97,6 +98,7 @@ declare const plugin: {
|
|
|
97
98
|
readonly "vitest/no-standalone-expect": "warn";
|
|
98
99
|
readonly "vitest/no-test-prefixes": "warn";
|
|
99
100
|
readonly "vitest/no-test-return-statement": "warn";
|
|
101
|
+
readonly "vitest/no-unneeded-async-expect-function": "warn";
|
|
100
102
|
readonly "vitest/padding-around-after-all-blocks": "warn";
|
|
101
103
|
readonly "vitest/padding-around-after-each-blocks": "warn";
|
|
102
104
|
readonly "vitest/padding-around-all": "warn";
|
|
@@ -131,6 +133,7 @@ declare const plugin: {
|
|
|
131
133
|
readonly "vitest/prefer-to-be-truthy": "off";
|
|
132
134
|
readonly "vitest/prefer-to-be": "warn";
|
|
133
135
|
readonly "vitest/prefer-to-contain": "warn";
|
|
136
|
+
readonly "vitest/prefer-to-have-been-called-times": "warn";
|
|
134
137
|
readonly "vitest/prefer-to-have-length": "warn";
|
|
135
138
|
readonly "vitest/prefer-todo": "warn";
|
|
136
139
|
readonly "vitest/prefer-vi-mocked": "warn";
|
|
@@ -144,7 +147,6 @@ declare const plugin: {
|
|
|
144
147
|
readonly "vitest/valid-expect": "warn";
|
|
145
148
|
readonly "vitest/valid-title": "warn";
|
|
146
149
|
readonly "vitest/require-awaited-expect-poll": "warn";
|
|
147
|
-
readonly "vitest/require-import-vi-mock": "warn";
|
|
148
150
|
};
|
|
149
151
|
};
|
|
150
152
|
readonly env: {
|
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ declare const plugin: {
|
|
|
55
55
|
readonly "vitest/no-interpolation-in-snapshots": "error";
|
|
56
56
|
readonly "vitest/no-mocks-import": "error";
|
|
57
57
|
readonly "vitest/no-standalone-expect": "error";
|
|
58
|
+
readonly "vitest/no-unneeded-async-expect-function": "error";
|
|
58
59
|
readonly "vitest/prefer-called-exactly-once-with": "error";
|
|
59
60
|
readonly "vitest/require-local-test-context-for-concurrent-snapshots": "error";
|
|
60
61
|
readonly "vitest/valid-describe-callback": "error";
|
|
@@ -97,6 +98,7 @@ declare const plugin: {
|
|
|
97
98
|
readonly "vitest/no-standalone-expect": "warn";
|
|
98
99
|
readonly "vitest/no-test-prefixes": "warn";
|
|
99
100
|
readonly "vitest/no-test-return-statement": "warn";
|
|
101
|
+
readonly "vitest/no-unneeded-async-expect-function": "warn";
|
|
100
102
|
readonly "vitest/padding-around-after-all-blocks": "warn";
|
|
101
103
|
readonly "vitest/padding-around-after-each-blocks": "warn";
|
|
102
104
|
readonly "vitest/padding-around-all": "warn";
|
|
@@ -131,6 +133,7 @@ declare const plugin: {
|
|
|
131
133
|
readonly "vitest/prefer-to-be-truthy": "off";
|
|
132
134
|
readonly "vitest/prefer-to-be": "warn";
|
|
133
135
|
readonly "vitest/prefer-to-contain": "warn";
|
|
136
|
+
readonly "vitest/prefer-to-have-been-called-times": "warn";
|
|
134
137
|
readonly "vitest/prefer-to-have-length": "warn";
|
|
135
138
|
readonly "vitest/prefer-todo": "warn";
|
|
136
139
|
readonly "vitest/prefer-vi-mocked": "warn";
|
|
@@ -144,7 +147,6 @@ declare const plugin: {
|
|
|
144
147
|
readonly "vitest/valid-expect": "warn";
|
|
145
148
|
readonly "vitest/valid-title": "warn";
|
|
146
149
|
readonly "vitest/require-awaited-expect-poll": "warn";
|
|
147
|
-
readonly "vitest/require-import-vi-mock": "warn";
|
|
148
150
|
};
|
|
149
151
|
};
|
|
150
152
|
readonly env: {
|