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 · Oct 17, 2026

eslint-plugin-testing-library has 3,871,817 recorded weekly downloads on npm, a decrease of 49.3% over the past 30 days.

It ranks #137 of 2,256 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -53.1%.

PluginStats has 542 daily observations since Apr 24, 2025; the latest is from Oct 17, 2026.

Weekly downloads
3,871,817
Official API · Oct 17, 2026
7-day growth
-53.0%
-4.4M weekly downloads
30-day growth
-49.3%
-3.8M weekly downloads
90-day growth
-53.1%
-4.4M weekly downloads
Rank
#137
Among tracked npm listings

About eslint-plugin-testing-library

eslint-plugin-testing-library

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

[![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]

[![MIT License][license-badge]][license-url]

[![PRs Welcome][pr-badge]][pr-url] [![All Contributors][all-contributors-badge]](#contributors-)

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:

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:

• Migration guide for v4 • Migration guide for v5 • Migration guide for v6 • Migration guide for v7

Usage

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

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

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:

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:

DOM Testing Library

Enforces recommended rules for DOM Testing Library.

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

To enable this configuration with eslint.config.js, use testingLibrary.configs['flat/dom']:

Angular

Enforces recommended rules for Angular Testing Library.

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

To enable this configuration with eslint.config.js, use testingLibrary.configs['flat/angular']:

React

Enforces recommended rules for React Testing Library.

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

To enable this configuration with eslint.config.js, use testingLibrary.configs['flat/react']:

Vue

Enforces recommended rules for Vue Testing Library.

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

To enable this configuration with eslint.config.js, use testingLibrary.configs['flat/vue']:

Svelte

Enforces recommended rules for Svelte Testing Library.

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

To enable this configuration with eslint.config.js, use testingLibrary.configs['flat/svelte']:

Marko

Enforces recommended rules for Marko Testing Library.

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

To enable this configuration with eslint.config.js, use testingLibrary.configs['flat/marko']:

Supported Rules

Remember that all rules from this plugin are prefixed by "testing-library/"

💼 Configurations enabled in.\ ⚠️ Configurations set to warn in.\ Set in the angular configuration.\ Set in the dom configuration.\ Set in the marko configuration.\ Set in the react configuration.\ Set in the svelte configuration.\ Set in the vue configuration.\ 🔧 Automatically fixable by the --fix CLI option.

| Name | Description | 💼 | ⚠️ | 🔧 |…

Description from the npm listing.

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

Where eslint-plugin-testing-library sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,256 listings · 113 pages · page 7, #17 (overall #137)
All npm: every listing in weekly downloads order
PNG SVG
ESLint plugins253 listings · 13 pages · page 1, #14 (overall #14)
ESLint plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

eslint-plugin-testing-library weekly downloads on npm, last 90 days: 3,871,817 weekly downloads as of Oct 17, 2026, -53.1% over 90 days.eslint-plugin-testing-libraryWeekly downloads on npm · Last 90 days3,871,817downloads / week-53.1% over 90 days3M4M5M6M7M8M9M10M11M12MJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
eslint-plugin-testing-library weekly downloads on npm, last 90 days: 3,871,817 weekly downloads as of Oct 17, 2026, -53.1% over 90 days.
PNG SVG

7/30/90-day growth

eslint-plugin-testing-library weekly downloads growth on npm: -53.0% over 7 days, -49.3% over 30 days, -53.1% over 90 days.eslint-plugin-testing-libraryWeekly downloads growth on npm3,871,817downloads / week now7-day growth-4,366,803 weekly downlo…-53.0%30-day growth-3,768,990 weekly downlo…-49.3%90-day growth-4,378,416 weekly downlo…-53.1%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
eslint-plugin-testing-library weekly downloads growth on npm: -53.0% over 7 days, -49.3% over 30 days, -53.1% over 90 days.
PNG SVG

Ranking history

eslint-plugin-testing-library npm ranking history: currently #137 (by weekly downloads).eslint-plugin-testing-librarynpm ranking · by weekly downloads · Last 90 days#137current rank#40#60#80#100#120#140Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 17, 2026 – Oct 19, 2026 · 3 observations · Updated Oct 17, 2026pluginstats.com
eslint-plugin-testing-library npm ranking history: currently #137 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (542)
Recent weekly downloads observations for eslint-plugin-testing-library
Date (UTC)Weekly downloadsChange vs. previous
3,871,817-596.3K
4,468,077+69.3K
4,398,808-1.9M
6,331,569-1.9M
8,243,5820
8,243,582-66.7K
8,310,254+71.6K
8,238,620+65K
8,173,600+101K
8,072,625+55.9K
8,016,706-16.1K
8,032,770-1.9M
9,941,105-168K
10,109,055—

Similar npm ESLint plugins plugins

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 Oct 19, 2026. See the methodology.