An ESLint plugin for Vite that lints JavaScript, TypeScript, Vue, and Svelte files during development and build. Version 1.9.2 is the current stable release, with no major release cadence documented. It is a fork of vite-plugin-eslint, offering additional configuration options such as lintOnStart, custom eslintPath, and granular failOnWarning/failOnError settings. Key differentiators include better control over linting behavior and support for modern file types.
npm install vite-eslint-pluginVerified import paths — ran on the pinned version, not inferred.
Configures the ESLint plugin for production builds (fails on errors) and development server (warnings and errors do not fail).
Set lintOnStart: false (default) unless you need initial linting of the whole project.
Use default import: `import eslint from 'vite-eslint-plugin'`.
Use `failOnWarning` and `failOnError` instead.
Align @types/eslint version with eslint peer dependency (>=7).
Change import to: `import eslint from 'vite-eslint-plugin'`
Create an ESLint configuration file (e.g., .eslintrc.json) or specify `overrideConfigFile` in plugin options.
Install eslint: `npm install eslint --save-dev`