A Vite plugin that runs ESLint checks during build and dev, integrating ESLint reports into the Vite dev server overlay and terminal output. Current stable version is 1.0.1. Release cadence is irregular; the plugin is part of the Alibaba ice framework monorepo but published separately. Key differentiators: lightweight integration with Vite's HMR and build pipeline, supports ESLint caching, custom formatters, and file filtering via include/exclude patterns. Requires ESLint >7.0.0 as a peer dependency. Compared to alternatives like vite-plugin-eslint, it offers a report overlay for dev mode and is maintained under the ice monorepo.
npm install vite-plugin-eslint-reportVerified import paths — ran on the pinned version, not inferred.
Basic setup of vite-plugin-eslint-report with common options: caching, file patterns, and custom config.
Use .eslintrc.* config file or check plugin compatibility with flat config.
Set ignoreInitial: true for incremental checks, or rely on terminal output instead of overlay.
Use 'src/**/*.js' style paths relative to project root.
npm install eslint --save-dev
const eslint = require('vite-plugin-eslint-report').default;Create an ESLint config file or set the configFile option to the correct path.