eslint-plugin-testing-library
JSON →An ESLint plugin (v7.16.2) that enforces best practices and catches common mistakes when writing tests with Testing Library (DOM, React, Vue, etc.). Released frequently via semantic-release, it provides over 30 rules to prevent anti-patterns like using wrapper.innerHTML, awaiting async queries incorrectly, or importing from testing-library/dom instead of the framework-specific package. Unlike generic lint rules, it understands Testing Library's query priorities, userEvent vs fireEvent distinction, and the testing file context. Supports ESLint 8, 9, and 10, ships TypeScript types, and offers both ESM and CJS bundles. Requires Node >=18.18.
Traffic · last 30 days stale · no recent hits
total hits 19
actors 6 distinct systems
last hit 19d ago AhrefsBot
top countries 🇺🇸 United States · VN · 🇨🇦 Canada · AE · 🇧🇪 Belgium
Resources
API endpoints
compatibility /v1/registry/eslint-plugin-testing-library/compatibility