Skip to content
PluginStats

eslint-plugin-sort-class-members weekly downloads statistics

By bryanrsmith (2 listings) · npm · ESLint plugins

ESLint rule for enforcing consistent ES6 class member order.

View on npm Fresh · Oct 17, 2026

eslint-plugin-sort-class-members has 146,570 recorded weekly downloads on npm, a decrease of 61.5% over the past 30 days.

It ranks #412 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -74.1%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
146,570
Official API · Oct 17, 2026
7-day growth
-62.6%
-245.5K weekly downloads
30-day growth
-61.5%
-234K weekly downloads
90-day growth
-74.1%
-418.7K weekly downloads
Rank
#412
Among tracked npm listings

About eslint-plugin-sort-class-members

[![build][ci-image]][ci-url] [![npm][npm-image]][npm-url]

eslint-plugin-sort-class-members

ESLint rule for enforcing consistent ES6 class member order.

Installation

Install ESLint and eslint-plugin-sort-class-members:

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

Usage

Add sort-class-members to the plugins section of your .eslintrc configuration file, and configure the rule under the rules section.

Or, using ESLint's Flat Config (eslint.config.js):

When using the default configuration (shown above), the following patterns are considered problems:

When using the default configuration (shown above), the following patterns are not considered problems:

Configuration

The rule accepts the following configuration properties:

• order: Used to specify the expected sort order of class members. • groups: May optionally be used to created customized named groups of members so that order can be more easily maintained. Groups can be referenced by name by using square brackets. E.g., "[group-name]". • accessorPairPositioning: Used to specify the required positioning of get/set pairs. Available values: getThenSet, setThenGet, together, any. • stopAfterFirstProblem: Only report the first sort problem in each class (plus the number of problems found). Useful if you only want to know that the class has sort problems without spamming error messages. The default is false. • locale: Used to specify the locale for the name comparison method. The default is en-US. • sortInterfaces: Used to specify whether to sort TypeScript interfaces as well. The default is false.

Members can be matched to positional slots using several criteria, including name (exact match or regexp), member type (method or property), and whether or not the member is static. Each match slot is described by an object with six properties, all of which are optional.

• name: a string matching the name of the member. If the string starts and ends with / it will be interpreted as a regular expression. E.g., "/_.+/" will match members whose name starts with an underscore. • type: "method"|"property". Note: Class properties currently require a custom parser like babel-eslint. • kind: "get"|"set"|"accessor"|"nonAccessor". A subtype of type: "method" that can match getter or setter methods. "accessor" matches both getters and setters, while "nonAccessor" matches methods that are neither getters or setters. • propertyType: A subtype of type: "property" that can match the type of the property value. e.g., propertyType: "ArrowFunctionExpression" to match properties whose value is initialized to an arrow function. • accessorPair: true|false. True to match only getters and setters that are part of a pair. i.e., only those that have both get and set methods defined. • static: true|false to restrict the match to static or instance members. • private: true|false to restrict the match to private members. Note: Private members currently require a custom parser like babel-eslint. • accessibility: "public"|"private"|"protected" to restrict the match to members with the specified typescript accessibility modifier. Note: Requires @typescript-eslint/parser. • abstract: true|false to restrict the match to members with typescript abstract keyword. • override: true|false to restrict the match to members with typescript override keyword. • readonly: true|false to restrict the match to members with typescript readonly keyword. • async: true|false to restrict the match to async members. • sort: "alphabetical"|"none". Used to require a specific sorting within the slot for matched members. Defaults to "none". • groupByDecorator: string|true|false. A boolean used to indicate whether a property/method should have a decorator or a string used to group properties/methods with the same decorator name (e.g. observable for @observable). If the string starts and ends with / it will be interpreted as a regular expression. E.g., "/_.+/" will match members that have a decorator that starts with an underscore. Can be used together with sort. Note: Decorators are a Stage 2 proposal and require a custom parser like babel-eslint.

A few examples:

• { "name": "create", "type": "method", "static": true } would match a static method named create. • { "static": true } would match all static methods and properties. • { "type": "method", "private": true } would match all private methods. • { "async": true } would match all async methods. • { "name": "/on.+/", "type": "method" } would match both static and instance methods whose names start with "on". • "/on.+/" is shorthand for { "name": "/on.+/" }, and would match all static and instance methods and properties whose names start with "on". • { "type": "method", "sort": "alphabetical" } would match all methods, and enforce an alphabetical sort.

Note: You can simply use a string if you only want to match on the name.

The following groups are provided by default:

• [properties]: matches all properties • [getters]: matches all getter methods • [setters]: matches all setter methods • [accessor-pairs]: matches getters and setters that are part of a pair (where both get and set methods are defined) • [static-properties]: matches all static properties • [conventional-private-properties]: matches properties whose name starts with an underscore • [arrow-function-properties]: matches properties whose value is initialized to an arrow function • [methods]: matches all methods • [static-methods]: matches all static methods • [async-methods]: matches all async methods • [conventional-private-methods]: matches methods whose name starts with an underscore • [everything-else]: matches all class members not matched by any other rule

NOTE: Currently only class properties using the proposed syntax are matched by "type": "property". Properties added via assignment are not considered by this rule.

Acknowledgements…

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin

Where eslint-plugin-sort-class-members 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.

All npm2,248 listings · 113 pages · page 21, #12 (overall #412)
All npm: every listing in weekly downloads order
PNG SVG
ESLint plugins252 listings · 13 pages · page 5, #9 (overall #89)
ESLint plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

eslint-plugin-sort-class-members weekly downloads on npm, last 90 days: 146,570 weekly downloads as of Oct 17, 2026, -74.1% over 90 days.eslint-plugin-sort-class-membersWeekly downloads on npm · Last 90 days146,570downloads / week-74.1% over 90 days0100K200K300K400K500K600K700KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
eslint-plugin-sort-class-members weekly downloads on npm, last 90 days: 146,570 weekly downloads as of Oct 17, 2026, -74.1% over 90 days.
PNG SVG

7/30/90-day growth

eslint-plugin-sort-class-members weekly downloads growth on npm: -62.6% over 7 days, -61.5% over 30 days, -74.1% over 90 days.eslint-plugin-sort-class-membersWeekly downloads growth on npm146,570downloads / week now7-day growth-245,498 weekly downloads-62.6%30-day growth-233,999 weekly downloads-61.5%90-day growth-418,711 weekly downloads-74.1%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
eslint-plugin-sort-class-members weekly downloads growth on npm: -62.6% over 7 days, -61.5% over 30 days, -74.1% over 90 days.
PNG SVG

Ranking history

eslint-plugin-sort-class-members npm ranking history: currently #412 (by weekly downloads).eslint-plugin-sort-class-membersnpm ranking · by weekly downloads · Last 90 days#412current rank#410#411#412#413#414Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
eslint-plugin-sort-class-members npm ranking history: currently #412 (by weekly downloads).
PNG SVG

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 (121)
Recent weekly downloads observations for eslint-plugin-sort-class-members
Date (UTC)Weekly downloadsChange vs. previous
146,570-20.4K
166,984-1.4K
168,425-94.3K
262,727-97.8K
360,5390
360,539-32.8K
393,328+1.3K
392,068+5.4K
386,666+18.9K
367,804-154
367,958-5.8K
373,771-97.4K
471,200-4.2K
475,414—

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-sort-class-members. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.