This release contains significant or breaking changes.
Two significant changes may affect you:
- deprecated stylistic rules
- added the
declaration-property-value-no-unknown
rule
We've deprecated 76 of the rules that enforce stylistic conventions, e.g. indentation
.
When we created these rules, pretty printers (like Prettier) didn't exist. They now offer a better way to consistently format code, especially whitespace. Linters and pretty printers are complementary tools that work together to help you write consistent and error-free code.
By deprecating these rules, we can:
- focus on writing and maintaining rules that help you avoid errors and enforce (non-stylistic) conventions, both of which are unique to Stylelint
- modernize our codebase, e.g. move to ESM so that we can update our dependencies and keep Stylelint secure for you
The deprecated rules will still work in this release (with a deprecation warning). In preparation for the next major release, when we'll remove the rules from Stylelint, we suggest:
- extending the standard config in your configuration object, if you don't already
- removing the deprecated rules from your configuration object
You can extend the