Closed mishanga closed 4 years ago
this bug has 2 cases: 1) When stylelint remove property from first position
2) When stylelint insert property to first position
stylelint-order preserve empty lines before properties (and other nodes) unless emptyLineBefore
and/or noEmptyLineBetween
are specified. What happens in @mishanga case, that width
had empty line before it, and it was preserved, because when property is the first in rule plugin doesn't change empty lines.
@hudochenkov in our case emptyLineBefore
and noEmptyLineBetween
specified, do you know how to avoid emty lines in this case?
Improvement released in stylelint-order@4.0.0
. Happy New Year!
Before autofix:
After autofix:
Config:
Versions: