Skip to content

vp migrate should auto remove esModuleInterop: false from tsconfig.json #1145

@fengmk2

Description

@fengmk2

Avoid vp lint --type-aware error.

vp lint
VITE+ - The Unified Toolchain for the Web

The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option. You can remove the plugin and set resolve.tsconfigPaths: true in your Vite config instead.

  × typescript(tsconfig-error): Invalid tsconfig
    ╭─[tsconfig.json:9:24]
  8 │     "skipLibCheck": true,
  9 │     "esModuleInterop": false,
    ·                        ─────
 10 │     "allowSyntheticDefaultImports": true,
    ╰────
  help: Option 'esModuleInterop=false' has been removed. Please remove it from your configuration.
        See https://github.com/oxc-project/tsgolint/issues/351 for more information.

Found 0 warnings and 1 error.
Finished in 233ms on 13 files with 213 rules using 16 threads.

reproduce repo: https://github.com/fengmk2/bun-vite-template/tree/esModuleInterop-false

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions