Skip to content

Introduction ​

vite-plugin-checker is a Vite plugin that runs type checkers and linters while you develop and build. It reports problems in the terminal and in an overlay in the browser, so you see them without switching to another tool.

npm versionnpm downloads per monthCI status

The vite-plugin-checker overlay showing a TypeScript error with a code frame

Why use it ​

Vite transpiles TypeScript without type checking it, which keeps the dev server fast. The tradeoff is that type errors only show up in your editor or when you run tsc yourself. Linters work the same way: Vite doesn't run them.

vite-plugin-checker closes that gap:

  • In dev mode, each checker runs in a worker thread in watch mode. Results appear in the terminal and in the browser overlay without blocking transforms or HMR.
  • In build mode, each checker runs its CLI in parallel with the Vite build. If a check fails, the build fails.

For details, see Dev and build modes.

Supported checkers ​

CheckerOptionChecks
TypeScripttypescriptTypes in .ts and .tsx
vue-tscvueTscTypes in Vue single-file components
svelte-checksvelteCheckTypes and diagnostics in Svelte components
ESLinteslintJavaScript and TypeScript lint rules
BiomebiomeLint and format rules
oxlintoxlintJavaScript and TypeScript lint rules
StylelintstylelintCSS lint rules

You can enable several checkers at once. Each one runs independently.

Requirements ​

  • Node.js ^22.22.0 or >=24.11.0
  • Vite >=5.4.21
  • The packages for the checkers you enable, installed in your project. Each checker page lists what to install.

Examples ​

The repository's playground directory has a small project for each checker. These are a good starting point:

Next steps ​

Released under the MIT License.