#9456·stylelint

Remove `declaration-block-single-line-max-declarations`

Author: robert-westenberger-mpulseCreated Aug 25, 2026Updated Sep 8, 2026
Labelsstatus: agreed but held

What is the problem you're trying to solve?

There is no autofix available for https://stylelint.io/user-guide/rules/declaration-block-single-line-max-declarations .

What solution would you like to see?

Running stylelint with the --fix flag should autoformat violations of https://stylelint.io/user-guide/rules/declaration-block-single-line-max-declarations to newlines that satisfy the user's setting for declaration-block-single-line-max-declarations

e.g. with "declaration-block-single-line-max-declarations": 2 should change

css
.my-style {
   color: red; width: 1000px; display: block;
}

to

css
.my-style {
   color: red; 
   width: 1000px; 
   display: block;
}