eslint-plugin-no-constructor-bind weekly downloads statistics
By markalfred · npm · ESLint plugins
Prefer class arrow methods to binding in the constructor
eslint-plugin-no-constructor-bind has 68,207 recorded weekly downloads on npm, an increase of 313% over the past 30 days, ranking #710 of 3,247 tracked listings.
About eslint-plugin-no-constructor-bind
eslint-plugin-no-constructor-bind
Prefer class properties to equivalent setup steps taken in a class' constructor method.
// Bad:
class User {
constructor() {
this.greet = this.greet.bind(this)
}
greet() { return 'Hello' }
}
// Good:
class User {
greet = () => 'hello'
}
Use no-constructor-bind to eliminate bound functions in your constructor.
Use no-constructor-state to eliminate initial state setting in your constructor.
Doing this, most likely you'll be able to use ESLint's builtin no-useless-constructor to remove many constructors in your app.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-no-constructor-bind:
$ npm install eslint-plugin-no-constructor-bind --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-no-constructor-bind globally.
Usage
Add no-constructor-bind to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["no-constructor-bind"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"no-constructor-bind/no-constructor-bind": "error",
"no-constructor-bind/no-constructor-state": "error"
}
}
Supported Rules
- no-constructor-bind (:wrench:) — Use class arrow functions instead of binding in the constructor
- no-constructor-state (:wrench:) — Use class property instead of setting initial state in the constructor
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (128)Similar npm ESLint plugins plugins
All 20 eslint-plugin-no-constructor-bind alternativesData 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-no-constructor-bind. First seen Nov 25, 2026; last successful collection Dec 6, 2026. See the methodology.