Skip to content
PluginStats

eslint-plugin-mocha weekly downloads statistics

By lo1tuma · npm · ESLint plugins

Eslint rules for mocha.

View on npm Stale · Oct 17, 2026

eslint-plugin-mocha has 694,111 recorded weekly downloads on npm, a decrease of 60.9% over the past 30 days, ranking #208 of 2,256 tracked listings.

Weekly downloads
694,111
Official API · Oct 17, 2026
7-day growth
-55.2%
-856.5K weekly downloads
30-day growth
-60.9%
-1.1M weekly downloads
90-day growth
-64.8%
-1.3M weekly downloads
Rank
#208
Among tracked npm listings

About eslint-plugin-mocha

eslint-plugin-mocha

ESLint rules for Mocha.

This plugin targets Mocha's current JavaScript interfaces documented for Mocha 11. It does not execute Mocha or require Mocha at runtime.

Install

This plugin requires ESLint 10.2.0 or later.

Configure

Use the plugin with ESLint's flat config. Apply it only to Mocha test files, and adjust files to match your project:

Configs

• mochaPlugin.configs.recommended: Practical defaults for most projects. • mochaPlugin.configs.all: Enables every rule. This config may change when new rules are added, so it is better suited for trying the full rule set than for stable long-term lint output.

Plugin settings

These settings are shared by multiple rules.

• additionalCustomNames: Adds custom suite, test, or hook function names. This is useful for Mocha wrappers such as ember-mocha, mocha-each, or project-specific helpers that wrap setup and teardown. Use interface: "require" for wrappers that expose named imports from a helper module instead of importing directly from mocha.

The name field supports these forms:

• Plain name, such as describeModule: • Dotted name, such as describe.modifier: • Name with parentheses, such as forEach().describe: • Combination, such as forEach().describeModule.modifier: • type: Selects suite, testCase, or hook. • interface: Selects BDD, TDD, or require. The default is BDD. With require, rule resolution uses named import statements instead of globals. mocha/consistent-interface also reports named imports of Mocha interface methods when this setting is BDD or TDD, which helps catch accidental require-style usage and interface misconfiguration earlier.

The plugin supports Mocha's BDD, TDD, and Require interfaces. It does not support Mocha's Exports or QUnit interfaces, or third-party UIs with different syntax. Many rules depend on suite, test, and hook calls being represented as nested call expressions, which those interfaces do not provide consistently.

For wrapper APIs that still expose suite, test, or hook call functions, use additionalCustomNames.

Rules

