Vite plugin that allows ESLint to run in the browser by bundling ESLint with browser-compatible polyfills. v0.8.0 supports ESLint 8-10 and Vite >=4, Node >=20. Differentiates from other ESLint plugins by targeting browser environments for linting, not build-time checks. Ships ESM-only, uses rolldown as bundler. Notable for breaking changes: dropped Node 19 support in v0.8.0 and switched to rolldown in v0.6.0. Community-maintained by ota-meshi.
npm install vite-plugin-eslint4bVerified import paths — ran on the pinned version, not inferred.
Basic Vite configuration using vite-plugin-eslint4b to enable ESLint in browser.
Upgrade Node.js to version 20 or later
Ensure compatibility with rolldown; report issues if unexpected behavior occurs
Adapt rules to use absolute paths or handle '/' cwd
Use for browser-based linting, not build-time checks
Install eslint as devDependency: npm install --save-dev eslint
Use import statement: import eslint4b from 'vite-plugin-eslint4b'
Upgrade Node.js to version 20 or later