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 no-invalid-position-at-import-rule false positives for @layer #6094

Merged
merged 2 commits into from
May 16, 2022
Merged

Fix no-invalid-position-at-import-rule false positives for @layer #6094

merged 2 commits into from
May 16, 2022

Conversation

immitsu
Copy link
Contributor

@immitsu immitsu commented May 14, 2022

Which issue, if any, is this issue related to?

Resolve #6085

Is there anything in the PR that needs further explanation?

No.

Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@immitsu Thanks for creating the pull request. Almost LGTM 👍🏼

Can you please update the doc also "ignoring @charset"? ⬇️

Any `@import` rules must precede all other valid at-rules and style rules in a stylesheet (ignoring `@charset`), or else the `@import` rule is invalid.

@ybiquitous ybiquitous changed the title extend if-block Fix no-invalid-position-at-import-rule false positives for @layer May 15, 2022
@immitsu
Copy link
Contributor Author

immitsu commented May 15, 2022

@ybiquitous Done!

Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ybiquitous ybiquitous merged commit 1a1bbde into stylelint:main May 16, 2022
@ybiquitous
Copy link
Member

Changelog entry added:

Fixed: no-invalid-position-at-import-rule false positives for @layer (#6094).

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

Successfully merging this pull request may close these issues.

[no-invalid-position-at-import-rule] Should allow @layer to come before @import
2 participants