Skip to content
PluginStats

eslint-plugin-sort-keys-plus weekly downloads statistics

By forivall · npm · ESLint plugins

Fork of eslint rule that sorts keys in objects (https://eslint.org/docs/rules/sort-keys) with extra features

View on npm Fresh · Dec 6, 2026

eslint-plugin-sort-keys-plus has 42,022 recorded weekly downloads on npm, a decrease of 37.5% over the past 30 days, ranking #834 of 3,247 tracked listings.

Weekly downloads
42,022
Official API · Dec 5, 2026
7-day growth
+62.1%
+16.1K weekly downloads
30-day growth
-37.5%
-25.2K weekly downloads
90-day growth
+192%
+27.6K weekly downloads
Rank
#834
▲ 103 in 7 days

About eslint-plugin-sort-keys-plus

eslint-plugin-sort-keys-plus

Fork of eslint rule that sorts keys in objects (https://eslint.org/docs/rules/sort-keys) with autofix enabled

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-sort-keys-plus:

$ npm install eslint-plugin-sort-keys-plus --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-sort-keys-plus globally.

Usage

Add sort-keys-plus to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": [
    "sort-keys-plus"
  ]
}

Then add sort-keys-plus rule under the rules section.

{
    "rules": {
        "sort-keys-plus/sort-keys": "warn"
    }
}

Often it makes sense to enable sort-keys-plus only for certain files/directories. For cases like that, use override key of eslint config:

{
  "rules": {
    // ...
  },
  "overrides": [
    {
      "files": ["src/alphabetical.js", "bin/*.js", "lib/*.js"],
      "rules": {
        "sort-keys-plus/sort-keys-plus": "warn"
      }
    }
  ]
}

In some cases, there should be a specific order for some properties of an object, such as with mongodb aggregations. For that, use the override key of the configuration:

{
  "rules": {
    "sort-keys-plus/sort-keys": ["warn", "asc", {
      "overrides": [
        {
          "properties": ["$lookup"],
          "order": ["from", "localField", "foreignField", "as"]
        }
      ]
    }]
  }
}

Rule configuration

For available config options, see official sort-keys reference. All options supported by sort-keys are supported by sort-keys-plus.

{
  "sort-keys-shorthand/sort-keys-shorthand": [
    "error",
    "asc",
    {
      "caseSensitive": true,
      "minKeys": 2,
      "natural": false,
      "ignoreSingleLine": false,
      "allCaps": "ignore",
      "shorthand": "ignore",
      "overrides": [],
    }
  ]
}

Additional properties that can be set in the 2nd option object supported are as follows:

  • ignoreSingleline - if true, this rule is ignored on single line objects. Default is false.
  • allCaps handling for ALL_CAPS properties
    • ignore no rules for all caps
    • first all caps properties must be first
    • last all caps properties must be last
  • shorthand handling for shorthand properties
    • ignore no rules for shorthands
    • first shorthand properties must be first
    • last shrothand properties must be last

shorthand is checked after allCaps, so ALL_CAPS will be before shorthand when both are 'first'.

  • overrides allows custom orders for specific sets of keys, or sub-objects with a specific parent key. See below for configuration.
ignoreSingleLine

Examples of incorrect code for the {ignoreSingleLine: true} option:

/*eslint sort-keys-plus/sort-keys: ["error", "asc", {ignoreSingleLine: true}]*/
/*eslint-env es6*/
let obj = {
  e: 1,
  c: 3,
  C: 4,
  b: 2
};

Examples of correct code for the {ignoreSingleLine: true} option:

/*eslint sort-keys-plus/sort-keys: ["error", "asc", {ignoreSingleLine: true}]*/
/*eslint-env es6*/
let obj = { e: 1, b: 2, c: 3, C: 4 };
allCaps

Examples of incorrect code for the {allCaps: 'first'} option:

/*eslint sort-keys-plus/sort-keys: ["error", "asc", {allCaps: 'first'}]*/
/*eslint-env es6*/
let obj = {
  a: 1,
  B_CONSTANT: 2, // not sorted correctly (should be 1st key)
  c: 3,
  d: 4
};

