eslint/css is a JavaScript project with 313 stars. CSS language plugin for ESLint
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
You can individually configure, disable, and enable rules in CSS using comments, such as:
/* 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:
By default, the CSS parser runs in strict mode, which reports all parsing errors. If you'd like to allow recoverable parsing errors (those that the browser automatically fixes on its own), you can set the tolerant option to true:
Setting tolerant to true is necessary if you are using custom syntax, such as PostCSS plugins, that aren't part of the standard CSS syntax.
Configuring Custom Syntax
The CSS lexer comes prebuilt with a set of known syntax for CSS that is used in rules like no-invalid-properties to validate CSS code. While this works for most cases, there may be cases when you want to define your own extensions to CSS, and this can be done using the customSyntax language option.
The customSyntax option accepts either an object or a function:
Object-based syntax: An object that uses the CSSTree format for defining custom syntax, which allows you to specify at-rules, properties, and some types. For example, suppose you'd like to define a custom at-rule that looks like this:
Function-based syntax: A function that receives the default CSS syntax data and returns a custom syntax configuration. This is useful when you want to extend the base syntax rather than replace it. For example:
Tailwind specifies some extensions to CSS that will otherwise be flagged as invalid by the rules in this plugin. To properly parse Tailwind-specific syntax, install the tailwind-csstree package:
npm i tailwind-csstree --save-dev
Then include it in your configuration using languageOptions.customSyntax:
First, ensure you have the ESLint plugin installed.
Then, edit eslint.validate in your settings.json file to include css:
{
"eslint.validate": ["css"]
}
JetBrains WebStorm
For any JetBrains WebStorm, configure the ESLint scope to include css, such as:
**/*.{js,ts,jsx,tsx,cjs,cts,mjs,mts,html,vue,css}
License
Apache 2.0
Sponsors
The following companies, organizations, and individuals support ESLint's ongoing maintenance and development. Become a Sponsor
to get your logo on our READMEs and website.
Gold Sponsors
Silver Sponsors
Bronze Sponsors
Technology Sponsors
Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work.
The most recent commit recorded on eslint/css was 12 days ago, based on the GitHub push timestamp. The repository has 43 forks — one of the better signals of community interest.
How many stars does eslint/css have?
eslint/css has 313 GitHub stars — refresh the page for the live number, or check github.com/eslint/css. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is eslint/css open source?
Yes — eslint/css ships under the Apache-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/eslint/css.
What is eslint/css?
eslint/css (eslint/css) is a JavaScript project on GitHub. From the project's own README: CSS language plugin for ESLint
What language is eslint/css written in?
eslint/css is written primarily in JavaScript. GitHub's language field is based on the largest share of bytes in the default branch.
What license does eslint/css use?
eslint/css is released under the Apache-2.0 license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about eslint/css?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/eslint/css is the definitive source.
Read full README in the tab above.
Want a second opinion on css?
Ask an AI that can read this page — one click and you get its take on css.