Webpack's official ESLint configuration as a shareable config for projects using ESLint 9+ flat config. Version 4.9.5 requires Node >=20.9.0, ESLint >=9.28.0, and TypeScript >=4.8.4 <7.0.0. It provides TypeScript support, regexp rules, and JSDoc type formatting. Actively maintained by the Webpack team with frequent updates. Unlike generic configs like eslint-config-airbnb, it is tailored for webpack ecosystem projects.
npm install eslint-config-webpackVerified import paths — ran on the pinned version, not inferred.
Shows how to extend the webpack ESLint config in a flat config file with browser and Node globals.
Migrate to eslint.config.js using extends with the provided config object.
Upgrade Node to v20.9.0 or later.
Upgrade ESLint to v9.28.0 or later.
Install TypeScript matching the peer range; v4.8.4+ or v5.x is supported.
Wrap it in defineConfig or spread into an array when using multiple config objects.
Install react-related plugins and add them to your config manually.
Run 'npm i -D eslint-config-webpack' and use import in eslint.config.js flat config.
Import the config and use extends: [config] instead of extends: ['webpack'].
Use import() or set "type": "module" in your package.json.