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 · Dec 6, 2026

eslint-plugin-prefer-arrow has 1,171,531 recorded weekly downloads on npm, an increase of 4.7% over the past 30 days, ranking #281 of 3,247 tracked listings.

Weekly downloads
1,171,531
Official API · Dec 5, 2026
7-day growth
+10.1%
+107.9K weekly downloads
30-day growth
+4.7%
+52.4K weekly downloads
90-day growth
+37.4%
+318.8K weekly downloads
Rank
#281
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

# If eslint is installed globally
npm install -g eslint-plugin-prefer-arrow

# If eslint is installed locally
npm install -D eslint-plugin-prefer-arrow

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

"plugins": [
  "prefer-arrow"
],
"rules": {
  "prefer-arrow/prefer-arrow-functions": [
    "warn",
    {
      "disallowPrototype": true,
      "singleReturnOnly": false,
      "classPropertiesAllowed": false
    }
  ]
}

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.

eslint --fix src

Description from the npm listing.

  • eslint
  • eslint-plugin
  • es6

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-prefer-arrow weekly downloads on npm, last 90 days: 1,171,531 weekly downloads as of Dec 5, 2026, +37.4% over 90 days.eslint-plugin-prefer-arrowWeekly downloads on npm · Last 90 days1,171,531downloads / week+37.4% over 90 days0200K400K600K800K1M1.2MSep 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-prefer-arrow weekly downloads on npm, last 90 days: 1,171,531 weekly downloads as of Dec 5, 2026, +37.4% over 90 days.

7/30/90-day growth

eslint-plugin-prefer-arrow weekly downloads growth on npm: +10.1% over 7 days, +4.7% over 30 days, +37.4% over 90 days.eslint-plugin-prefer-arrowWeekly downloads growth on npm1,171,531downloads / week now7-day growth+107,913 weekly downloads+10.1%30-day growth+52,414 weekly downloads+4.7%90-day growth+318,775 weekly downloads+37.4%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-prefer-arrow weekly downloads growth on npm: +10.1% over 7 days, +4.7% over 30 days, +37.4% over 90 days.

Ranking history

eslint-plugin-prefer-arrow npm ranking history: currently #281 (by weekly downloads).eslint-plugin-prefer-arrownpm ranking · by weekly downloads · Last 90 days#281current rank#268#270#272#274#276#278#280#282#284#286Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-prefer-arrow npm ranking history: currently #281 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 15, #1 (overall #281)
All npm: every listing in weekly downloads order

Listing placement

ESLint plugins290 listings · 15 pages · page 3, #18 (overall #58)
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-prefer-arrow
Date (UTC)Weekly downloadsChange vs. previous
1,171,531+13K
1,158,547+49.4K
1,109,174+49.9K
1,059,305+12.9K
1,046,430-9K
1,055,475-5.1K
1,060,531-3.1K
1,063,618-6.2K
1,069,782-34.5K
1,104,312-38.3K
1,142,627-14.2K
1,156,847+9.4K
1,147,458+5.4K
1,142,059—

Similar npm ESLint plugins plugins

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