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 · Oct 18, 2026

eslint-plugin-css-modules has 72,487 recorded weekly downloads on npm, a decrease of 39.4% over the past 30 days, ranking #514 of 2,322 tracked listings.

Weekly downloads
72,487
Official API · Oct 18, 2026
7-day growth
-46.0%
-61.8K weekly downloads
30-day growth
-39.4%
-47.2K weekly downloads
90-day growth
-52.4%
-79.9K weekly downloads
Rank
#514
Among tracked npm listings

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: 72,487 weekly downloads as of Oct 18, 2026, -52.4% over 90 days.eslint-plugin-css-modulesWeekly downloads on npm · Last 90 days72,487downloads / week-52.4% over 90 days60K80K100K120K140K160K180KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
eslint-plugin-css-modules weekly downloads on npm, last 90 days: 72,487 weekly downloads as of Oct 18, 2026, -52.4% over 90 days.

7/30/90-day growth

eslint-plugin-css-modules weekly downloads growth on npm: -46.0% over 7 days, -39.4% over 30 days, -52.4% over 90 days.eslint-plugin-css-modulesWeekly downloads growth on npm72,487downloads / week now7-day growth-61,798 weekly downloads-46.0%30-day growth-47,155 weekly downloads-39.4%90-day growth-79,859 weekly downloads-52.4%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
eslint-plugin-css-modules weekly downloads growth on npm: -46.0% over 7 days, -39.4% over 30 days, -52.4% over 90 days.

Ranking history

eslint-plugin-css-modules npm ranking history: currently #514 (by weekly downloads).eslint-plugin-css-modulesnpm ranking · by weekly downloads · Last 90 days#514current rank#495#500#505#510#515#520Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
eslint-plugin-css-modules npm ranking history: currently #514 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 26, #14 (overall #514)
All npm: every listing in weekly downloads order

Listing placement

ESLint plugins256 listings · 13 pages · page 6, #20 (overall #120)
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 (122)
Recent weekly downloads observations for eslint-plugin-css-modules
Date (UTC)Weekly downloadsChange vs. previous
72,487+5.3K
67,154-6.5K
73,695+233
73,462-31.5K
104,946-32.2K
137,1080
137,108+2.8K
134,285+2.1K
132,142+1.3K
130,821+1.6K
129,221+1.2K
128,070+883
127,187-32K
159,192—

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 Oct 20, 2026. See the methodology.