For maintainers: the rules table below is generated, and the headers in documentation/rules/*.md are partly generated. Refresh them with npx just update-eslint-docs. Run mutation testing with npx just test-mutation.

💼 Configurations enabled in.\ ⚠️ Configurations set to warn in.\ 🚫 Configurations disabled in.\ ✅ Set in the recommended configuration.\ 🔧 Automatically fixable by the --fix CLI option.\ 💡 Manually fixable by editor suggestions.

| Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 |

| consistent-interface | Enforces consistent use of mocha interfaces | | | ✅ | 🔧 | | | consistent-spacing-between-blocks | Require consistent spacing between blocks | | | ✅ | 🔧 | | | consistent-structure | Require consistent structure for Mocha test entities | ✅ | | | | | | handle-done-callback | Enforces handling of callbacks for async tests in every branch | ✅ | | | | | | limit-retries | Enforce limits for Mocha retries | | | ✅ | | | | limit-slow | Enforce limits for Mocha slow thresholds | | | ✅ | | | | limit-timeout | Enforce limits for Mocha timeouts | | | ✅ | | | | max-top-level-suites | Enforce the number of top-level suites in a single file | | | ✅ | | | | no-async-and-done | Disallow async functions that also use a Mocha callback | ✅ | | | | | | no-async-in-sync-tests | Disallow async operations in synchronous tests or hooks | ✅ | | | | | | no-async-suite | Disallow async functions passed to a suite | ✅ | | | 🔧 | | | no-code-after-done | Disallow executing code after calling a Mocha callback | ✅ | | | | | | no-conditional-tests | Disallow conditional suite and test declarations | ✅ | | | | | | no-done-twice | Disallow calling a Mocha callback more than once | ✅ | | | | | | no-empty-title | Disallow empty suite and test descriptions | ✅ | | | | | | no-exclusive-tests | Disallow exclusive tests | | ✅ | | | 💡 | | no-exports | Disallow exports from test files | ✅ | | | | 💡 | | no-hooks | Disallow hooks | | | ✅ | | | | no-hooks-for-single-child | Disallow hooks with a single direct child | | | ✅ | | | | no-identical-title | Disallow identical titles | ✅ | | | | | | no-mocha-arrows | Disallow arrow functions as arguments to mocha functions | ✅ | | | 🔧 | | | no-nested-suites | Disallow suites to be nested within other suites | | | ✅ | | | | no-nested-tests | Disallow tests to be nested within other tests | ✅ | | | | | | no-pending-tests | Disallow pending tests | | ✅ | | | 💡 | | no-return-and-done | Disallow returning in a test or hook function that uses a callback | ✅ | | | | | | no-return-from-async | Disallow returning from an async test or hook | | | ✅ | | | | no-root-hooks | Disallow root hooks | | | ✅ | | | | no-setup-in-suite | Disallow setup in suite blocks | | | ✅ | | | | no-synchronous-tests | Disallow synchronous tests | | | ✅ | | | | no-top-level-tests | Disallow top-level tests | ✅ | | | | | | prefer-arrow-callback | Require using arrow functions for callbacks | | | ✅ | 🔧 | | | valid-suite-title | Require suite descriptions to match a pre-configured regular expression | | | ✅ | | | | valid-test-title | Require test descriptions to match a pre-configured regular expression | | | ✅ | | |

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin
  • mocha

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-mocha weekly downloads on npm, last 90 days: 694,111 weekly downloads as of Oct 17, 2026, -64.8% over 90 days.eslint-plugin-mochaWeekly downloads on npm · Last 90 days694,111downloads / week-64.8% over 90 days0500K1M1.5M2M2.5MJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
eslint-plugin-mocha weekly downloads on npm, last 90 days: 694,111 weekly downloads as of Oct 17, 2026, -64.8% over 90 days.

7/30/90-day growth

eslint-plugin-mocha weekly downloads growth on npm: -55.2% over 7 days, -60.9% over 30 days, -64.8% over 90 days.eslint-plugin-mochaWeekly downloads growth on npm694,111downloads / week now7-day growth-856,489 weekly downloads-55.2%30-day growth-1,081,354 weekly downlo…-60.9%90-day growth-1,280,151 weekly downlo…-64.8%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
eslint-plugin-mocha weekly downloads growth on npm: -55.2% over 7 days, -60.9% over 30 days, -64.8% over 90 days.

Ranking history

eslint-plugin-mocha npm ranking history: currently #208 (by weekly downloads).eslint-plugin-mochanpm ranking · by weekly downloads · Last 90 days#208current rank#60#80#100#120#140#160#180#200#220Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 17, 2026 – Oct 19, 2026 · 3 observations · Updated Oct 17, 2026pluginstats.com
eslint-plugin-mocha npm ranking history: currently #208 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 11, #8 (overall #208)
All npm: every listing in weekly downloads order

Listing placement

ESLint plugins253 listings · 13 pages · page 3, #4 (overall #44)
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 (543)
Recent weekly downloads observations for eslint-plugin-mocha
Date (UTC)Weekly downloadsChange vs. previous
694,111-128.2K
822,360-7.3K
829,700-342.1K
1,171,836-354.8K
1,526,6680
1,526,668-47.5K
1,574,141+23.5K
1,550,600+28K
1,522,589+20.8K
1,501,807-24.3K
1,526,081-36.5K
1,562,623-349.9K
1,912,490-21.7K
1,934,182—

Similar npm ESLint plugins plugins

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