Lint Config
vp lint and vp check read Oxlint settings from the lint block in vite.config.ts. Oxlint discovers the config from the working directory and its parents. Keep shared settings in the workspace-root config. See Oxlint's configuration for details.
Example
ts
import { defineConfig } from 'vite-plus';
export default defineConfig({
lint: {
ignorePatterns: ['dist/**'],
options: {
typeAware: true,
typeCheck: true,
},
rules: {
'no-console': ['error', { allow: ['error'] }],
},
},
});We recommend enabling both options.typeAware and options.typeCheck so vp lint and vp check can use the full type-aware path.
For file- or package-specific lint rules, use lint.overrides from the root vite.config.ts.
Vite+ passes --disable-nested-config by default, so nested lint configs do not override settings for individual files. This does not prevent discovery of a package-level config when running from that package. See troubleshooting for details.