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

Fix Sass mixed-declaration warning using stylelint-order #10707

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

bhollis
Copy link
Contributor

@bhollis bhollis commented Aug 30, 2024

Sass is complaining about a new breaking change affecting "mixed declarations" where declarations are mixed in before and after nested rules. I like this - I don't like it when there are declarations after nested rules.

https://sass-lang.com/documentation/breaking-changes/mixed-decls/

After a few minutes trying to fix these manually, I turned to the stylelint-order plugin and described a strict ordering for how things should appear in a block.

@bhollis bhollis changed the title Fix a few manually Fix Sass mixed-declaration warning using stylelint-order Aug 30, 2024
@bhollis bhollis merged commit d00d140 into master Aug 31, 2024
8 checks passed
@bhollis bhollis deleted the sass-declaration-order branch August 31, 2024 22:02
@liamdebeasi
Copy link
Sponsor Contributor

Sorry, just saw this request for review from me. Code looks good though!

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

Successfully merging this pull request may close these issues.

2 participants