A webpack plugin that integrates ESLint into the webpack build process, linting JavaScript files during compilation. Current stable version is 6.0.0, released April 2026. Requires webpack 5 and ESLint 9+. Key changes: v5 switched to flat config by default, v6 dropped threads option, removed ESLint 8 and Node.js 18 support. Official plugin from webpack organization, ships TypeScript types, supports caching and auto-fix. Distinguished by seamless webpack integration vs standalone ESLint usage.
npm install eslint-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Shows how to add ESLint webpack plugin with cache and auto-fix enabled, targeting TypeScript and JavaScript files.
Set configType: 'eslintrc' in plugin options, or migrate to flat config format (eslint.config.js).
Upgrade Node.js to 18.12+ and ESLint to 9+. For ESLint 8 stay on v4.
Remove 'threads' from plugin options. Threading is no longer supported.
Set fix: false (default) or ensure you have backups / git stash before enabling.
Explicitly pass configType: 'eslintrc' in plugin options.
Run 'npm install eslint-webpack-plugin --save-dev' or 'yarn add -D eslint-webpack-plugin'.
Upgrade ESLint to v9+ with 'npm install eslint@latest --save-dev'.
Remove 'threads' from plugin options.
Create an eslint.config.js (flat) or .eslintrc.* (eslintrc) file and set configType appropriately.