Skip to content
PluginStats

eslint-plugin-css weekly downloads statistics

By ota-meshi (10 listings) · npm · ESLint plugins

An ESLint plugin that provides rules to verify CSS definition objects.

View on npm Fresh · Oct 17, 2026

eslint-plugin-css has 14,140 recorded weekly downloads on npm, a decrease of 56.3% over the past 30 days.

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

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

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

Weekly downloads
14,140
Official API · Oct 17, 2026
7-day growth
-55.4%
-17.6K weekly downloads
30-day growth
-56.3%
-18.2K weekly downloads
90-day growth
-49.9%
-14.1K weekly downloads
Rank
#840
Among tracked npm listings

About eslint-plugin-css

Introduction

eslint-plugin-css is an ESLint plugin that provides rules to verify CSS definition objects.

::: WORKING IN PROGRESS :::

:name_badge: Features

This ESLint plugin provides linting rules to verify CSS definition objects.

• Find the wrong usage of CSS definition objects, and their hints. • Support for Vue and JSX (React). • Partial support for [styled-components] style objects.

You can check on the Online DEMO.

:question: Why is it ESLint plugin?

[Stylelint] partially supports CSS in JS, but some issues haven't been resolved for a long time. Also, CSS definitions using template literals are similar to CSS syntax, but CSS definitions using JavaScript objects are not. ESLint may work better for linting JavaScript objects.

:book: Documentation

See documents.

:cd: Installation

Requirements

- ESLint v7.0.0 and above - Node.js v12.22.x, v14.17.x, v16.x and above

:book: Usage

Add css to the plugins section of your .eslintrc configuration file (you can omit the eslint-plugin- prefix) and either use one of the two configurations available (recommended or all) or configure the rules you want:

The recommended configuration (eslint.config.js)

The plugin.configs["flat/recommended"] config enables a subset of the rules that should be most useful to most users. *See lib/configs/flat/recommended.ts for more details.*

The recommended configuration (.eslintrc.*)

The plugin:css/recommended config enables a subset of the rules that should be most useful to most users. *See lib/configs/recommended.ts for more details.*

The standard configuration (eslint.config.js)

The plugin.configs["flat/standard"] config enables a subset of the rules and superset of plugin.configs["flat/recommended"] config that apply a subjective style. *See lib/configs/flat/standard.ts for more details.*

The standard configuration (.eslintrc.*)

The plugin:css/standard config enables a subset of the rules and superset of plugin:css/recommended config that apply a subjective style. *See lib/configs/standard.ts for more details.*

Advanced Configuration

Override/add specific rules configurations. *See also: http://eslint.org/docs/user-guide/configuring*.

Using "plugin:css/all"

The plugin.configs["flat/all"] / plugin:css/all config enables all rules. It's meant for testing, not for production use because it changes with every minor and major version of the plugin. Use it at your own risk.

How does ESLint detect CSS objects?

All CSS-related rules are applied to code that passes any of the following checks:

• style={ {} } JSX attribute expression • v-bind:style="{}" Vue directive • CSS definition function call for styled-components

e.g.

• According to settings.css.target settings.

However, if you want to take advantage of the rules in any of your custom objects that are CSS objects, you might need to use the special comment // @css that marks an object in the next line as a CSS object in any file, e.g.:

:white_check_mark: Rules

The --fix option on the command line automatically fixes problems reported by rules which have a wrench :wrench: below. The rules with the following star :star: are included in the plugin:css/recommended config and the plugin:css/standard config. The rules with the following lipstick :lipstick: are included in the plugin:css/standard config.

Possible Errors

| Rule ID | Description | |

| css/no-dupe-properties | disallow duplicate properties | :star: | | css/no-invalid-color-hex | disallow invalid hex colors | :star: | | css/no-shorthand-property-overrides | disallow shorthand properties that override related longhand properties | :star: | | css/no-unknown-property | disallow unknown properties | :star: | | css/no-unknown-unit | disallow unknown units | :star: |

Best Practices

| Rule ID | Description | |

| css/named-color | enforce named colors | :wrench: | | css/no-length-zero-unit | disallow units for zero lengths | :lipstick::wrench: | | css/no-useless-color-alpha | disallow unnecessary alpha-channel transparency value | :star::wrench: | | css/prefer-reduce-shorthand-property-box-values | require reduction in box values of shorthand property | :lipstick::wrench: |

Stylistic Issues

| Rule ID | Description | |

| css/color-hex-style | enforce hex color style | :lipstick::wrench: | | css/no-number-trailing-zeros | disallow trailing zeros in numbers. | :lipstick::wrench: | | css/number-leading-zero | require or disallow a leading zero for fractional numbers less than 1 | :lipstick::wrench: | | css/property-casing | enforce specific casing for CSS properties | :lipstick::wrench: |

:gear: Settings

See Settings.

:beers: Contributing

Welcome contributing!

Please use GitHub's Issues/PRs.

See CONTRIBUTING.md.

Development Tools

• npm test runs tests and measures coverage. • npm run update runs in order to update readme and configurations. • npm run new [new rule name] runs to create the files needed for the new rule. • npm run docs:watch starts the website locally.

:lock: License

See the LICENSE file for license rights and limitations (MIT).

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin
  • css
  • vue
  • react
  • css-in-js

Where eslint-plugin-css 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 42, #20 (overall #840)
All npm: every listing in weekly downloads order
PNG SVG
ESLint plugins252 listings · 13 pages · page 11, #17 (overall #217)
ESLint plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

eslint-plugin-css weekly downloads on npm, last 90 days: 14,140 weekly downloads as of Oct 17, 2026, -49.9% over 90 days.eslint-plugin-cssWeekly downloads on npm · Last 90 days14,140downloads / week-49.9% over 90 days010K20K30K40K50KJul 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-css weekly downloads on npm, last 90 days: 14,140 weekly downloads as of Oct 17, 2026, -49.9% over 90 days.
PNG SVG

7/30/90-day growth

eslint-plugin-css weekly downloads growth on npm: -55.4% over 7 days, -56.3% over 30 days, -49.9% over 90 days.eslint-plugin-cssWeekly downloads growth on npm14,140downloads / week now7-day growth-17,579 weekly downloads-55.4%30-day growth-18,180 weekly downloads-56.3%90-day growth-14,073 weekly downloads-49.9%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
eslint-plugin-css weekly downloads growth on npm: -55.4% over 7 days, -56.3% over 30 days, -49.9% over 90 days.
PNG SVG

Ranking history

eslint-plugin-css npm ranking history: currently #840 (by weekly downloads).eslint-plugin-cssnpm ranking · by weekly downloads · Last 90 days#840current rank#838#839#840#841#842Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
eslint-plugin-css npm ranking history: currently #840 (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-css
Date (UTC)Weekly downloadsChange vs. previous
14,140-2.6K
16,712+1.5K
15,223-7.3K
22,497-7.7K
30,1980
30,198-671
30,869-850
31,719-309
32,028-2.1K
34,081+145
33,936-211
34,147-7K
41,109+843
40,266—

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