Skip to content
PluginStats

eslint-plugin-jest weekly downloads statistics

By jest-community (2 listings) · npm · ESLint plugins

ESLint rules for Jest

View on npm Fresh · Dec 6, 2026

eslint-plugin-jest has 18,069,727 recorded weekly downloads on npm, an increase of 3.8% over the past 30 days, ranking #127 of 3,247 tracked listings.

Weekly downloads
18,069,727
Official API · Dec 5, 2026
7-day growth
+14.0%
+2.2M weekly downloads
30-day growth
+3.8%
+662.1K weekly downloads
90-day growth
+39.8%
+5.1M weekly downloads
Rank
#127
Among tracked npm listings

About eslint-plugin-jest

<div align="center"> <a href="https://eslint.org/"> <img height="150" src="https://eslint.org/assets/images/logo/eslint-logo-color.svg"> </a> <a href="https://jestjs.io/"> <img width="150" height="150" vspace="" hspace="25" src="https://jestjs.io/img/jest.png"> </a> <h1>eslint-plugin-jest</h1> <p>ESLint plugin for Jest</p> </div>

Actions Status

Installation

yarn add --dev eslint eslint-plugin-jest

Note: If you installed ESLint globally then you must also install eslint-plugin-jest globally.

Usage

If you're using flat configuration:

With flat configuration, just import the plugin and away you go:

const pluginJest = require('eslint-plugin-jest');

module.exports = [
  {
    // update this to match your test files
    files: ['**/*.spec.js', '**/*.test.js'],
    plugins: { jest: pluginJest },
    languageOptions: {
      globals: pluginJest.environments.globals.globals,
    },
    rules: {
      'jest/no-disabled-tests': 'warn',
      'jest/no-focused-tests': 'error',
      'jest/no-identical-title': 'error',
      'jest/prefer-to-have-length': 'warn',
      'jest/valid-expect': 'error',
    },
  },
];

With legacy configuration, add jest to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["jest"],
  "env": {
    "jest/globals": true
  },
  "rules": {
    "jest/no-disabled-tests": "warn",
    "jest/no-focused-tests": "error",
    "jest/no-identical-title": "error",
    "jest/prefer-to-have-length": "warn",
    "jest/valid-expect": "error"
  }
}

[!NOTE]

You only need to explicitly include our globals if you're not using one of our shared configs

Aliased Jest globals

You can tell this plugin about any global Jests you have aliased using the globalAliases setting:

{
  "settings": {
    "jest": {
      "globalAliases": {
        "describe": ["context"],
        "fdescribe": ["fcontext"],
        "xdescribe": ["xcontext"]
      }
    }
  }
}
Aliased @jest/globals

You can tell this plugin to treat a different package as the source of Jest globals using the globalPackage setting:

{
  "settings": {
    "jest": {
      "globalPackage": "bun:test"
    }
  }
}

[!WARNING]

While this can be used to apply rules when using alternative testing libraries and frameworks like bun, vitest and node, there's no guarantee the semantics this plugin assumes will hold outside of Jest

Running rules only on test-related files

The rules provided by this plugin assume that the files they are checking are test-related. This means it's generally not suitable to include them in your top-level configuration as that applies to all files being linted which can include source files.

For .eslintrc configs you can use overrides to have ESLint apply additional rules to specific files:

{
  "extends": ["eslint:recommended"],
  "overrides": [
    {
      "files": ["test/**"],
      "plugins": ["jest"],
      "extends": ["plugin:jest/recommended"],
      "rules": { "jest/prefer-expect-assertions": "off" }
    }
  ],
  "rules": {
    "indent": ["error", 2]
  }
}

For eslint.config.js you can use files and ignores:

const jest = require('eslint-plugin-jest');

module.exports = [
  ...require('@eslint/js').configs.recommended,
  {
    files: ['test/**'],
    ...jest.configs['flat/recommended'],
    rules: {
      ...jest.configs['flat/recommended'].rules,
      'jest/prefer-expect-assertions': 'off',
    },
  },
  // you can also configure jest rules in other objects, so long as some of the `files` match
  {
    files: ['test/**'],
    rules: { 'jest/prefer-expect-assertions': 'off' },
  },
];
Jest version setting

The behaviour of some rules (specifically [no-deprecated-functions][]) change depending on the version of Jest being used.

By default, this plugin will attempt to determine to locate Jest using require.resolve, meaning it will start looking in the closest node_modules folder to the file being linted and work its way up.

Since we cache the automatically determined version, if you're linting sub-folders that have different versions of Jest, you may find that the wrong version of Jest is considered when linting. You can work around this by providing the Jest version explicitly in nested ESLint configs:

{
  "settings": {
    "jest": {
      "version": 27
    }
  }
}

To avoid hard-coding a number, you can also fetch it from the installed version of Jest if you use a JavaScript config file such as .eslintrc.js:

module.exports = {
  settings: {
    jest: {
      version: require('jest/package.json').version,
    },
  },
};

Shareable configurations

[!NOTE]

eslint.config.js compatible versions of configs are available prefixed with flat/ and may be subject to small breaking changes while ESLint v9 is being finalized.

Recommended

This plugin exports a recommended configuration that enforces good testing practices.

To enable this configuration with .eslintrc, use the extends property:

{
  "extends": ["plugin:jest/recommended"]
}

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

const jest = require('eslint-plugin-jest');

module.exports = [
  {
    files: [/* glob matching your test files */],
    ...jest.configs['flat/recommended'],
  },
];
Style…

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin

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-jest weekly downloads on npm, last 90 days: 18,069,727 weekly downloads as of Dec 5, 2026, +39.8% over 90 days.eslint-plugin-jestWeekly downloads on npm · Last 90 days18,069,727downloads / week+39.8% over 90 days05M10M15M20MSep 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-jest weekly downloads on npm, last 90 days: 18,069,727 weekly downloads as of Dec 5, 2026, +39.8% over 90 days.

7/30/90-day growth

eslint-plugin-jest weekly downloads growth on npm: +14.0% over 7 days, +3.8% over 30 days, +39.8% over 90 days.eslint-plugin-jestWeekly downloads growth on npm18,069,727downloads / week now7-day growth+2,216,234 weekly downlo…+14.0%30-day growth+662,143 weekly downloads+3.8%90-day growth+5,142,492 weekly downlo…+39.8%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-jest weekly downloads growth on npm: +14.0% over 7 days, +3.8% over 30 days, +39.8% over 90 days.

Ranking history

eslint-plugin-jest npm ranking history: currently #127 (by weekly downloads).eslint-plugin-jestnpm ranking · by weekly downloads · Last 90 days#127current rank#20#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-jest npm ranking history: currently #127 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 1, #11 (overall #11)
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-jest
Date (UTC)Weekly downloadsChange vs. previous
18,069,727+146K
17,923,692+818.1K
17,105,582+764.3K
16,341,311+372.9K
15,968,441+121.5K
15,846,895+28.4K
15,818,511-35K
15,853,493-110.4K
15,963,892-599.9K
16,563,793-667K
17,230,829-288.6K
17,519,454+43.7K
17,475,770+84.3K
17,391,468—

Similar npm ESLint plugins plugins

All 20 eslint-plugin-jest 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-jest. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.