File tree Expand file tree Collapse file tree 1 file changed +23
-23
lines changed
packages/cli/snap-tests/lint-vite-plus-imports Expand file tree Collapse file tree 1 file changed +23
-23
lines changed Original file line number Diff line number Diff line change 11[1]> vp lint src/index.ts src/types.ts # should fail before fix
22
3- × vite-plus(prefer-vite-plus-imports): Use 'vite-plus' instead of 'vite' in Vite+ projects.
4- ╭─[src/index.ts:1:30]
5- 1 │ import { defineConfig } from 'vite';
6- · ──────
7- 2 │
8- ╰────
9-
10- × vite-plus(prefer-vite-plus-imports): Use 'vite-plus' instead of 'vitest/config' in Vite+ projects.
11- ╭─[src/index.ts:3:30]
12- 2 │
13- 3 │ const configPromise = import('vitest/config');
14- · ───────────────
15- 4 │
16- ╰────
17-
18- × vite-plus(prefer-vite-plus-imports): Use 'vite-plus/test' instead of 'vitest' in Vite+ projects.
19- ╭─[src/index.ts:5:24]
20- 4 │
21- 5 │ export { expect } from 'vitest';
22- · ────────
23- 6 │
24- ╰────
25-
263 × vite-plus(prefer-vite-plus-imports): Use 'vite-plus/test' instead of 'vitest' in Vite+ projects.
274 ╭─[src/types.ts:1:30]
285 1 │ type TestFn = (typeof import('vitest'))['test'];
7855 10 │
7956 ╰────
8057
58+ × vite-plus(prefer-vite-plus-imports): Use 'vite-plus' instead of 'vite' in Vite+ projects.
59+ ╭─[src/index.ts:1:30]
60+ 1 │ import { defineConfig } from 'vite';
61+ · ──────
62+ 2 │
63+ ╰────
64+
65+ × vite-plus(prefer-vite-plus-imports): Use 'vite-plus' instead of 'vitest/config' in Vite+ projects.
66+ ╭─[src/index.ts:3:30]
67+ 2 │
68+ 3 │ const configPromise = import('vitest/config');
69+ · ───────────────
70+ 4 │
71+ ╰────
72+
73+ × vite-plus(prefer-vite-plus-imports): Use 'vite-plus/test' instead of 'vitest' in Vite+ projects.
74+ ╭─[src/index.ts:5:24]
75+ 4 │
76+ 5 │ export { expect } from 'vitest';
77+ · ────────
78+ 6 │
79+ ╰────
80+
8181Found 0 warnings and 10 errors.
8282Finished in <variable>ms on 2 files with <variable> rules using <variable> threads.
8383
You can’t perform that action at this time.
0 commit comments