Check
vp check runs format, lint, and type checks together.
Overview
vp check is the default command for fast static checks in Vite+. It brings together formatting through Oxfmt, linting through Oxlint, and TypeScript type checks through tsgolint. By merging all of these tasks into a single command, vp check is faster than running formatting, linting, and type checking as separate tools in separate commands.
When typeCheck is enabled in the lint.options block in vite.config.ts, vp check also runs TypeScript type checks through the Oxlint type-aware path powered by the TypeScript Go toolchain and tsgolint. vp create and vp migrate enable both typeAware and typeCheck by default.
We recommend turning typeCheck on so vp check becomes the single command for static checks during development.
Usage
vp check
vp check --fix # Format and run autofixers.Configuration
vp check uses the same configuration you already define for linting and formatting:
lintblock invite.config.tsfmtblock invite.config.ts- TypeScript project structure and tsconfig files for type-aware linting
Recommended base lint config:
import { defineConfig } from 'vite-plus';
export default defineConfig({
lint: {
options: {
typeAware: true,
typeCheck: true,
},
},
});