declarationOrderGroupBy
Control how declarations are considered as a group when sorting.
Possible values:
"nonDeclaration"
: Non-declaration statements are considered as the boundaries of declaration group."nonDeclarationAndEmptyLine"
: Non-declaration statements and empty lines (without comments) are considered as the boundaries of declaration group.
Default value is "nonDeclaration"
.
Example for "nonDeclaration"
Supposed declarations are sorted by "alphabetical"
strategy.
div {
left: 0;
top: 0;
& {}
height: 100%;
width: 100%;
}
Example for "nonDeclarationAndEmptyLine"
Supposed declarations are sorted by "alphabetical"
strategy.
div {
left: 0;
top: 0;
& {}
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}