Examples of correct code for the {allCaps: 'first'} option:

/*eslint sort-keys-plus/sort-keys: ["error", "asc", {allCaps: 'first'}]*//
/*eslint-env es6*/
let obj = {
    B_CONSTANT: 2,
    a: 1,
    c: 3,
};
shorthand

Examples of incorrect code for the {shorthand: 'first'} option:

/*eslint sort-keys-plus/sort-keys: ["error", "asc", {shorthand: 'first'}]*/
/*eslint-env es6*/
const b = 2;
let obj = {
  a: 1,
  b, // not sorted correctly (should be 1st key)
  c: 3,
  d: 4
};

Examples of correct code for the {shorthand: 'first'} option:

/*eslint sort-keys-plus/sort-keys: ["error", "asc", {shorthand: 'first'}]*//
/*eslint-env es6*/
const b = 2;
let obj = {
    b,
    a: 1,
    c: 3,
};
overrides

Configuration:

      "overrides": [
        {
          "order": ["title", "description"],
          "message": "`title` should be before `description`",
        },
        {
          "properties": ["anyOrder"],
          "ignore": true
        }
      ],
  • order define the property keys that should be ordered
    • ignore allow any property key order
  • esquery define an esquery filter which must match the target object for this override to apply
  • properties define parent property key for this rule. Equivalent to esquery: 'Property:is([key.name=property1], [key.name=property2]) > .value';
    • If neither esquery or properties are not provided, the override will apply to all objects with a subset of the keys in order
  • message optional custom message when the rule is violated

Examples of incorrect code for the {overrides: [{order: ['b', 'a', 'd']}]} option:

/*eslint sort-keys-plus/sort-keys: ["error", "asc", {overrides: [{order: ['b', 'a', 'd']}]}]*/
/*eslint-env es6*/
let obj = {
  a: 1,
  b: 2, // not sorted correctly (should be 1st key)
  d: 4
};

Examples of correct code for the {overrides: [{order: ['b', 'a', 'd']}]} option:

/*eslint sort-keys-plus/sort-keys: ["error", "asc", {overrides: [{order: ['b', 'a', 'd']}]}]*/
/*eslint-env es6*/
let obj = {
  b: 2,
  a: 1,
  d: 4
};
// has additional properties
let obj = {
  a: 1,
  b: 2,
  c: 3,
  d: 4
};
```…

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-sort-keys-plus weekly downloads on npm, last 90 days: 42,022 weekly downloads as of Dec 5, 2026, +192% over 90 days.eslint-plugin-sort-keys-plusWeekly downloads on npm · Last 90 days42,022downloads / week+192% over 90 days010K20K30K40K50K60K70KSep 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-sort-keys-plus weekly downloads on npm, last 90 days: 42,022 weekly downloads as of Dec 5, 2026, +192% over 90 days.

7/30/90-day growth

eslint-plugin-sort-keys-plus weekly downloads growth on npm: +62.1% over 7 days, -37.5% over 30 days, +192% over 90 days.eslint-plugin-sort-keys-plusWeekly downloads growth on npm42,022downloads / week now7-day growth+16,105 weekly downloads+62.1%30-day growth-25,192 weekly downloads-37.5%90-day growth+27,638 weekly downloads+192%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-sort-keys-plus weekly downloads growth on npm: +62.1% over 7 days, -37.5% over 30 days, +192% over 90 days.

Ranking history

eslint-plugin-sort-keys-plus npm ranking history: currently #834 (by weekly downloads).eslint-plugin-sort-keys-plusnpm ranking · by weekly downloads · Last 90 days#834current rank#650#700#750#800#850#900#950#1000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-sort-keys-plus npm ranking history: currently #834 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 11, #5 (overall #205)
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-sort-keys-plus
Date (UTC)Weekly downloadsChange vs. previous
42,022+1.6K
40,406+7.1K
33,319+6.2K
27,150+2.7K
24,479-1.1K
25,603+954
24,649-1.3K
25,917-17
25,934-2.1K
28,020-5.4K
33,429-1.1K
34,506-1K
35,546-883
36,429—

Similar npm ESLint plugins plugins

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