EVERYTHING XIAOMI
Get listed
Stylelint logo

Stylelint

Stylelint is a CSS linter for finding errors and enforcing coding conventions.

Place
#25 of 33
Chart
Linters
Score
6.0
Stylelint's website

What Stylelint is

Stylelint is a CSS linter for finding errors and enforcing coding conventions. It includes more than 100 rules for modern CSS and can fix problems automatically when possible. Developers can extend it with plugins for custom rules and use shareable configurations to reuse settings. Extensions also let it parse SCSS, Sass, Less, and SugarSS, and extract embedded styles from HTML, Markdown, and CSS-in-JS template literals. Stylelint can lint files from the command line, through a Node.js lint() API, or as a PostCSS plugin; its documentation recommends the CLI or API for better reporting. The command-line options include caching, custom syntax, formatters, and autofixing. Setup guidance covers npm, and compatibility is also documented for Bun, pnpm, and Yarn. The project links to the MIT License and is maintained by volunteers. For help, general questions are directed to Stack Overflow, while bugs and feature requests can be filed through GitHub issues. No paid plans or usage limits are stated.

Good

  • Includes over 100 built-in rules.
  • Automatically fixes issues when possible.
  • Supports custom rules and reusable configurations.
  • Offers CLI, Node.js API, and PostCSS integration.

Watch out

  • Maintained by volunteers.
  • Some syntax and embedded-style support requires extensions.
  • Documentation recommends CLI or Node.js API for better reporting.

Who it suits

Stylelint suits developers who want to catch CSS errors and apply shared conventions in command-line, Node.js, or PostCSS workflows. Extensions can support several stylesheet syntaxes and embedded styles.

Verdict

Stylelint provides multiple ways to lint CSS, with autofixing and extension points for broader syntax support. Its volunteer-maintained status and reliance on extensions for some formats are relevant considerations.

Plans and prices

From Stylelint's own pricing page, checked 3 Oct 2026.

All about pricing
PlanPriceWhat it gives you
StylelintFreeNo paid plans or usage limits stated on the pages reviewed

The facts

Each one read from Stylelint's own pages, with the date it was checked.

What it does

Autofix
Stylelint automatically fixes problems where possible.checked 3 Oct 2026
Built-in rules
It has over 100 built-in rules for modern CSS syntax and features.checked 3 Oct 2026
Command line
Stylelint can lint files from the command line and offers options including caching, custom syntax, formatters and autofixing.checked 3 Oct 2026
Extensions
It supports custom rules through plugins and reusable configurations through shareable configs.checked 3 Oct 2026
Language support
With extensions, it can parse SCSS, Sass, Less and SugarSS and extract embedded styles from HTML, Markdown and CSS-in-JS template literals.checked 3 Oct 2026
License
The project home page links to the MIT License.checked 3 Oct 2026
Maintainers
Stylelint is maintained by volunteers, and its governance page says members donate time and effort.checked 3 Oct 2026
Node.js API
The Stylelint module provides a Node.js lint() API that accepts code or file globs and returns lint results.checked 3 Oct 2026
Package managers
The getting started guide documents setup with npm and says Stylelint is also compatible with Bun, pnpm and Yarn.checked 3 Oct 2026
PostCSS integration
Stylelint can run as a PostCSS plugin, though its documentation recommends the CLI or Node.js API for better reporting.checked 3 Oct 2026
Purpose
Stylelint is a CSS linter that helps avoid errors and enforce conventions.checked 3 Oct 2026
Support
The support page directs general queries to Stack Overflow and asks users to file GitHub issues for bugs or feature requests.checked 3 Oct 2026
Testing
The home page says Stylelint has 15k unit tests; its vision page reports test coverage over 95%.checked 3 Oct 2026

Alternatives to Stylelint

All alternatives
  1. 1Cppcheck logo

    Cppcheck

    Free planOpen sourceLinuxmacOSSelf-hostedWindows
    7.4Free plan
  2. 2

    JSHint

    Free planOpen sourceWebAPIExtensionLinux
    7.4Free plan
  3. 3

    Flake8

    Free planOpen sourceAPILinuxmacOSSelf-hosted
    7.3Free plan
  4. 4

    PMD

    Free planLinuxmacOSSelf-hostedWindows
    6.8Free plan
  5. 5

    SwiftLint

    Free planLinuxmacOSWindows
    6.6Free plan
  6. 6Ruff logo

    Ruff

    Free planWebLinuxmacOSSelf-hosted
    6.5Free plan