Skip to main content

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];
  • Start with vite.configs.recommended.
  • Add vite.configs.client for browser-heavy import.meta.* usage.
  • Add vite.configs.vitest for Vitest config and workspace checks.
  • Add vite.configs["vitest-bench"] for benchmark-file hygiene.
  • Move to vite.configs.strict when the baseline is stable.

More docsโ€‹

  • Rule overview
  • Preset reference
  • ๐Ÿ“ Adoption checklist