Getting started
Install the plugin:
npm install --save-dev @typpi/eslint-plugin-vite eslint
Then enable a preset in your flat config:
import vite from "@typpi/eslint-plugin-vite";
export default [vite.configs.recommended];
Recommended rolloutโ
- Start with
vite.configs.recommended. - Add
vite.configs.clientfor browser-heavyimport.meta.*usage. - Add
vite.configs.vitestfor Vitest config and workspace checks. - Add
vite.configs["vitest-bench"]for benchmark-file hygiene. - Move to
vite.configs.strictwhen the baseline is stable.
More docsโ
Rule overviewPreset reference๐ Adoption checklist