Stylelint

What Stylelint is
Stylelint is a free CSS linter for finding errors and enforcing coding conventions. It includes more than 100 rules for modern CSS and can automatically fix problems when possible. Developers can add custom rules through plugins and reuse configurations with shareable configs. Extensions enable parsing of SCSS, Sass, Less and SugarSS, and extraction of 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. Command-line options include caching, custom syntax, formatters and autofixing. Setup guidance covers npm, with compatibility also documented for Bun, pnpm and Yarn. The project links to the MIT License and is maintained by volunteers. 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.
Who it suits
Stylelint suits developers who want to catch CSS errors and enforce shared conventions in their code. It also fits projects using preprocessors or embedded styles, through its extension support.
What it does well
- More than 100 built-in rules for modern CSS
- Can automatically fix problems when possible
- Supports custom rules and reusable configurations
- Offers CLI, Node.js API and PostCSS integration
- Free, with no paid plans or usage limits stated
What to know first
- Custom syntax support for other languages requires extensions
- Maintained by volunteers
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| Stylelint | No paid plans or usage limits stated on the pages reviewed | Free |
As stylelint.io lists them, read 3 Oct 2026. The maker's own page has the final word.
Getting started
- Open https://stylelint.io/ and follow the getting started guide.
- Set up Stylelint with npm, or use Bun, pnpm or Yarn.
- Run the command-line tool on stylesheet files, or use the Node.js lint() API with code or file globs.
- Add plugins or shareable configurations if you need custom rules or reusable settings.
Verdict
Stylelint provides flexible CSS linting through its CLI, Node.js API and PostCSS integration. Its free offering includes extensive rules and extension options, with general support directed to Stack Overflow and issue reports to GitHub.
Questions
Is Stylelint free?
Yes. The listed Stylelint plan costs nothing, and the pricing model is free.
Does Stylelint offer a free trial?
No. The listed free trial is no; Stylelint has a free plan.
Which platforms does Stylelint support?
The listed platforms are API, Linux, macOS and Windows.
Can Stylelint check syntaxes beyond CSS?
With extensions, it can parse SCSS, Sass, Less and SugarSS. It can also extract embedded styles from HTML, Markdown and CSS-in-JS template literals.
Is Stylelint open source?
The project home page links to the MIT License.
How can developers get help?
The support page directs general questions to Stack Overflow and bug reports or feature requests to GitHub issues.
Facts from Stylelint's own pages
- Autofix
- Stylelint automatically fixes problems where possible. · stylelint.io, 3 Oct 2026
- Built-in rules
- It has over 100 built-in rules for modern CSS syntax and features. · stylelint.io, 3 Oct 2026
- Command line
- Stylelint can lint files from the command line and offers options including caching, custom syntax, formatters and autofixing. · stylelint.io, 3 Oct 2026
- Extensions
- It supports custom rules through plugins and reusable configurations through shareable configs. · stylelint.io, 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. · stylelint.io, 3 Oct 2026
- License
- The project home page links to the MIT License. · stylelint.io, 3 Oct 2026
- Maintainers
- Stylelint is maintained by volunteers, and its governance page says members donate time and effort. · stylelint.io, 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. · stylelint.io, 3 Oct 2026
- Package managers
- The getting started guide documents setup with npm and says Stylelint is also compatible with Bun, pnpm and Yarn. · stylelint.io, 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. · stylelint.io, 3 Oct 2026
- Purpose
- Stylelint is a CSS linter that helps avoid errors and enforce conventions. · stylelint.io, 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. · stylelint.io, 3 Oct 2026
- Testing
- The home page says Stylelint has 15k unit tests; its vision page reports test coverage over 95%. · stylelint.io, 3 Oct 2026
Where Stylelint stands on Freedom251
- Linters#24 of 33
