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 · Dec 6, 2026

eslint-plugin-sort-class-members has 820,998 recorded weekly downloads on npm, an increase of 24.1% over the past 30 days, ranking #315 of 3,247 tracked listings.

Weekly downloads
820,998
Official API · Dec 5, 2026
7-day growth
+18.2%
+126.6K weekly downloads
30-day growth
+24.1%
+159.3K weekly downloads
90-day growth
+103%
+417K weekly downloads
Rank
#315
▲ 4 in 7 days

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:

$ npm install eslint eslint-plugin-sort-class-members --save-dev

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.

{
	"plugins": ["sort-class-members"],
	"rules": {
		"sort-class-members/sort-class-members": [
			2,
			{
				"order": [
					"[static-properties]",
					"[static-methods]",
					"[properties]",
					"[conventional-private-properties]",
					"constructor",
					"[methods]",
					"[conventional-private-methods]"
				],
				"accessorPairPositioning": "getThenSet"
			}
		]
	}
}

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

import sortClassMembers from "eslint-plugin-sort-class-members";

export default [
	// Use the default configuration shown above.
	sortClassMembers.configs["flat/recommended"],

	rules: {
		// Customize specific configuration properties
		"sort-class-members/sort-class-members": [
			2,
			{
				"accessorPairPositioning": "together",
				"stopAfterFirstProblem": true
			}
		]
  }
];

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

class Foo {
	b = 'bar';

	c() {}

	constructor() {} // error Expected constructor to come before method c

	static a() {} // error Expected static method a to come before property b
}

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

class Foo {
	static a() {}

	b = 'bar';

	constructor() {}

	c() {}
}

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.
{
  "order": [
    "constructor",
    "[event-handlers]", // reference the custom group defined in the "groups" property
    "[everything-else]" // a few groups are provided by default (see list below)
  ],
  "groups": {
    "event-handlers": [{ "name": "/on.+/", "type": "method" }]
  },
  "accessorPairPositioning": "getThenSet",
  "stopAfterFirstProblem": 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.…

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-class-members weekly downloads on npm, last 90 days: 820,998 weekly downloads as of Dec 5, 2026, +103% over 90 days.eslint-plugin-sort-class-membersWeekly downloads on npm · Last 90 days820,998downloads / week+103% over 90 days0200K400K600K800K1MSep 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-class-members weekly downloads on npm, last 90 days: 820,998 weekly downloads as of Dec 5, 2026, +103% over 90 days.

7/30/90-day growth

eslint-plugin-sort-class-members weekly downloads growth on npm: +18.2% over 7 days, +24.1% over 30 days, +103% over 90 days.eslint-plugin-sort-class-membersWeekly downloads growth on npm820,998downloads / week now7-day growth+126,635 weekly downloads+18.2%30-day growth+159,254 weekly downloads+24.1%90-day growth+417,019 weekly downloads+103%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-sort-class-members weekly downloads growth on npm: +18.2% over 7 days, +24.1% over 30 days, +103% over 90 days.

Ranking history

eslint-plugin-sort-class-members npm ranking history: currently #315 (by weekly downloads).eslint-plugin-sort-class-membersnpm ranking · by weekly downloads · Last 90 days#315current rank#300#320#340#360#380#400#420Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-sort-class-members npm ranking history: currently #315 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 4, #8 (overall #68)
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-class-members
Date (UTC)Weekly downloadsChange vs. previous
820,998+7.4K
813,577+62.9K
750,712+65.6K
685,137+40.8K
644,329-3.6K
647,930-33K
680,916-13.4K
694,363-19.3K
713,685-55.7K
769,430-59.6K
829,042-29.6K
858,668-15K
873,651+14.6K
859,094—

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 Dec 6, 2026. See the methodology.