eslint-plugin-prefer-arrow-functions weekly downloads statistics
By JamieMason · npm · ESLint plugins
Convert functions to arrow functions
eslint-plugin-prefer-arrow-functions has 139,636 recorded weekly downloads on npm, a decrease of 58.6% over the past 30 days.
It ranks #416 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -60.8%.
PluginStats has 542 daily observations since Apr 24, 2025; the latest is from Oct 17, 2026.
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
Where eslint-plugin-prefer-arrow-functions 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 (542)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-functions. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.