Skip to main content

eslint-plugin-testing-library

eslint-plugin-testing-library is an ESLint plugin for Testing Library that helps users to follow best practices and anticipate common mistakes when writing tests.

eslint-plugin-testing-library example showing an error

This plugin includes:

  • Several rules for linting Testing Library specific code.
  • Shareable config for recommended rules.
  • Shareable configs for specific rules by framework: Angular, React, Vue.
  • Some autofixable rules.

Find more info about available rules and configs on GitHub.