Skip to content

Lint Config ​

vp lint uses Oxlint's native config discovery from the working directory. Use vp lint -c <path> or vp lint --config <path> to select another config. See Oxlint's configuration for details.

vp check uses the workspace-root lint block when it exists, including from a package directory. Package configs do not replace these lint settings in vp check.

Example ​

vite.config.ts
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.

Oxlint disables nested configs in Vite+ mode, so nested lint configs do not override settings for individual files. See troubleshooting for details.