# Stylelint

> A CSS linter that catches errors and enforces conventions in your stylesheets

Source: https://talira.ai/catalog/stylelint-3yp7yn7p
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / linting](https://talira.ai/categories/developer-tools/linting)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Stylelint](https://talira.ai/orgs/stylelint.md)

A linter for CSS with over 150 built-in rules for modern CSS syntax and features. It catches invalid or problematic code (malformed grid areas, duplicate selectors, misspelled properties) and enforces conventions (disallowed units, naming patterns for custom properties, limits on ID selectors, notations for color functions), fixes problems automatically where it can, and supports plugins for custom rules and shareable configs. Custom syntaxes extend it to styles embedded in HTML, Markdown and CSS-in-JS, and to CSS-like languages such as SCSS, [Sass](https://talira.ai/catalog/sass-q2bnr7qw.md), Less and SugarSS. It runs as a CLI, a Node.js API and a [PostCSS](https://talira.ai/catalog/postcss-hhcseckv.md) plugin, and its maintainers recommend running [Prettier](https://talira.ai/catalog/prettier-wqw3mymz.md) alongside it. MIT licensed.

## Links

- Website: https://stylelint.io/
- GitHub: https://github.com/stylelint/stylelint
- Docs: https://stylelint.io/user-guide/get-started/

## Problems it solves

- catch CSS mistakes like duplicate selectors and misspelled properties before they ship
- enforce one set of CSS conventions across a team
- lint the SCSS and CSS-in-JS styles in my project in CI

## Features

- over 150 built-in rules for modern CSS
- automatic fixes where possible
- plugins for custom rules
- shareable configs
- custom syntaxes for SCSS, Sass, Less, SugarSS and CSS-in-JS
- CLI, Node.js API and PostCSS plugin

## Trust

Overall: 0.72 out of 1.
Signals: maintenance 1.00, adoption 0.81, momentum 0.58, community 1.00, backing 0.30, extensibility 0.00.

- last commit today
- 174 commits in the last 90 days
- latest release 18.1.0 4 days ago
- 11.6k GitHub stars
- 488 contributors
- accepts sponsorship (Github, Open Collective)
- has a company behind it

## Alternatives

- [ESLint](https://talira.ai/catalog/eslint-0nyjt04g.md): Find and fix problems in your JavaScript code.
- [Biome](https://talira.ai/catalog/biome-0x0507a7.md): One fast toolchain that formats and lints JavaScript, TypeScript, JSON, CSS, HTML, GraphQL, YAML and Markdown.

## Sources

[^1]: https://github.com/stylelint/stylelint (checked 24 Nov 2026)
[^2]: https://github.com/stylelint/stylelint/blob/main/LICENSE (checked 24 Nov 2026)
