# stylelint/stylelint

A mighty CSS linter that helps you avoid errors and enforce conventions.

Repository: https://github.com/stylelint/stylelint
Canonical: https://ross.abutalabs.com/products/stylelint
Homepage: https://stylelint.io
Language: JavaScript
License: MIT
License Family: permissive
Topics: linter, css, postcss, lint, enforce-conventions
Last push: 2026-08-26T09:18:02+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 93, longevity 100
- inputs: {"age_days": 4290, "days_push": 7, "days_rel": 45, "gap_med": 11.5, "n_releases_24m": 43}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 11513, forks 1017 (observed 2026-08-28T04:10:48.417765+00:00)

## What it is
Stylelint is a CSS linter with over 100 built-in rules that helps developers avoid errors and enforce style conventions. It supports plugins, shareable configs, automatic fixes, and can lint CSS-like languages such as SCSS, Sass, Less, and CSS-in-JS via PostCSS-compatible syntaxes.

## Use cases
- lint css files for errors and style violations
- enforce css coding conventions across a team
- automatically fix css linting problems
- lint scss and sass stylesheets
- lint styles embedded in html markdown or css-in-js
- catch duplicate selectors and misspelled css properties
- set up shareable css linting rules for a project

## When to choose
- you need to catch errors and enforce conventions in CSS or CSS-like languages
- you want a highly extensible linter with plugins, custom rules, and shareable configs
- you need autofixing and integration with build tools or editors via CLI or Node.js API

## When to avoid
- you only want code formatting rather than linting - use a pretty printer like Prettier instead
- you need to lint languages other than CSS and its variants
- you want a zero-configuration linter without writing any config

## Facets
- artifact type: library
- maturity: stable
- function: linter, formatter, cli, developer-tools
- domain: web-development, frontend, developer-tools
- platform: cli, cross-platform
- tags: css, postcss, scss, less, css-in-js, code-quality, static-analysis, autofix, shareable-configs, nodejs

## Member repositories
- stylelint/stylelint (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:48.417765+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:15:32.093238+00:00, confidence not recorded.
  - readme: https://github.com/stylelint/stylelint (fetched 2026-08-28T04:10:48.417765+00:00, sha 50cb9a53c2ba)
  - homepage: https://stylelint.io (fetched 2026-08-29T08:14:33.181854+00:00, sha 067397f015f9)
  - site_page: https://stylelint.io/about/vision (fetched 2026-08-29T08:14:33.184604+00:00, sha a59b6f6f34b4)
  - site_page: https://stylelint.io/maintainer-guide/releases (fetched 2026-08-29T08:14:33.192573+00:00, sha f586b8031803)
  - site_page: https://stylelint.io/about/governance (fetched 2026-08-29T08:14:33.194345+00:00, sha a71c379aa41b)
  - site_page: https://stylelint.io/about/semantic-versioning (fetched 2026-08-29T08:14:33.195844+00:00, sha a933c1673d38)
  - site_page: https://stylelint.io/CHANGELOG (fetched 2026-08-29T08:14:33.186658+00:00, sha 15e69e6fbe69)
- Data as of 2026-08-30T08:39:29.467469+00:00.
