An ESLint runner for Jest v2.3.0 that integrates ESLint linting as a Jest test runner. It supports ESLint 7/8 and Jest 27-30, with flat config support since v2.1.0. Released under the jest-community organization, it is actively maintained with a release cadence of several times per year. Key differentiators include watch mode with fix toggling via a watch plugin, multi-project support, and cosmiconfig configuration.
npm install jest-runner-eslintVerified import paths — ran on the pinned version, not inferred.
Sets up jest-runner-eslint as a project alongside Jest tests, with watch fix plugin.
Upgrade Node to >=12.13.0, ESLint to >=7, Jest to >=27
Use eslint.config.js and ensure ESLint version is compatible
Upgrade Jest to version 27 or later
Use projects array in Jest config, or set testMatch to only lint files
Upgrade to v2.1.1 or later
Upgrade to v2.1.2 or later
Create jest-runner-eslint.config.js or add jest-runner-eslint key in package.json
Set testMatch to only include source files you want linted, e.g., '<rootDir>/src/**/*.js'
Ensure ESLint is installed and config file is correct; for flat config, use v2.1.0+
Run npm install --save-dev jest-runner-eslint