Skip to content
PluginStats

eslint-plugin-prefer-object-spread weekly downloads statistics

By bryanrsmith (2 listings) · npm · ESLint plugins

ESLint rule for suggesting that object spread properties be used instead of Object.assign().

View on npm Fresh · Dec 6, 2026

eslint-plugin-prefer-object-spread has 49,158 recorded weekly downloads on npm, an increase of 8.4% over the past 30 days, ranking #792 of 3,247 tracked listings.

Weekly downloads
49,158
Official API · Dec 5, 2026
7-day growth
+30.8%
+11.6K weekly downloads
30-day growth
+8.4%
+3.8K weekly downloads
90-day growth
+43.6%
+14.9K weekly downloads
Rank
#792
▲ 42 in 7 days

About eslint-plugin-prefer-object-spread

build status test coverage npm

eslint-plugin-prefer-object-spread

ESLint rule for suggesting that object spread properties be used instead of Object.assign().

Installation

Install ESLint and eslint-plugin-prefer-object-spread:

$ npm install --save-dev eslint eslint-plugin-prefer-object-spread

Usage

Add prefer-object-spread to the plugins section of your .eslintrc configuration file, and configure the rule under the rules section.

{
  "plugins": [
    "prefer-object-spread"
  ],
  "rules": {
    "prefer-object-spread/prefer-object-spread": 2
  }
}

This rule suggests that object spread properties be used instead of Object.assign(). The rule is only applied when Object.assign() is used for cloning; not when it is used to extend an existing object. i.e., it applies when the first argument to Object.assign() is an object literal. This is because spread properties only iterate over own properties.

When using this rule the following patterns are considered problems:

var a = Object.assign({}, foo); // error Use a spread property instead of Object.assign().

var b = Object.assign({ c: 1 }, bar); // error Use a spread property instead of Object.assign().

The following patterns are considered okay:

var a = { ...foo };

var b = { c: 1, ...bar };

Object.assign(b, { d: 2 });

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

eslint-plugin-prefer-object-spread weekly downloads on npm, last 90 days: 49,158 weekly downloads as of Dec 5, 2026, +43.6% over 90 days.eslint-plugin-prefer-object-spreadWeekly downloads on npm · Last 90 days49,158downloads / week+43.6% over 90 days010K20K30K40K50K60KSep 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-object-spread weekly downloads on npm, last 90 days: 49,158 weekly downloads as of Dec 5, 2026, +43.6% over 90 days.

7/30/90-day growth

eslint-plugin-prefer-object-spread weekly downloads growth on npm: +30.8% over 7 days, +8.4% over 30 days, +43.6% over 90 days.eslint-plugin-prefer-object-spreadWeekly downloads growth on npm49,158downloads / week now7-day growth+11,564 weekly downloads+30.8%30-day growth+3,801 weekly downloads+8.4%90-day growth+14,928 weekly downloads+43.6%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-prefer-object-spread weekly downloads growth on npm: +30.8% over 7 days, +8.4% over 30 days, +43.6% over 90 days.

Ranking history

eslint-plugin-prefer-object-spread npm ranking history: currently #792 (by weekly downloads).eslint-plugin-prefer-object-spreadnpm ranking · by weekly downloads · Last 90 days#792current rank#740#760#780#800#820#840Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-prefer-object-spread npm ranking history: currently #792 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 10, #18 (overall #198)
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-object-spread
Date (UTC)Weekly downloadsChange vs. previous
49,158+886
48,272+3.1K
45,124+4.3K
40,804+2.2K
38,615+7
38,608+166
38,442+848
37,594-3.8K
41,344-4.4K
45,758-5.2K
50,923-3.7K
54,662-25
54,687+1.6K
53,119—

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-object-spread. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.