eslint-plugin-css weekly downloads statistics
By ota-meshi (12 listings) · npm · ESLint plugins
An ESLint plugin that provides rules to verify CSS definition objects.
eslint-plugin-css has 69,768 recorded weekly downloads on npm, an increase of 53.5% over the past 30 days, ranking #706 of 3,247 tracked 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.
<img alt="vue" src="./images/vue.png" height="150px" style="height: 150px; display: inline-block;"><img alt="jsx" src="./images/jsx.png" height="150px" style="height: 150px; display: inline-block;">
: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
npm install --save-dev eslint eslint-plugin-css
<!--DOCS_IGNORE_END-->Requirements
- ESLint v7.0.0 and above
- Node.js v12.22.x, v14.17.x, v16.x and above
:book: Usage
<!--USAGE_SECTION_START-->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.
// eslint.config.js
import * as cssPlugin from "eslint-plugin-css"
export default [
cssPlugin.configs["flat/recommended"],
];
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.
// .eslintrc.js
module.exports = {
"plugins": [
"css"
],
"extends": [
// add more generic rulesets here, such as:
// 'eslint:recommended',
"plugin:css/recommended"
]
}
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.
// eslint.config.js
import * as cssPlugin from "eslint-plugin-css"
export default [
cssPlugin.configs["flat/standard"],
];
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.
// .eslintrc.js
module.exports = {
"plugins": [
"css"
],
"extends": [
"plugin:css/standard"
]
}
Advanced Configuration
Override/add specific rules configurations. See also: http://eslint.org/docs/user-guide/configuring.
// eslint.config.js
import * as cssPlugin from "eslint-plugin-css"
export default [
{
plugins: { css: cssPlugin },
rules: {
// Override/add rules settings here, such as:
"css/rule-name": "error"
}
}
];
// .eslintrc.js
module.exports = {
"plugins": [
"css"
],
"rules": {
// Override/add rules settings here, such as:
"css/rule-name": "error"
}
}
Using "plugin:css/all"…
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- css
- vue
- react
- css-in-js
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm ESLint plugins plugins
All 20 eslint-plugin-css alternativesData 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 Dec 6, 2026. See the methodology.