stylelint-semantic-groups icon indicating copy to clipboard operation
stylelint-semantic-groups copied to clipboard

SCSS at-rules are reodered after declarations

Open Birdie0 opened this issue 2 years ago • 1 comments

SCSS @mixin, @include and @function at-rules shouldn't be grouped with other at-rules as some of them are order-dependent (@function/@mixin) and may lead to properties being overwritten (@include), so I suggest putting them between variables and declarations, like it was done in stylelint-config-clean-order for example.

scss.ts seems doesn't affect order of these as at-rules are matched by order/order rather order/properties-order.

Birdie0 avatar Dec 11 '23 12:12 Birdie0

The original idea was actually "not to handle" them at all, leaving them in space (via unspecified), but something went off.

Explicitly supporting these constructs sounds like a good idea.

theKashey avatar Dec 11 '23 20:12 theKashey