eslint-plugin-chai-expect weekly downloads statistics
By Turbo87 · npm · ESLint plugins
ESLint plugin that checks for common chai.js expect() mistakes
eslint-plugin-chai-expect has 46,014 recorded weekly downloads on npm, a decrease of 46.1% over the past 30 days.
It ranks #580 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -22.5%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About eslint-plugin-chai-expect
eslint-plugin-chai-expect
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
Configuration
Legacy ESLint Configuration Format (.eslintrc.json)
Add a plugins section and specify chai-expect as a plugin:
Enable the rules that you would like to use:
Or, if you just want the above defaults, you can avoid all of the above and just extend the config:
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:
Or, if you just want the above defaults, you can avoid all of the above and just extend the config:
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:
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:
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
Where eslint-plugin-chai-expect 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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 (121)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-chai-expect. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.