Skip to main content

๏‚ญ ESLint plugin for Vite configs, client runtime, and Vitest teams ๏„ต

eslint-plugin-vite

ESLint rules for Vite config files, client-side import.meta.* patterns, Vitest workspaces, and benchmark hygiene.

  • npm license
  • npm total downloads
  • latest GitHub release
  • GitHub stars
  • GitHub forks
  • GitHub open issues
  • codecov
  • CI status

Config safety

Guard Vite config files against deprecated and unsafe options before they ship across workspaces.

Client correctness

Keep `import.meta.env` and `import.meta.glob()` usage compatible with Vite's static analysis model.

Vitest discipline

Keep Vitest workspaces, benchmarks, and test projects organized as your monorepo grows.

๏ƒŠ 70+ Rules

Covers config safety, client runtime correctness, and Vitest workflows.

๎š 8 Presets

Start with recommended, then grow into strict, client, configs, and Vitest-focused bundles.

๓ฐจ DX-first Autofix & Suggestions

Report-first guidance with safe fixes and suggestions where the transformation stays reviewable.

๏„ต

Get Started

Install the plugin, enable a preset, and get a clean flat-config starting point fast.

Open section โ†’

๎š

Presets

Choose the right preset for config files, client env usage, VitePress, Vitest, and benchmarks.

Open section โ†’

๏€ญ

Rule Reference

Browse every rule with concrete incorrect/correct examples, migration notes, and flat-config snippets.

Open section โ†’