Skip to content
PluginStats

eslint-plugin-css-modules weekly downloads statistics

By atfzl · npm · ESLint plugins

Checks that you are using the existent css/scss/less classes, no more no less

View on npm Fresh · Dec 6, 2026

eslint-plugin-css-modules has 166,477 recorded weekly downloads on npm, a decrease of 10.4% over the past 30 days, ranking #558 of 3,247 tracked listings.

Weekly downloads
166,477
Official API · Dec 5, 2026
7-day growth
+19.8%
+27.5K weekly downloads
30-day growth
-10.4%
-19.4K weekly downloads
90-day growth
+42.7%
+49.8K weekly downloads
Rank
#558
▲ 7 in 7 days

About eslint-plugin-css-modules

eslint-plugin-css-modules

Build Status

This plugin intends to help you in tracking down problems when you are using css-modules. It tells if you are using a non-existent css/scss/less class in js or if you forgot to use some classes which you declared in css/scss/less.

Rules

  • css-modules/no-unused-class: You must use all the classes defined in css/scss/less file.

If you still want to mark a class as used, then use this comment on top of your file

/* eslint css-modules/no-unused-class: [2, { markAsUsed: ['container'] }] */

where container is the css class that you want to mark as used. Add all such classes in the array.

If you use the camelCase option of css-loader, you must also enabled it for this plugin

/* eslint css-modules/no-unused-class: [2, { camelCase: true }] */
  • css-modules/no-undef-class: You must not use a non existing class, or a property that hasn't been exported using the :export keyword.

If you use the camelCase option of css-loader, you must also enabled it for this plugin

/* eslint css-modules/no-undef-class: [2, { camelCase: true }] */

Installation

npm i --save-dev eslint-plugin-css-modules

Usage:

.eslintrc

{
  "plugins": [
    "css-modules"
  ],
  "extends": [
    "plugin:css-modules/recommended"
  ]
}

You may also tweak the rules individually. For instance, if you use the camelCase option of webpack's css-loader:

{
  "plugins": [
    "css-modules"
  ],
  "extends": [
    "plugin:css-modules/recommended"
  ],
  "rules": {
    "css-modules/no-unused-class": [2, { "camelCase": true }],
    "css-modules/no-undef-class": [2, { "camelCase": true }]
  }
}

The camelCase option has 4 possible values, see css-loader#camelCase for description:

true | "dashes" | "only" | "dashes-only"

Specifying base path

You can specify path for the base directory via plugin settings in .eslintrc. This is used by the plugin to resolve absolute (S)CSS paths:

{
  "settings": {
    "css-modules": {
      "basePath": "app/scripts/..."
    }
  }
}

Screen Shot

ScreenShot

   1:8   error  Unused classes found: container  css-modules/no-unused-class
   5:17  error  Class 'containr' not found       css-modules/no-undef-class
  10:26  error  Class 'foo' not found            css-modules/no-undef-class

scss:

/* .head is global, will not be used in js */
:global(.head) {
  color: green;
}

.container {
  width: 116px;

  i {
    font-size: 2.2rem;
  }

  .button {
    padding: 7px 0 0 5px;
  }
}

.footer {
  color: cyan;
}

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin
  • css-modules

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-css-modules weekly downloads on npm, last 90 days: 166,477 weekly downloads as of Dec 5, 2026, +42.7% over 90 days.eslint-plugin-css-modulesWeekly downloads on npm · Last 90 days166,477downloads / week+42.7% over 90 days050K100K150K200KSep 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-css-modules weekly downloads on npm, last 90 days: 166,477 weekly downloads as of Dec 5, 2026, +42.7% over 90 days.

7/30/90-day growth

eslint-plugin-css-modules weekly downloads growth on npm: +19.8% over 7 days, -10.4% over 30 days, +42.7% over 90 days.eslint-plugin-css-modulesWeekly downloads growth on npm166,477downloads / week now7-day growth+27,499 weekly downloads+19.8%30-day growth-19,391 weekly downloads-10.4%90-day growth+49,785 weekly downloads+42.7%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-css-modules weekly downloads growth on npm: +19.8% over 7 days, -10.4% over 30 days, +42.7% over 90 days.

Ranking history

eslint-plugin-css-modules npm ranking history: currently #558 (by weekly downloads).eslint-plugin-css-modulesnpm ranking · by weekly downloads · Last 90 days#558current rank#490#500#510#520#530#540#550#560#570Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-css-modules npm ranking history: currently #558 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 7, #14 (overall #134)
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-css-modules
Date (UTC)Weekly downloadsChange vs. previous
166,477+3.4K
163,093+8.9K
154,150+10.7K
143,420+2.2K
141,214-166
141,380+1.6K
139,774+796
138,978+233
138,745-7.9K
146,602-9.1K
155,672-3.1K
158,745-7K
165,733-4.4K
170,112—

Similar npm ESLint plugins plugins

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