{"library":"eslint-plugin-jest-dom","type":"library","category":null,"description":"ESLint plugin designed to enforce best practices and catch common mistakes when using jest-dom matchers (like toBeChecked, toHaveAttribute) in Testing Library tests. The current stable version is 5.5.0, released in November 2024, with releases every few months. It supports ESLint v6–v9 and provides a recommended configuration as well as flat configs for the new ESLint configuration system. Unlike generic lint rules, this plugin is specifically tailored to the jest-dom API, offering autofixable rules and suggestions to improve test quality. It ships TypeScript definitions and makes @testing-library/dom an optional peer dependency.","language":"javascript","status":"active","version":"5.5.0","tags":["javascript","eslint","eslintplugin","eslint-plugin","jest-dom","testing-library","react-testing-library","dom-testing-library","RTL","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install eslint-plugin-jest-dom","imports":["const plugin = require('eslint-plugin-jest-dom'); // CJS\nimport plugin from 'eslint-plugin-jest-dom'; // ESM","const { configs } = require('eslint-plugin-jest-dom');\nconfigs['flat/recommended']","const { rules } = require('eslint-plugin-jest-dom');\n// Then access rules['prefer-checked'] etc.","import type { ESLintPluginJestDom } from 'eslint-plugin-jest-dom';"]},{"cmd":"yarn add eslint-plugin-jest-dom","imports":[]},{"cmd":"pnpm add eslint-plugin-jest-dom","imports":[]}],"homepage":null,"github":"https://github.com/testing-library/eslint-plugin-jest-dom","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-plugin-jest-dom","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/eslint-plugin-jest-dom/compatibility"}}