Elestia Open Source Ratings
8.2

Stylelint

A strong pick. 4th of 13 linters and formatters.

Stylelint is the standard dedicated CSS linter. It has 100+ built-in rules, a large plugin ecosystem, and SCSS, Less and CSS-in-JS support through custom syntaxes. For a new project that writes real CSS it is still the one to pick, though Biome and @eslint/css offer smaller rule sets for teams that want a single tool.

Best for: Web projects that write plain CSS, SCSS or CSS modules and want thorough checks for errors and conventions.

WebsiteGitHubnpm

Scores

Overall8.2

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 8.0, likely 7.0 to 8.5

It is clearly the best choice for linting CSS: the deepest rules, strong maintenance, a clean security record and broad production use. It covers only CSS and needs a separate formatter. Its growth trails the ecosystem as Biome and ESLint add CSS support, which keeps it below the category defaults.

GPT-6.2 Sol: 8.3, likely 7.3 to 9.3

Stylelint is a strong pick for new projects that need detailed CSS or SCSS linting, backed by active maintenance and established use in design systems. Biome can cover basic CSS checks and formatting in a single tool, which makes it attractive when teams need fewer rules. Stylelint’s slower relative download growth and recent major-version upgrade friction temper the recommendation.

Needed by many5.3

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

It covers only CSS, a narrower slice than the JS linters in this category. Still, a large share of web projects write CSS or SCSS, and about a third of State of CSS respondents use it. Utility-first and CSS-in-JS styling shrink the need somewhat.

GPT-6.2 Sol: 5.6, likely 4.4 to 6.7

CSS linting serves teams that write stylesheets for web apps, sites, and design systems. Stylelint works across frameworks, and shared configs extend it to SCSS and styles embedded in components. Demand varies with how much CSS teams write, and CSS-focused surveys give an incomplete view of all JavaScript and TypeScript projects.

Helps a lot8.4

How well does it do the job for those who need it?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

It has the deepest CSS rule set of any tool, with value validation against CSSTree, rich configuration, plugins and shared configs. v18 adds rules such as value-no-invalid, and v18.1 makes autofix multi-pass. It is not a formatter and is slower than Rust tools, which keeps it below 9.

GPT-6.2 Sol: 8.8, likely 7.6 to 9.6

Version 18.1.0 pairs detailed CSS checks with multi-pass autofix, and version 18 validates values that flow through custom properties. Documented rule examples and typed configs give developers and coding agents a clear starting point. An independent Biome comparison found gaps in handling SCSS mixins and loops, while recent comparative speed and agent-reliability data are limited.

Holds up over time8.1

Will it still be a good choice in two years?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

Activity is steady: 616 commits and 26 releases in the last year, only 2 open PRs and 102 open issues against 3,635 closed. Several long-time maintainers share the work, and it has community funding. The yearly breaking majors and slow shared configs are a small cost. Biome and @eslint/css are growing alternatives, but neither replaces it yet.

  • github commitsLastYear / releasesLastYear: 616 commits and 26 releases in the last year.
  • github openPullRequests: 2 open PRs against 5,088 merged.
  • issoh.co.jp/md/tech/10686: SCSS and other shared configs were not yet compatible with v18 shortly after release.
  • eslint.org/blog/2025/02/eslint-css-support: ESLint now offers official CSS linting, a possible long-term rival.

GPT-6.2 Sol: 8.1, likely 7.0 to 9.1

Stylelint recorded 616 commits and 26 releases in the past year, and its funding ledger shows payments for maintenance. A small open pull request queue and recent bug fixes point to active upkeep, though typical issue response times are unclear. The U.S. Tax Court tooling documented a v18 upgrade delay while its SCSS config caught up. A compatible config shipped nine days after v18.

Used widely6.8

How many use it, and is that growing?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

It has 56M downloads in 4 weeks and over 200k dependent repos plus 21k dependent packages, which points to hundreds of thousands of projects. Downloads grew 2.2x over the year, below the 4.1 median, so it is losing ground relative to the ecosystem. Some downloads come through shared configs and tool presets.

  • npm downloadsLast4Weeks: 56.3M, up from 25.7M a year ago (ratio 2.19, under the 4.1 median).
  • dependents: 200,392 repos and 21,173 packages, far more than Biome's 587.
  • bluesky posts: 18 posts, mostly from maintainers; less buzz than Biome or Oxc.

GPT-6.2 Sol: 6.6, likely 5.6 to 7.7

