csscomb.js
csscomb.js copied to clipboard
sort-order overrides space-after-opening-brace
v3.0.4, since current dev crashes in too many spots
{
"verbose": true,
"sort-order": [ "$variable", "$include" ],
"sort-order-fallback": "abc",
"space-after-opening-brace": 1,
}
RESULT
style.less
- .singular-post #content & { display: inline-block; color: @grey;
+ .singular-post #content & {color: @grey; display: inline-block;
EXPECTED RESULT
style.less
- .singular-post #content & { display: inline-block; color: @grey;
+ .singular-post #content & { color: @grey; display: inline-block;
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
My current workaround is running csscomb twice with different configurations
$ csscomb -c /etc/csscomb-sort.json *.less # super brief sort-only configuration, generates broken opening brace spacing
$ csscomb -c /etc/csscomb.json *.less # beautify everything, fix up opening brace spacing
This is not particularly ideal, since it would be nice to have a single exit code for tooling etc. But even so, csscomb and gonzales-pe are pure awesomess and incredibly valuable, regardless of having to run once or twice :100: :100: :100:
Same problem here
+1
i fixed this locally. i can make a PR if there's interest.