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
eslint-plugin-sort-keys-plus has 15,059 recorded weekly downloads on npm, a decrease of 32.1% over the past 30 days, ranking #821 of 2,256 tracked listings.
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:
Next, install eslint-plugin-sort-keys-plus:
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:
Then add sort-keys-plus rule under the rules section.
Often it makes sense to enable sort-keys-plus only for certain files/directories. For cases like that, use override key of eslint config:
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:
Rule configuration
For available config options, see official sort-keys reference. All options supported by sort-keys are supported by sort-keys-plus.
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:
Examples of correct code for the {ignoreSingleLine: true} option:
allCaps
Examples of incorrect code for the {allCaps: 'first'} option:
Examples of correct code for the {allCaps: 'first'} option:
shorthand
Examples of incorrect code for the {shorthand: 'first'} option:
Examples of correct code for the {shorthand: 'first'} option:
overrides
Configuration:
• 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:
Examples of correct code for the {overrides: [{order: ['b', 'a', 'd']}]} option:
Examples of incorrect code for the {overrides: [{esquery: 'Property[key.name=a] > .value', order: ['b', 'a', 'd']}]} or {overrides: [{properties: ['a'], order: ['b', 'a', 'd']}]} option:
Examples of correct code for the {overrides: [{esquery: 'Property[key.name=a] > .value', order: ['b', 'a', 'd']}]} or {overrides: [{properties: ['a'], order: ['b', 'a', 'd']}]} option:
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (121)Similar npm ESLint plugins plugins
All 20 eslint-plugin-sort-keys-plus alternativesData 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 Oct 19, 2026. See the methodology.