

stylelint
A mighty, modern CSS linter that helps you enforce consistent conventions and avoid errors in your stylesheets.
Cost / License
- Free
- Open Source
Platforms
- Online
- Self-Hosted
Features
stylelint News & Activities
Recent activities
stylelint information
What is stylelint?
A mighty, modern CSS linter that helps you enforce consistent conventions and avoid errors in your stylesheets.
Features: Over one hundred and fifty rules: Including those that: Catch errors: e.g. invalid hex colors, indistinguishable colors, or overriding shorthand properties. Enforce best practices: e.g. keeping specificity low or disallowing vendor prefixes in your source code. Control what languages features can be used: e.g. whitelisting specific units, properties and functions, or disallowing certain selector types. Enforce code style conventions: e.g. checking the spacing around the colon in declarations or specifying patterns for class selectors. Support for the latest CSS syntax: Including custom properties, range context for media features, calc() and nesting. Understands CSS-like syntaxes: The linter is powered by PostCSS, so it understands any syntax that PostCSS can parse, including SCSS, SugarSS, and experimental support for Less. Completely unopinionated: Only enable the rules you want, and configure them with options that tailor the linter to your needs. Support for plugins: It's easy to create your own rules and add them to the linter. Automatically fix some stylistic warnings: By using stylefmt which supports stylelint configuration files. Shareable configs: If you don't want to craft your own config, you can extend a shareable config. Options validator: So that you can be confident that your config is valid. Growing community: Used by Facebook, Github, Wikimedia, GSA, and WordPress among others.

