Skip to content
PluginStats

eslint-plugin-chai-expect weekly downloads statistics

By Turbo87 · npm · ESLint plugins

ESLint plugin that checks for common chai.js expect() mistakes

View on npm Fresh · Dec 6, 2026

eslint-plugin-chai-expect has 143,568 recorded weekly downloads on npm, an increase of 17.8% over the past 30 days, ranking #577 of 3,247 tracked listings.

Weekly downloads
143,568
Official API · Dec 5, 2026
7-day growth
+21.6%
+25.5K weekly downloads
30-day growth
+17.8%
+21.7K weekly downloads
90-day growth
+110%
+75.3K weekly downloads
Rank
#577
▲ 20 in 7 days

About eslint-plugin-chai-expect

eslint-plugin-chai-expect

CI npm

ESLint plugin that checks for common chai.js expect() mistakes

[!IMPORTANT] The recommended preset is for the ESLint legacy configuration system (.eslintrc.json). The recommended-flat configuration is for the new flat configuration system.

Requirements

  • Node.js 20 or above
  • ESLint 2.x to 10.x

Installation

npm install --save-dev eslint-plugin-chai-expect

Configuration

Legacy ESLint Configuration Format (.eslintrc.json)

Add a plugins section and specify chai-expect as a plugin:

{
  "plugins": [
    "chai-expect"
  ]
}

Enable the rules that you would like to use:

{
  "rules": {
    "chai-expect/no-inner-compare": 2,
    "chai-expect/no-inner-literal": 2,
    "chai-expect/missing-assertion": 2,
    "chai-expect/terminating-properties": 2
  }
}

Or, if you just want the above defaults, you can avoid all of the above and just extend the config:

{
  "extends": ["plugin:chai-expect/recommended"]
}
Flat ESLint Configuration Format (eslint.config.js)

Add a plugins section and specify chai-expect as a plugin and enable the rules that you would like to use:

import chaiExpectPlugin from 'eslint-plugin-chai-expect';

export default [
  {
    "plugins": {
      "chai-expect": chaiExpectPlugin
    },
    "rules": {
      "chai-expect/no-inner-compare": 2,
      "chai-expect/no-inner-literal": 2,
      "chai-expect/missing-assertion": 2,
      "chai-expect/terminating-properties": 2,
      "chai-expect/no-uncalled-method": 2
    }
  }
];

Or, if you just want the above defaults, you can avoid all of the above and just extend the config:

import chaiExpectPlugin from 'eslint-plugin-chai-expect';

export default [
  chaiExpectPlugin.configs["recommended-flat"],
  {
    // ...
  },
];

Rules

  • no-inner-compare - Prevent using comparisons in the expect() argument
  • no-inner-literal - Prevent using literals in the expect() argument (undefined, null, NaN, (+|-)Infinity, this, booleans, numbers, strings, and BigInt or regex literals)
  • missing-assertion - Prevent calling expect(...) without an assertion like .to.be.ok
  • terminating-properties - Prevent calling to.be.ok and other assertion properties as functions
  • no-uncalled-method - Prevent using to.throw and other assertion methods as properties without calling them
Additional configuration
terminating-properties rule

A number of extensions to chai add additional terminating properties. For example chai-http adds:

  • headers
  • html
  • ip
  • json
  • redirect
  • text

The terminating-properties rule can be configured to ensure these (or other) additional properties are not used as functions:

{
  "rules": {
    "chai-expect/terminating-properties": ["error", {
      "properties": ["headers", "html", "ip", "json", "redirect", "test"]
    }]
  }
}
no-uncalled-method rule

By default, this rule checks for throw, throws, and Throw. You can configure additional methods that should not be used as properties:

{
  "rules": {
    "chai-expect/no-uncalled-method": ["error", {
      "methods": ["include", "satisfy", "respondTo"]
    }]
  }
}

Development

Run yarn test to lint the project and run the tests with Node.js's built-in test runner. Use yarn unit-test to run only the tests.

Run yarn coverage for Node.js's experimental coverage report. Coverage is informational; no minimum coverage threshold is enforced.

License

eslint-plugin-chai-expect is licensed under the MIT License.

Description from the npm listing.

  • chai
  • eslint
  • eslint-plugin
  • eslintplugin

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-chai-expect weekly downloads on npm, last 90 days: 143,568 weekly downloads as of Dec 5, 2026, +110% over 90 days.eslint-plugin-chai-expectWeekly downloads on npm · Last 90 days143,568downloads / week+110% over 90 days020K40K60K80K100K120K140K160KSep 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-chai-expect weekly downloads on npm, last 90 days: 143,568 weekly downloads as of Dec 5, 2026, +110% over 90 days.

7/30/90-day growth

eslint-plugin-chai-expect weekly downloads growth on npm: +21.6% over 7 days, +17.8% over 30 days, +110% over 90 days.eslint-plugin-chai-expectWeekly downloads growth on npm143,568downloads / week now7-day growth+25,476 weekly downloads+21.6%30-day growth+21,725 weekly downloads+17.8%90-day growth+75,312 weekly downloads+110%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-chai-expect weekly downloads growth on npm: +21.6% over 7 days, +17.8% over 30 days, +110% over 90 days.

Ranking history

eslint-plugin-chai-expect npm ranking history: currently #577 (by weekly downloads).eslint-plugin-chai-expectnpm ranking · by weekly downloads · Last 90 days#577current rank#570#580#590#600#610#620Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-chai-expect npm ranking history: currently #577 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 7, #19 (overall #139)
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 (170)
Recent weekly downloads observations for eslint-plugin-chai-expect
Date (UTC)Weekly downloadsChange vs. previous
143,568+1.6K
141,929+7.4K
134,548+9.1K
125,408+4.5K
120,888+6.1K
114,773-2.4K
117,135-957
118,092-4.5K
122,592-7.3K
129,864-8.7K
138,605-1.6K
140,226-2.4K
142,594+3.3K
139,311—

Similar npm ESLint plugins plugins

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