Closed hudochenkov closed 5 years ago
Thank you for adding the noEmptyLineBetween rule! I immediately added it to our stylelint config, but it seems there is some kind of conflict when you use it in combination with the order: "flexible" rule..:
noEmptyLineBetween
order: "flexible"
Config:
[ { emptyLineBefore: "always", noEmptyLineBetween: true, order: "flexible", properties: [ "height", "width", ], }, { emptyLineBefore: "always", noEmptyLineBetween: true, order: "flexible", properties: [ "font-size", "font-weight", ], }, ]
Example:
a { height: 1px; width: 2px; font-size: 2px; font-weight: bold; }
Result:
5:5 ✖ Unexpected an empty line before property "font-size" order/properties-order
After deleting the empty line between width & font-size:
width
font-size
4:5 ✖ Expected an empty line before property "font-size" order/properties-order
Originally posted by @dbeerten in https://github.com/hudochenkov/stylelint-order/issues/11#issuecomment-481225683
@dbeerten thank you for reporting! I'll take a look.
Fixed in 2.2.1.
2.2.1
Works like a charm now! Thanks @hudochenkov
Thank you for adding the
noEmptyLineBetween
rule! I immediately added it to our stylelint config, but it seems there is some kind of conflict when you use it in combination with theorder: "flexible"
rule..:Config:
Example:
Result:
After deleting the empty line between
width
&font-size
:Originally posted by @dbeerten in https://github.com/hudochenkov/stylelint-order/issues/11#issuecomment-481225683