Skip to content
PluginStats

eslint-plugin-prefer-arrow weekly downloads statistics

By TristonJ · npm · ESLint plugins

Prefer arrow functions in most cases

View on npm Fresh · Oct 17, 2026

eslint-plugin-prefer-arrow has 411,655 recorded weekly downloads on npm, a decrease of 53.0% over the past 30 days.

It ranks #271 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -62.6%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
411,655
Official API · Oct 17, 2026
7-day growth
-54.8%
-498.6K weekly downloads
30-day growth
-53.0%
-463.6K weekly downloads
90-day growth
-62.6%
-687.7K weekly downloads
Rank
#271
Among tracked npm listings

About eslint-plugin-prefer-arrow

eslint-plugin-prefer-arrow

ESLint plugin to prefer arrow functions. By default, the plugin allows usage of function as a member of an Object's prototype, but this can be changed with the property disallowPrototype. Functions referencing this will also be allowed. Alternatively, with the singleReturnOnly option, this plugin only reports functions where converting to an arrow function would dramatically simplify the code.

Class methods will not produce errors unless the classPropertiesAllowed flag is set.

This plugin will automatically fix your code using ESLint's --fix option, as long as you use the singleReturnOnly option.

Installation

Install the npm package

Add the plugin to the plugins section and the rule to the rules section in your .eslintrc

Configuration

• disallowPrototype: If set to true, the plugin will warn if function is used anytime. Otherwise, the plugin allows usage of function if it is a member of an Object's prototype. • singleReturnOnly: If set to true, the plugin will only warn for function declarations which *only* contain a return statement. These often look much better when declared as arrow functions without braces. Works well in conjunction with ESLint's built-in arrow-body-style set to as-needed. • classPropertiesAllowed: If set to true, the plugin will warn about functions which could be replaced with arrow functions defined as class instance fields. Enable if you're using Babel's transform-class-properties plugin. • allowStandaloneDeclarations: If set to true, the plugin will ignore top-level function declarations (the plugin will still warn about "inner" functions, for example, function declarations inside other functions).

Autofixing

To autofix your code, simply run ESLint with the --fix option. Note that this only works when the singleReturnOnly option is set to true.

Description from the npm listing.

  • eslint
  • eslint-plugin
  • es6

Where eslint-plugin-prefer-arrow 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.

All npm2,248 listings · 113 pages · page 14, #11 (overall #271)
All npm: every listing in weekly downloads order
PNG SVG
ESLint plugins252 listings · 13 pages · page 3, #17 (overall #57)
ESLint plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

eslint-plugin-prefer-arrow weekly downloads on npm, last 90 days: 411,655 weekly downloads as of Oct 17, 2026, -62.6% over 90 days.eslint-plugin-prefer-arrowWeekly downloads on npm · Last 90 days411,655downloads / week-62.6% over 90 days400K500K600K700K800K900K1M1.1M1.2MJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
eslint-plugin-prefer-arrow weekly downloads on npm, last 90 days: 411,655 weekly downloads as of Oct 17, 2026, -62.6% over 90 days.
PNG SVG

7/30/90-day growth

eslint-plugin-prefer-arrow weekly downloads growth on npm: -54.8% over 7 days, -53.0% over 30 days, -62.6% over 90 days.eslint-plugin-prefer-arrowWeekly downloads growth on npm411,655downloads / week now7-day growth-498,551 weekly downloads-54.8%30-day growth-463,568 weekly downloads-53.0%90-day growth-687,729 weekly downloads-62.6%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
eslint-plugin-prefer-arrow weekly downloads growth on npm: -54.8% over 7 days, -53.0% over 30 days, -62.6% over 90 days.
PNG SVG

Ranking history

eslint-plugin-prefer-arrow npm ranking history: currently #271 (by weekly downloads).eslint-plugin-prefer-arrownpm ranking · by weekly downloads · Last 90 days#271current rank#269#270#271#272#273Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
eslint-plugin-prefer-arrow npm ranking history: currently #271 (by weekly downloads).
PNG SVG

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)
Recent weekly downloads observations for eslint-plugin-prefer-arrow
Date (UTC)Weekly downloadsChange vs. previous
411,655-57K
468,643+7.5K
461,193-207.7K
668,879-217.8K
886,6820
886,682-26.4K
913,081+2.9K
910,206+2.7K
907,553+15.1K
892,459-1.7K
894,124+7.2K
886,879-198K
1,084,909+3.9K
1,081,022—

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-prefer-arrow. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.