A mighty, modern CSS linter that helps you enforce consistent conventions and avoid errors in your stylesheets.
Over one hundred and fifty rules: Including those that:
With stylelint, it's easy to start linting your CSS:
Decide how you want to use stylelint:
Create your configuration object by either extending a shared config or crafting your own:
stylelint-config-standard. It includes over 80 of stylelint's rules with sensible defaults. (You can always override specific rules after extending the config.) We update the config with each new release of stylelint. Alternately, you can search for a community config and extend that instead.
To craft your own config, first learn about how rules are named and how they work together, then either:
null) the rules that you don't care to enforce.
You'll find more detailed information on using stylelint and tailoring it to your needs in our guides:
If you're looking for help or have a support question, then check out our FAQ first. If the answer to your problem isn't there, then go to stackoverflow. stackoverflow is a huge Question and Answer community, and tagging your post there with "stylelint" will catch the stylelint team's attention.
If you think you've found a bug or if you have feature request, then create a new GitHub issue. Be sure to follow the issue template, answering each question, as this helps us greatly in understanding your problem or request.
Upgrading? Please read our CHANGELOG to learn what changes to expect in the latest version, whether that's new features, bug fixes, renamed rules, or whatever else.
There is always a lot of work to do, and already well over 150 rules to maintain. So please help out in any way that you can: