Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCSS at-rules are reodered after declarations #11

Open
Birdie0 opened this issue Dec 11, 2023 · 1 comment
Open

SCSS at-rules are reodered after declarations #11

Birdie0 opened this issue Dec 11, 2023 · 1 comment

Comments

@Birdie0
Copy link

Birdie0 commented Dec 11, 2023

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.

@theKashey
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants