Skip to content
PluginStats

eslint-plugin-prefer-arrow-functions weekly downloads statistics

By JamieMason · npm · ESLint plugins

Convert functions to arrow functions

View on npm Stale · Oct 17, 2026

eslint-plugin-prefer-arrow-functions has 139,636 recorded weekly downloads on npm, a decrease of 58.6% over the past 30 days, ranking #416 of 2,256 tracked listings.

Weekly downloads
139,636
Official API · Oct 17, 2026
7-day growth
-60.4%
-213.2K weekly downloads
30-day growth
-58.6%
-197.4K weekly downloads
90-day growth
-60.8%
-216.8K weekly downloads
Rank
#416
Among tracked npm listings

About eslint-plugin-prefer-arrow-functions

eslint-plugin-prefer-arrow-functions

An ESLint Plugin to Lint and auto-fix plain Functions into Arrow Functions, in all cases where conversion would result in the same behaviour (Arrow Functions do not support this, arguments, or new.target for example).

Installation

Configuration

Flat

For ESLint 9 and above, use the shared config all in eslint.config.mjs:

Or configure the rule(s) on your own:

Legacy

For ESLint 8 (8.57.0 or newer).

Add the plugin to the plugins section and the rule to the rules section in your .eslintrc. The default values for options are listed in this example.

Options

allowedNames

An optional array of function names to ignore. When set, the rule won't report named functions such as function foo() {} whose name is identical to a member of this array.

For compatibility with @angular-eslint/require-lifecycle-on-prototype, you can do:

allowNamedFunctions

Controls how named functions are handled:

• When true, the rule won't report any named functions such as function foo() {}. Anonymous functions such as const foo = function() {} will still be reported. • When "only-expressions", the rule will allow named function expressions (like callback(function namedFn() {})) but will still transform named function declarations (like function foo() {}). • When false (default), all functions will be transformed to arrow functions when safe to do so.

allowObjectProperties

If set to true, the rule won't report named methods such as

classPropertiesAllowed

When true, functions defined as class instance fields will be converted to arrow functions when doing so would not alter or break their behaviour.

disallowPrototype

When true, functions assigned to a prototype will be converted to arrow functions when doing so would not alter or break their behaviour.

returnStyle

• When "implicit", arrow functions such as x => { return x; } will be converted to x => x. • When "explicit", arrow functions such as x => x will be converted to x => { return x; }. • When "unchanged" or not set, arrow functions will be left as they were.

singleReturnOnly

When true, only function declarations which only contain a return statement will be converted. Functions containing block statements will be ignored.

This option works well in conjunction with ESLint's built-in arrow-body-style set to as-needed.

Credits

This project is a fork of by Triston Jones.

Badges

• • • •

Description from the npm listing.

  • es6
  • eslint
  • 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

eslint-plugin-prefer-arrow-functions weekly downloads on npm, last 90 days: 139,636 weekly downloads as of Oct 17, 2026, -60.8% over 90 days.eslint-plugin-prefer-arrow-functionsWeekly downloads on npm · Last 90 days139,636downloads / week-60.8% over 90 days0100K200K300K400K500KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 17, 2026 · 88 observations · Updated Oc…pluginstats.com
eslint-plugin-prefer-arrow-functions weekly downloads on npm, last 90 days: 139,636 weekly downloads as of Oct 17, 2026, -60.8% over 90 days.

7/30/90-day growth

eslint-plugin-prefer-arrow-functions weekly downloads growth on npm: -60.4% over 7 days, -58.6% over 30 days, -60.8% over 90 days.eslint-plugin-prefer-arrow-functionsWeekly downloads growth on npm139,636downloads / week now7-day growth-213,186 weekly downloads-60.4%30-day growth-197,442 weekly downloads-58.6%90-day growth-216,765 weekly downloads-60.8%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
eslint-plugin-prefer-arrow-functions weekly downloads growth on npm: -60.4% over 7 days, -58.6% over 30 days, -60.8% over 90 days.

Ranking history

eslint-plugin-prefer-arrow-functions npm ranking history: currently #416 (by weekly downloads).eslint-plugin-prefer-arrow-functionsnpm ranking · by weekly downloads · Last 90 days#416current rank#150#200#250#300#350#400#450Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 17, 2026 – Oct 19, 2026 · 3 observations · Updated Oct 17, 2026pluginstats.com
eslint-plugin-prefer-arrow-functions npm ranking history: currently #416 (by weekly downloads).

Listing placement

All npm2,256 listings · 113 pages · 1,130 shown · page 21, #16 (overall #416)
All npm: every listing in weekly downloads order

Listing placement

ESLint plugins253 listings · 13 pages · page 5, #11 (overall #91)
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 (542)
Recent weekly downloads observations for eslint-plugin-prefer-arrow-functions
Date (UTC)Weekly downloadsChange vs. previous
139,636-14.5K
154,090+13.9K
140,238-93.4K
233,603-94.3K
327,9100
327,910-24.9K
352,796-26
352,822-2.5K
355,301+7.3K
348,027+16.9K
331,169+14K
317,167-86K
403,131-6.7K
409,792—

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