You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): prompt to migrate baseUrl if detected (#1692)
Based on #1688.
---
This PR allows the user to remove `baseUrl` from `tsconfig.json` before
applying type-aware lint defaults. When run in non-interactive mode,
this will simply be applied
Internally `vp dlx @andrewbranch/ts5to6 --fixBaseUrl .` is being run.
---------
Co-authored-by: MK <fengmk2@gmail.com>
Copy file name to clipboardExpand all lines: docs/guide/troubleshooting.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,12 @@ If you are migrating an existing project and it still depends on older Vite or V
18
18
## `vp check` does not run type-aware lint rules or type checks
19
19
20
20
- Confirm that `lint.options.typeAware` and `lint.options.typeCheck` are enabled in `vite.config.ts`
21
-
- Check whether your `tsconfig.json` uses `compilerOptions.baseUrl`
21
+
- Check whether your `tsconfig.json`still uses `compilerOptions.baseUrl`
22
22
23
-
The Oxlint type checker path powered by `tsgolint` does not support `baseUrl`, so Vite+ skips `typeAware` and `typeCheck` when that setting is present.
23
+
The Oxlint type checker path powered by `tsgolint` does not support `baseUrl`.
24
+
`vp migrate` and `vp lint --init` try to run the `vp dlx @andrewbranch/ts5to6 --fixBaseUrl .`
25
+
fix before enabling type-aware linting. If that fix fails or is declined, Vite+
26
+
skips `typeAware` and `typeCheck`.
24
27
25
28
## `vp lint` / `vp fmt` may fail to read `vite.config.ts`
0 commit comments