stylelint
A mighty, modern CSS linter.
Last updated 5 years ago by hudochenkov .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install stylelint 
SYNC missed versions from official npm registry.

Stylelint

npm version Build Status npm downloads

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

Features

It's mighty as it:

  • has over 100 built-in rules for modern CSS syntax and features
  • supports plugins so you can create your own custom rules
  • automatically fixes problems where possible
  • supports shareable configs that you can create or extend
  • can be customized to your exact needs
  • has 15k unit tests making it robust
  • is trusted by companies worldwide like Google and GitHub

And it can be extended to:

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

How it'll help you

It'll help you avoid errors, for example:

  • invalid things, e.g. malformed grid areas
  • valid things that are problematic, e.g. duplicate selectors
  • unknown things, e.g. misspelled property names

And enforce conventions, for example:

  • disallow things, e.g. specific units
  • enforce naming patterns, e.g. for custom properties
  • set limits, e.g. the number of ID selectors
  • specify notations, e.g. for modern color functions

We recommend using a pretty printer like Prettier alongside Stylelint. Linters and pretty printers are complementary tools that work together to help you write consistent and error-free code.

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

<object data="https://opencollective.com/stylelint/sponsors.svg?width=420&button=false" type="image/svg+xml"> </object>

Thank you to all our sponsors! Become a sponsor.

Backers

<object data="https://opencollective.com/stylelint/backers.svg?width=420&avatarHeight=48&button=false" type="image/svg+xml"> </object>

Thank you to all our backers! Become a backer.

Website hosting

Deploys by Netlify

License

The MIT License.

Current Tags

  • 16.9.0                                ...           latest (4 months ago)
  • 16.0.0-3                                ...           next (a year ago)