About 200,000 indexed dependent repositories show substantial adoption, well below ESLint and Prettier in the same index. Four-week downloads rose 2.19× against a 4.1× catalog median, pointing to falling relative install share. The 2026 CSS survey still shows regular use, but partial repository coverage and repeated CI installs leave the rate of new adoption uncertain.

  • dependents repos, packages: 200,392 indexed repositories and 21,173 npm packages.
  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 56.3 million versus 25.7 million downloads, or 2.19× against 4.1×.
  • peers ESLint, Prettier, Biome: ESLint and Prettier have much larger indexed bases, and Biome downloads grew 7.7×.
  • 2026.stateofcss.com/en-US/other-tools: 1,147 of 3,695 respondents to the utilities question reported regular use.
Vouched for8.1

Who stands behind it being good?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

Large projects such as WordPress, Drupal, GitLab and Chromium DevTools use it in their workflows, and it ranks third among tools in State of CSS. Independent reviews still name it the most complete CSS linter. Most write-ups are blog posts, not formal benchmarks.

GPT-6.2 Sol: 8.1, likely 7.0 to 9.0

GitHub’s Primer design system uses Stylelint for SCSS, and WordPress ships it in its standard developer scripts. Wikimedia maintains its own shared config, and an independent comparison identifies practical reasons to keep Stylelint for SCSS. These sources establish trust in established workflows, with less evidence on v18.1.0 specifically.

Safe7.9

How safe is it to depend on?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

It has no advisories ever, an MIT licence and a 7.6 Scorecard with code review and SAST at 10. The weak checks are CII badge, fuzzing, security policy and branch protection. It pulls in 19 direct dependencies, a moderate attack surface for a dev-only tool.

  • advisories total: 0 advisories.
  • scorecard score: 7.6; Security-Policy 4, Branch-Protection 4, Fuzzing 0.
  • npm dependencies: 19 direct dependencies.
  • npm license: MIT.

GPT-6.2 Sol: 7.8, likely 6.6 to 8.8

The package uses the permissive MIT license, and OSV lists zero advisories. Stylelint documents npm trusted publishing and requires approval for the release job. Its 19 direct dependencies and low Scorecard marks for branch protection and fuzzing leave room for improvement. The exact number of people who can approve publishing is unclear.

  • npm license, dependencies; advisories total: MIT license, 19 direct dependencies, and zero OSV advisories.
  • scorecard score, checks: 7.6 overall, with code review at 10, branch protection at 4, and fuzzing at 0.
  • github.com/stylelint/stylelint/security/policy: Documents trusted publishing, immutable GitHub releases, and private vulnerability reporting.
  • stylelint.io/maintainer-guide/releases: Documents ecosystem checks and an approval step for npm publication.

Good

  • It has the largest set of CSS rules, including invalid-value, unknown-property and specificity checks, plus a big plugin ecosystem.
  • It is very actively maintained: 26 releases and over 600 commits in the last year, with several long-time maintainers.
  • It has a clean security record: no known advisories, an MIT licence and a 7.6 OpenSSF Scorecard.
  • Autofix now makes multiple passes, so fixes no longer introduce new problems.

Bad

  • Major versions with breaking changes arrive about once a year, and shared configs such as the SCSS ones lagged behind v18 at release.
  • It does not format code: its stylistic rules were dropped in v16, so you still need Prettier or another formatter.
  • It runs on JavaScript and is slower than Rust tools such as Biome, which lint CSS in the same pass as JS.
  • It does little for projects that style mostly with Tailwind utilities or JS-based styling.

The numbers

npm downloads, 4 weeks
56M ×2.2 in a year
GitHub stars
12k
Commits, 12 months
616
npm version
18.1.0 Nov 2026
Versions, 12 months
25
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
7.6 out of 10, Oct 2026
Licence
MIT

Read on 21 November 2026 from GitHub (stylelint/stylelint), npm (stylelint), OSV and the OpenSSF Scorecard.

Linters and formatters

  1. 8.4Prettier
  2. 8.3ESLint
  3. 8.3Oxlint
  4. 8.2Stylelint
  5. 8.2typescript-eslint
  6. 8.0Biome
  7. 7.6Knip
  8. 7.5Oxfmt
  9. 6.5dprint
  10. 6.4bun fmt
  11. 5.7XO
  12. 5.4bun lint
  13. 3.2JavaScript Standard Style
Compare all 13 on six scores