eslint-plugin-vite
eslint-plugin-vite is an ESLint plugin focused on Vite, Vitest, and Vitest bench behavior.
It helps catch problems such as:
- raw Vite or Vitest config exports that should use helper APIs
- unsafe
envPrefixvalues - invalid
import.meta.glob()arguments - accidental reads from non-public
import.meta.envkeys - mixed Vitest benchmark and correctness-test APIs
Where to go nextโ
- Open the
Getting startedpage for installation and flat-config setup. - Open the
Rule overviewpage for the rule families. - Open the
Preset referencepage to choose the right config bundle.