Skip to content

Lint Config

vp lint and vp check use the workspace-root lint block, including when run from a package directory. Package configs do not replace these lint settings. Use vp lint -c <path> or vp lint --config <path> to select another config. If the root config has no lint block, Oxlint uses native discovery. See Oxlint's configuration for details.

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.