@eslint/css weekly downloads statistics
By eslint (7 listings) · npm · ESLint plugins
CSS linting plugin for ESLint
@eslint/css has 903,690 recorded weekly downloads on npm, an increase of 22.7% over the past 30 days, ranking #307 of 3,247 tracked listings.
About @eslint/css
ESLint CSS Language Plugin
Overview
This package contains a plugin that allows you to natively lint CSS files using ESLint.
Important: This plugin requires ESLint v9.15.0 or higher and you must be using the new configuration system.
Prerequisites
In order to use the ESLint CSS plugin, you must have the following installed:
Installation
You can install ESLint using npm or other package managers:
npm install eslint -D
# or
yarn add eslint -D
# or
pnpm install eslint -D
# or
bun add eslint -D
Then, for Node.js and compatible runtimes:
npm install @eslint/css -D
# or
yarn add @eslint/css -D
# or
pnpm install @eslint/css -D
# or
bun add @eslint/css -D
For Deno (experimental):
deno add jsr:@eslint/css
Configurations
| Configuration Name | Description |
|---|---|
recommended | Enables all recommended rules. |
In your eslint.config.js file, import @eslint/css and include the recommended config:
// eslint.config.js
import { defineConfig } from "eslint/config";
import css from "@eslint/css";
export default defineConfig([
// lint CSS files
{
files: ["**/*.css"],
language: "css/css",
plugins: { css },
extends: ["css/recommended"],
},
// your other configs here
]);
Rules
<!-- NOTE: The following table is autogenerated. Do not manually edit. --> <!-- Rule Table Start -->| Rule Name | Description | Recommended |
|---|---|---|
font-family-fallbacks | Enforce use of fallback fonts and a generic font last | yes |
no-duplicate-imports | Disallow duplicate @import rules | yes |
no-duplicate-keyframe-selectors | Disallow duplicate selectors within keyframe blocks | yes |
no-empty-blocks | Disallow empty blocks | yes |
no-important | Disallow !important flags | yes |
no-invalid-at-rule-placement | Disallow invalid placement of at-rules | yes |
no-invalid-at-rules | Disallow invalid at-rules | yes |
no-invalid-named-grid-areas | Disallow invalid named grid areas | yes |
no-invalid-properties | Disallow invalid properties | yes |
no-unmatchable-selectors | Disallow unmatchable selectors | yes |
prefer-logical-properties | Enforce the use of logical properties | no |
relative-font-units | Enforce the use of relative font units | no |
selector-complexity | Disallow and limit CSS selectors | no |
use-baseline | Enforce the use of baseline features | yes |
use-layers | Require use of layers | no |
Note: This plugin does not provide formatting rules. We recommend using a source code formatter such as Prettier for that purpose.
In order to individually configure a rule in your eslint.config.js file, import @eslint/css and configure each rule with a prefix:
// eslint.config.js
import { defineConfig } from "eslint/config";
import css from "@eslint/css";
export default defineConfig([
{
files: ["**/*.css"],
plugins: {
css,
},
language: "css/css",
rules: {
"css/no-empty-blocks": "error",
},
},
]);
You can individually configure, disable, and enable rules in CSS using comments, such as:
<!-- prettier-ignore -->/* eslint css/no-empty-blocks: error */
/* eslint-disable css/no-empty-blocks -- this one is ok */
a {
}
/* eslint-enable css/no-empty-blocks */
b { /* eslint-disable-line css/no-empty-blocks */
}
/* eslint-disable-next-line css/no-empty-blocks */
em {
}
Languages
| Language Name | Description |
|---|---|
css | Parse CSS stylesheets. |
In order to individually configure a language in your eslint.config.js file, import @eslint/css and configure a language:
// eslint.config.js
import { defineConfig } from "eslint/config";
import css from "@eslint/css";
export default defineConfig([
{
files: ["**/*.css"],
plugins: {
css,
},
language: "css/css",
rules: {
"css/no-empty-blocks": "error",
},
},
]);
Tolerant Mode…
Description from the npm listing.
- eslint
- eslint-plugin
- eslintplugin
- css
- linting
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 (591)Similar npm ESLint plugins plugins
All 20 @eslint/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/css. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.