Skip to main content

Stylelint

NPM version Build Status NPM Downloads

A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.

Features#

It's mighty as it:

  • understands modern CSS syntax and features
  • has over 170 built-in rules to catch errors and enforce conventions
  • supports plugins so you can create your own rules
  • automatically fixes the majority of stylistic problems
  • is well tested with over 15000 unit tests
  • supports shareable configs that you can extend or create
  • is unopinionated so that you can customize it to your exact needs
  • has a growing community and is used by Google, GitHub and WordPress

And can be extended to:

  • parse CSS-like syntaxes like SCSS, Sass, Less and SugarSS
  • extract embedded styles from HTML, Markdown and CSS-in-JS object & template literals

Example output#

Example

Guides#

Contributors#

Stylelint is maintained by volunteers. Without the code contributions from all these fantastic people, Stylelint would not exist. Become a contributor.

Sponsors#

Thank you to all our sponsors! Become a sponsor.

Backers#

Thank you to all our backers! Become a backer.

Website hosting#

Deploys by Netlify

License#

The MIT License.