Skip to content
PluginStats

eslint-plugin-testing-library weekly downloads statistics

By testing-library (2 listings) · npm · ESLint plugins

ESLint plugin to follow best practices and anticipate common mistakes when writing tests with Testing Library

View on npm Fresh · Dec 6, 2026

eslint-plugin-testing-library has 11,594,731 recorded weekly downloads on npm, an increase of 10.2% over the past 30 days, ranking #134 of 3,247 tracked listings.

Weekly downloads
11,594,731
Official API · Dec 5, 2026
7-day growth
+15.9%
+1.6M weekly downloads
30-day growth
+10.2%
+1.1M weekly downloads
90-day growth
+58.7%
+4.3M weekly downloads
Rank
#134
Among tracked npm listings

About eslint-plugin-testing-library

<div align="center"> <a href="https://eslint.org/"> <img width="150" height="150" src="https://raw.githubusercontent.com/eslint/eslint/main/docs/src/static/favicon.png"> </a> <a href="https://testing-library.com/"> <img width="150" height="150" src="https://raw.githubusercontent.com/testing-library/dom-testing-library/master/other/octopus.png"> </a> <h1>eslint-plugin-testing-library</h1> <p>ESLint plugin to follow best practices and anticipate common mistakes when writing tests with Testing Library</p> </div>

[![Package version][version-badge]][version-url] [![eslint-remote-tester][eslint-remote-tester-badge]][eslint-remote-tester-workflow] [![eslint-plugin-testing-library][package-health-badge]][package-health-url] codecov [![MIT License][license-badge]][license-url] <br /> semantic-release [![PRs Welcome][pr-badge]][pr-url] ![All Contributors][all-contributors-badge]

Prerequisites

To use this plugin, you must have Node.js (^18.18.0, ^20.9.0, or >=21.1.0) installed.

Installation

You'll first need to install ESLint.

Next, install eslint-plugin-testing-library:

$ pnpm add --save-dev eslint-plugin-testing-library
# or
$ npm install --save-dev eslint-plugin-testing-library
# or
$ yarn add --dev eslint-plugin-testing-library

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-testing-library globally.

Migrating

You can find detailed guides for migrating eslint-plugin-testing-library in the migration guide docs:

Usage

Add testing-library to the plugins section of your .eslintrc.js configuration file. You can omit the eslint-plugin- prefix:

module.exports = {
	plugins: ['testing-library'],
};

Then configure the rules you want to use within rules property of your .eslintrc:

module.exports = {
	rules: {
		'testing-library/await-async-queries': 'error',
		'testing-library/no-await-sync-queries': 'error',
		'testing-library/no-debugging-utils': 'warn',
		'testing-library/no-dom-import': 'off',
	},
};
Run the plugin only against test files

With the default setup mentioned before, eslint-plugin-testing-library will be run against your whole codebase. If you want to run this plugin only against your tests files, you have the following options:

ESLint overrides

One way of restricting ESLint config by file patterns is by using ESLint overrides.

Assuming you are using the same pattern for your test files as Jest by default, the following config would run eslint-plugin-testing-library only against your test files:

// .eslintrc.js
module.exports = {
	// 1) Here we have our usual config which applies to the whole project, so we don't put testing-library preset here.
	extends: ['airbnb', 'plugin:prettier/recommended'],

	// 2) We load other plugins than eslint-plugin-testing-library globally if we want to.
	plugins: ['react-hooks'],

	overrides: [
		{
			// 3) Now we enable eslint-plugin-testing-library rules or preset only for matching testing files!
			files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
			extends: ['plugin:testing-library/react'],
		},
	],
};
ESLint Cascading and Hierarchy

Another approach for customizing ESLint config by paths is through ESLint Cascading and Hierarchy. This is useful if all your tests are placed under the same folder, so you can place there another .eslintrc where you enable eslint-plugin-testing-library for applying it only to the files under such folder, rather than enabling it on your global .eslintrc which would apply to your whole project.

Shareable configurations

[!NOTE]

eslint.config.js compatible versions of configs are available prefixed with flat/, though most of the plugin documentation still currently uses .eslintrc syntax.

Refer to the ESLint documentation on the new configuration file format for more.

This plugin exports several recommended configurations that enforce good practices for specific Testing Library packages. You can find more info about enabled rules in the Supported Rules section, under the Configurations column.

Since each one of these configurations is aimed at a particular Testing Library package, they are not extendable between them, so you should use only one of them at once per .eslintrc file. For example, if you want to enable recommended configuration for React, you don't need to combine it somehow with DOM one:

// ❌ Don't do this
module.exports = {
	extends: ['plugin:testing-library/dom', 'plugin:testing-library/react'],
};
// ✅ Just do this instead
module.exports = {
	extends: ['plugin:testing-library/react'],
};
DOM Testing Library

Enforces recommended rules for DOM Testing Library.

To enable this configuration use the extends property in your .eslintrc.js config file:…

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin
  • lint
  • testing-library
  • testing

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

eslint-plugin-testing-library weekly downloads on npm, last 90 days: 11,594,731 weekly downloads as of Dec 5, 2026, +58.7% over 90 days.eslint-plugin-testing-libraryWeekly downloads on npm · Last 90 days11,594,731downloads / week+58.7% over 90 days02M4M6M8M10M12MSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
eslint-plugin-testing-library weekly downloads on npm, last 90 days: 11,594,731 weekly downloads as of Dec 5, 2026, +58.7% over 90 days.

7/30/90-day growth

eslint-plugin-testing-library weekly downloads growth on npm: +15.9% over 7 days, +10.2% over 30 days, +58.7% over 90 days.eslint-plugin-testing-libraryWeekly downloads growth on npm11,594,731downloads / week now7-day growth+1,588,757 weekly downlo…+15.9%30-day growth+1,076,402 weekly downlo…+10.2%90-day growth+4,287,191 weekly downlo…+58.7%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-testing-library weekly downloads growth on npm: +15.9% over 7 days, +10.2% over 30 days, +58.7% over 90 days.

Ranking history

eslint-plugin-testing-library npm ranking history: currently #134 (by weekly downloads).eslint-plugin-testing-librarynpm ranking · by weekly downloads · Last 90 days#134current rank#40#60#80#100#120#140Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-testing-library npm ranking history: currently #134 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 7, #14 (overall #134)
All npm: every listing in weekly downloads order

Listing placement

ESLint plugins290 listings · 15 pages · page 1, #14 (overall #14)
ESLint plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (591)
Recent weekly downloads observations for eslint-plugin-testing-library
Date (UTC)Weekly downloadsChange vs. previous
11,594,731+124.5K
11,470,182+566.5K
10,903,723+534.2K
10,369,506+266.4K
10,103,145+59.3K
10,043,868+39.8K
10,004,112-1.9K
10,005,974-63.5K
10,069,464-335.1K
10,404,523-372.5K
10,777,051-114.4K
10,891,469+104.6K
10,786,857+27.2K
10,759,654—

Similar npm ESLint plugins plugins

All 20 eslint-plugin-testing-library alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/eslint-plugin-testing-library. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.