stylelint

A mighty, modern CSS linter

Github stars Tracking Chart

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 the latest CSS syntax including custom properties and level 4 selectors
  • extracts embedded styles from HTML, markdown and CSS-in-JS object & template literals
  • parses CSS-like syntaxes like SCSS, Sass, Less and SugarSS
  • has over 170 built-in rules to catch errors, apply limits and enforce stylistic conventions
  • supports plugins so you can create your own rules or make use of plugins written by the community
  • automatically fixes the majority of stylistic violations (experimental feature)
  • 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 Facebook, GitHub and WordPress

Example output

Example

Getting started

You'll find steps to get started in our User guide.

Contributors

Without the contributions from all these fantastic people, stylelint would not exist. Become a contributor.

Backers

Thank you to all our backers! Become a backer.

Sponsors

Support this project to show your logo here with a link to your website. Become a sponsor.

License

The MIT License.

Overview

Name With Ownerstylelint/stylelint
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 7)
Platform
License:MIT License
Release Count230
Last Release Name16.5.0 (Posted on 2024-05-02 15:53:07)
First Release Namev0.1.0 (Posted on )
Created At2014-12-04 16:25:23
Pushed At2024-05-13 06:11:27
Last Commit At
Stargazers Count10.8k
Watchers Count108
Fork Count0.9k
Commits Count6.8k
Has Issues Enabled
Issues Count3259
Issue Open Count119
Pull Requests Count3745
Pull Requests Open Count2
Pull Requests Close Count626
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top