Skip to content
PluginStats

eslint-plugin-clsx weekly downloads statistics

By temoncher · npm · ESLint plugins

An ESLint plugin for clsx/classnames

View on npm Fresh · Dec 6, 2026

eslint-plugin-clsx has 80,622 recorded weekly downloads on npm, an increase of 207% over the past 30 days, ranking #675 of 3,247 tracked listings.

Weekly downloads
80,622
Official API · Dec 5, 2026
7-day growth
+89.4%
+38.1K weekly downloads
30-day growth
+207%
+54.3K weekly downloads
90-day growth
+745%
+71.1K weekly downloads
Rank
#675
▲ 127 in 7 days

About eslint-plugin-clsx

eslint-plugin-clsx

An ESLint plugin for clsx/classnames

<!-- vscode-markdown-toc --> <!-- vscode-markdown-toc-config numbering=false autoSave=true /vscode-markdown-toc-config --> <!-- /vscode-markdown-toc -->

<a name='Installation'></a>Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-clsx:

npm install eslint-plugin-clsx --save-dev

<a name='Usage'></a>Usage

Here's an example ESLint configuration that:

  • Enables the recommended configuration
  • Enables an optional/non-recommended rule
{
    "extends": ["plugin:clsx/recommended"],
    "rules": {
        "clsx/no-redundant-clsx": "error"
    }
}

<a name='Rules'></a>Rules

<!-- begin auto-generated rules list -->

⚠️ Configurations set to warn in.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.

Name                                  Description⚠️🔧
forbid-array-expressionsforbid usage of array expressions inside clsx✅🔧
forbid-false-inside-object-expressionsforbid usage of false literal inside object expressions of clsx✅🔧
forbid-true-inside-object-expressionsforbid usage of true literal inside object expressions of clsx✅🔧
no-redundant-clsxdisallow redundant clsx usage✅🔧
no-spreadingforbid usage of object expression inside clsx✅🔧
prefer-logical-over-objectsforbid usage of object expression inside clsx🔧
prefer-merged-neighboring-elementsenforce merging of neighboring elements✅🔧
prefer-objects-over-logicalforbid usage of logical expressions inside clsx🔧
<!-- end auto-generated rules list -->

<a name='Presets'></a>Presets

NameDescription
✅recommendedenables all recommended rules in this plugin
allenables all rules in this plugin
<a name='Presetusage'></a>Preset usage

Presets are enabled by adding a line to the extends list in your config file. For example, to enable the recommended preset, use:

import { defineConfig } from "eslint/config";
import clsx from "eslint-plugin-clsx";

export default defineConfig(
  /* Main config */
  clsx.configs.flat.recommended,
);

or in legacy config (.eslintrc.json)

{
    "extends": ["plugin:clsx/recommended"]
}

<a name='Settings'></a>Settings

This rule can optionally be configured with an object that represents imports that should be considered an clsx usage

import { defineConfig } from "eslint/config";
import clsx from "eslint-plugin-clsx";

export default defineConfig(
  {
    plugins: { clsx },
    settings: {
      clsxOptions: {
        myclsx: ["default", "clsx"],
      },
    },
    rules: {
      'clsx/no-redundant-clsx': 'error',
    }
  }
);

or in legacy config (.eslintrc.json)

{
    "settings": {
        "clsxOptions": {
            "myclsx": "default"
        }
    }
}

Examples of incorrect code for the { myclsx: 'default' } setting (with no-redundant-clsx rule enabled):

import mc from 'myclsx';

const singleClasses = mc('single-class');

Examples of incorrect code for the { myclsx: 'cn' } setting (with no-redundant-clsx rule enabled):

import { cn } from 'myclsx';

const singleClasses = cn('single-class');

Examples of incorrect code for the { myclsx: ['default', 'cn'] } setting (with no-redundant-clsx rule enabled):

import mc, { cn } from 'myclsx';

// both report errors
const singleClasses = cn('single-class');
const singleClasses = mc('single-class');

Default setting value is { clsx: ['default', 'clsx'], classnames: 'default' }

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin
  • clsx
  • classnames

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-clsx weekly downloads on npm, last 90 days: 80,622 weekly downloads as of Dec 5, 2026, +745% over 90 days.eslint-plugin-clsxWeekly downloads on npm · Last 90 days80,622downloads / week+745% over 90 days020K40K60K80K100KSep 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-clsx weekly downloads on npm, last 90 days: 80,622 weekly downloads as of Dec 5, 2026, +745% over 90 days.

7/30/90-day growth

eslint-plugin-clsx weekly downloads growth on npm: +89.4% over 7 days, +207% over 30 days, +745% over 90 days.eslint-plugin-clsxWeekly downloads growth on npm80,622downloads / week now7-day growth+38,059 weekly downloads+89.4%30-day growth+54,342 weekly downloads+207%90-day growth+71,079 weekly downloads+745%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-clsx weekly downloads growth on npm: +89.4% over 7 days, +207% over 30 days, +745% over 90 days.

Ranking history

eslint-plugin-clsx npm ranking history: currently #675 (by weekly downloads).eslint-plugin-clsxnpm ranking · by weekly downloads · Last 90 days#675current rank#650#700#750#800#850#900Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 15, 2026 – Dec 6, 2026 · 21 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-clsx npm ranking history: currently #675 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 9, #6 (overall #166)
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 (135)
Recent weekly downloads observations for eslint-plugin-clsx
Date (UTC)Weekly downloadsChange vs. previous
80,622+491
80,131+10.8K
69,339+11K
58,300+7.8K
50,518+4K
46,516+2.8K
43,682+1.1K
42,563-105
42,668-3.3K
45,928-2.3K
48,251+5K
43,299+1.3K
42,041+35
42,006—

Similar npm ESLint plugins plugins

All 20 eslint-plugin-clsx 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-clsx. First seen Nov 15, 2026; last successful collection Dec 6, 2026. See the methodology.