A mighty CSS linter that helps you avoid errors and enforce conventions.
A mighty CSS linter that helps you avoid errors and enforce conventions.
A mighty CSS linter that helps you avoid errors and enforce conventions.
It's mighty as it:
And it can be extended to:
It'll help you avoid errors, for example:
And enforce conventions, for example:
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.
Stylelint is maintained by volunteers. Without the code contributions from all these fantastic people, Stylelint would not exist. Become a contributor.
We'd like to thank all past members for their invaluable contributions, including two of Stylelint's co-creators @davidtheclark and @MoOx.
Financial contributions help us dedicate time to Stylelint and cover our infrastructure costs.
A big thank you to everyone who sponsors us on Open Collective:
And thank you to all our Open Collective backers, GitHub sponsors and one-off donors.
Contribute via Open Collective or sponsor us on GitHub.
Remove `declaration-block-single-line-max-declarations`
Fix `declaration-property-value-no-unknown` false negatives for values containing known custom properties
Refactor to replace picocolors with `node:util.styleText`
Fix `declaration-block-no-shorthand-property-overrides` false negatives for logical properties and physical shorthands
Fix exit code 2 when every error in a file is suppressed and anything else is reported
Fix `Config` type to accept configuration objects in `extends`
Fix `at-rule-prelude-no-invalid` `Bad syntax reference` throw for `@when` and `@else`
Add support for running in a browser
Fix `--fix` not writing a file whose only change is the removal of its byte order mark
Add `at-charset-rule-no-invalid`