ESLint plugin providing rules for Jest Extended matchers, version 3.0.1 (latest stable). Released under the jest-community organization, this plugin offers rules like prefer-to-be-true, prefer-to-be-false, prefer-to-be-array, prefer-to-be-object, and prefer-to-have-been-called-once, all auto-fixable. It supports ESLint 7/8/9, Node >=16.10, and flat config. Differentiates from eslint-plugin-jest by focusing on jest-extended matchers rather than general Jest best practices. Release cadence: occasional major/minor updates with breaking changes tied to Node and ESLint version support.
npm install eslint-plugin-jest-extendedVerified import paths — ran on the pinned version, not inferred.
Shows both .eslintrc and flat config usage to enable plugin and configure rules.
Upgrade Node to ^16.10.0 || ^18.12.0 || >=20.0.0
If using TypeScript-related ESLint configs, ensure @typescript-eslint/utils is at least v6.
Pin to specific rules instead of using 'all' configuration for stable behavior.
Upgrade to v3.0.1 with `npm install eslint-plugin-jest-extended@latest`.
Run `npm install --save-dev eslint-plugin-jest-extended`
Ensure plugin is listed in 'plugins': ['jest-extended'] and rule names are correct (e.g., 'jest-extended/prefer-to-be-true')
Install plugin locally or globally to match ESLint installation: `npm install --save-dev eslint-plugin-jest-extended` or `npm install -g eslint-plugin-jest-extended`
Upgrade to v2.3.0 or later, or use .eslintrc syntax