238 Versions

  • 16.9.0                                ...           4 months ago
  • 16.8.2                                ...           4 months ago
  • 16.8.1                                ...           5 months ago
  • 16.8.0                                ...           5 months ago
  • 16.7.0                                ...           5 months ago
  • 16.6.1                                ...           7 months ago
  • 16.6.0                                ...           7 months ago
  • 16.5.0                                ...           8 months ago
  • 16.4.0                                ...           8 months ago
  • 16.3.1                                ...           9 months ago
  • 16.3.0                                ...           9 months ago
  • 16.2.1                                ...           a year ago
  • 16.2.0                                ...           a year ago
  • 16.1.0                                ...           a year ago
  • 16.0.2                                ...           a year ago
  • 16.0.1                                ...           a year ago
  • 16.0.0                                ...           a year ago
  • 16.0.0-3                                ...           a year ago
  • 16.0.0-2                                ...           a year ago
  • 16.0.0-1                                ...           a year ago
  • 16.0.0-0                                ...           a year ago
  • 15.11.0                                ...           a year ago
  • 15.10.3                                ...           a year ago
  • 15.10.2                                ...           a year ago
  • 15.10.1                                ...           a year ago
  • 15.10.0                                ...           a year ago
  • 15.9.0                                ...           2 years ago
  • 15.8.0                                ...           2 years ago
  • 15.7.0                                ...           2 years ago
  • 15.6.3                                ...           2 years ago
  • 15.6.2                                ...           2 years ago
  • 15.6.1                                ...           2 years ago
  • 15.6.0                                ...           2 years ago
  • 15.5.0                                ...           2 years ago
  • 15.4.0                                ...           2 years ago
  • 15.3.0                                ...           2 years ago
  • 15.2.0                                ...           2 years ago
  • 15.1.0                                ...           2 years ago
  • 15.0.0                                ...           2 years ago
  • 14.16.1                                ...           2 years ago
  • 14.16.0                                ...           2 years ago
  • 14.15.0                                ...           2 years ago
  • 14.14.1                                ...           2 years ago
  • 14.14.0                                ...           2 years ago
  • 14.13.0                                ...           2 years ago
  • 14.12.1                                ...           2 years ago
  • 14.12.0                                ...           2 years ago
  • 14.11.0                                ...           2 years ago
  • 14.10.0                                ...           2 years ago
  • 14.9.1                                ...           3 years ago
  • 14.9.0                                ...           3 years ago
  • 14.8.5                                ...           3 years ago
  • 14.8.4                                ...           3 years ago
  • 14.8.3                                ...           3 years ago
  • 14.8.2                                ...           3 years ago
  • 14.8.1                                ...           3 years ago
  • 14.8.0                                ...           3 years ago
  • 14.7.1                                ...           3 years ago
  • 14.7.0                                ...           3 years ago
  • 14.6.1                                ...           3 years ago
  • 14.6.0                                ...           3 years ago
  • 14.5.3                                ...           3 years ago
  • 14.5.2                                ...           3 years ago
  • 14.5.1                                ...           3 years ago
  • 14.5.0                                ...           3 years ago
  • 14.4.0                                ...           3 years ago
  • 14.3.0                                ...           3 years ago
  • 14.2.0                                ...           3 years ago
  • 14.1.0                                ...           3 years ago
  • 14.0.1                                ...           3 years ago
  • 14.0.0                                ...           3 years ago
  • 14.0.0-0                                ...           3 years ago
  • 13.13.1                                ...           4 years ago
  • 13.13.0                                ...           4 years ago
  • 13.12.0                                ...           4 years ago
  • 13.11.0                                ...           4 years ago
  • 13.10.0                                ...           4 years ago
  • 13.9.0                                ...           4 years ago
  • 13.8.0                                ...           4 years ago
  • 13.7.2                                ...           4 years ago
  • 13.7.1                                ...           4 years ago
  • 13.7.0                                ...           4 years ago
  • 13.6.1                                ...           5 years ago
  • 13.6.0                                ...           5 years ago
  • 13.5.0                                ...           5 years ago
  • 13.4.1                                ...           5 years ago
  • 13.4.0                                ...           5 years ago
  • 13.3.3                                ...           5 years ago
  • 13.3.2                                ...           5 years ago
  • 13.3.1                                ...           5 years ago
  • 13.3.0                                ...           5 years ago
  • 13.2.1                                ...           5 years ago
  • 13.2.0                                ...           5 years ago
  • 13.1.0                                ...           5 years ago
  • 13.0.0                                ...           5 years ago
  • 12.0.1                                ...           5 years ago
  • 12.0.0                                ...           5 years ago
  • 11.1.1                                ...           5 years ago
  • 11.1.0                                ...           5 years ago
  • 11.0.0                                ...           5 years ago
  • 10.1.0                                ...           6 years ago
  • 10.0.1                                ...           6 years ago
  • 10.0.0                                ...           6 years ago
  • 9.10.1                                ...           6 years ago
  • 9.10.0                                ...           6 years ago
  • 9.9.0                                ...           6 years ago
  • 9.8.0                                ...           6 years ago
  • 9.7.1                                ...           6 years ago
  • 9.7.0                                ...           6 years ago
  • 9.6.0                                ...           6 years ago
  • 9.5.0                                ...           6 years ago
  • 9.4.0                                ...           6 years ago
  • 9.3.0                                ...           7 years ago
  • 9.2.1                                ...           7 years ago
  • 9.2.0                                ...           7 years ago
  • 9.1.3                                ...           7 years ago
  • 9.1.2                                ...           7 years ago
  • 9.1.1                                ...           7 years ago
  • 9.1.0                                ...           7 years ago
  • 9.0.0                                ...           7 years ago
  • 8.4.0                                ...           7 years ago
  • 8.3.1                                ...           7 years ago
  • 8.3.0                                ...           7 years ago
  • 8.2.0                                ...           7 years ago
  • 8.1.1                                ...           7 years ago
  • 8.1.0                                ...           7 years ago
  • 8.0.0                                ...           7 years ago
  • 7.13.0                                ...           7 years ago
  • 7.12.0                                ...           7 years ago
  • 7.11.1                                ...           8 years ago
  • 7.11.0                                ...           8 years ago
  • 7.10.1                                ...           8 years ago
  • 7.10.0                                ...           8 years ago
  • 7.9.0                                ...           8 years ago
  • 7.8.0                                ...           8 years ago
  • 7.7.1                                ...           8 years ago
  • 7.7.0                                ...           8 years ago
  • 7.6.0                                ...           8 years ago
  • 7.5.0                                ...           8 years ago
  • 7.4.2                                ...           8 years ago
  • 7.4.1                                ...           8 years ago
  • 7.4.0                                ...           8 years ago
  • 7.3.1                                ...           8 years ago
  • 7.3.0                                ...           8 years ago
  • 7.2.0                                ...           8 years ago
  • 7.1.0                                ...           8 years ago
  • 7.0.3                                ...           8 years ago
  • 7.0.2                                ...           8 years ago
  • 7.0.1                                ...           8 years ago
  • 7.0.0                                ...           8 years ago
  • 6.9.0                                ...           8 years ago
  • 6.8.0                                ...           8 years ago
  • 6.7.1                                ...           9 years ago
  • 6.7.0                                ...           9 years ago
  • 6.6.0                                ...           9 years ago
  • 6.5.1                                ...           9 years ago
  • 6.5.0                                ...           9 years ago
  • 6.4.2                                ...           9 years ago
  • 6.4.1                                ...           9 years ago
  • 6.4.0                                ...           9 years ago
  • 6.3.3                                ...           9 years ago
  • 6.3.2                                ...           9 years ago
  • 6.3.1                                ...           9 years ago
  • 6.3.0                                ...           9 years ago
  • 6.2.2                                ...           9 years ago
  • 6.2.1                                ...           9 years ago
  • 6.2.0                                ...           9 years ago
  • 6.1.1                                ...           9 years ago
  • 6.1.0                                ...           9 years ago
  • 6.0.3                                ...           9 years ago
  • 6.0.2                                ...           9 years ago
  • 6.0.1                                ...           9 years ago
  • 6.0.0                                ...           9 years ago
  • 5.4.0                                ...           9 years ago
  • 5.3.0                                ...           9 years ago
  • 5.2.1                                ...           9 years ago
  • 5.2.0                                ...           9 years ago
  • 5.1.0                                ...           9 years ago
  • 5.0.1                                ...           9 years ago
  • 5.0.0                                ...           9 years ago
  • 4.5.1                                ...           9 years ago
  • 4.5.0                                ...           9 years ago
  • 4.4.0                                ...           9 years ago
  • 4.3.6                                ...           9 years ago
  • 4.3.5                                ...           9 years ago
  • 4.3.4                                ...           9 years ago
  • 4.3.3                                ...           9 years ago
  • 4.3.2                                ...           9 years ago
  • 4.3.1                                ...           9 years ago
  • 4.3.0                                ...           9 years ago
  • 4.2.0                                ...           9 years ago
  • 4.1.0                                ...           9 years ago
  • 4.0.0                                ...           9 years ago
  • 3.2.3                                ...           9 years ago
  • 3.2.2                                ...           9 years ago
  • 3.2.1                                ...           9 years ago
  • 3.2.0                                ...           9 years ago
  • 3.1.4                                ...           9 years ago
  • 3.1.3                                ...           9 years ago
  • 3.1.2                                ...           9 years ago
  • 3.1.1                                ...           9 years ago
  • 3.1.0                                ...           9 years ago
  • 3.0.3                                ...           9 years ago
  • 3.0.2                                ...           9 years ago
  • 3.0.1                                ...           9 years ago
  • 3.0.0                                ...           9 years ago
  • 2.3.7                                ...           9 years ago
  • 2.3.6                                ...           9 years ago
  • 2.3.5                                ...           9 years ago
  • 2.3.4                                ...           9 years ago
  • 2.3.3                                ...           9 years ago
  • 2.3.2                                ...           9 years ago
  • 2.3.1                                ...           9 years ago
  • 2.3.0                                ...           9 years ago
  • 2.2.0                                ...           9 years ago
  • 2.1.0                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.2.1                                ...           9 years ago
  • 1.2.0                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
  • 0.8.0                                ...           9 years ago
  • 0.7.0                                ...           9 years ago
  • 0.6.2                                ...           9 years ago
  • 0.6.1                                ...           9 years ago
  • 0.6.0                                ...           9 years ago
  • 0.5.0                                ...           9 years ago
  • 0.4.1                                ...           9 years ago
  • 0.4.0                                ...           9 years ago
  • 0.3.2                                ...           9 years ago
  • 0.3.1                                ...           9 years ago
  • 0.3.0                                ...           9 years ago
  • 0.2.0                                ...           9 years ago
  • 0.1.2                                ...           9 years ago
  • 0.1.1                                ...           9 years ago
  • 0.1.0                                ...           9 years ago
  • 0.0.0                                ...           10 years ago
Downloads
Total 4
Today 1
This Week 1
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dependencies (48)
Dev Dependencies (32)

© 2010 - cnpmjs.org x YWFE | Home | YWFE