Native lint execution settings
Use the same native lint settings from vize.config.* or the Vite+ integration:
import { defineConfig } from "@vizejs/vite-plugin/vite-plus";
export default defineConfig({
lint: {
vize: {
preset: "opinionated",
crossFile: true,
strictReactivity: true,
crossFileTree: true,
crossFileComplexity: true,
maxWarnings: 0,
},
},
});
In vize.config.*, put these keys in linter. crossFileTree and
crossFileComplexity also enable cross-file analysis. Cross-file checks operate
on the files selected for a native CLI run. The strict-reactivity switch enables
type/no-reactivity-loss for both CLI and editor diagnostics; explicit rule
settings, including scoped off entries, take precedence over this switch.
CLI opt-in flags remain available for direct vize lint invocation, and
--max-warnings overrides the configured limit. --no-config ignores all
configured lint settings. An absent warning limit permits warnings; 0 fails
when any warning remains. Negative limits are invalid.
Vite+ lint tasks accept paths and --fix. Put native-only flags in lint.vize
instead of passing them through to Oxlint. For example, vp run lint -- src
runs both linters with their own configuration.