Skip to content

fix being unable to ignore warnings in postcss-cascade-layers#1640

Merged
romainmenke merged 2 commits intocsstools:mainfrom
Fox32:postcss-cascade-layers-ignore-warnings
Jun 26, 2025
Merged

fix being unable to ignore warnings in postcss-cascade-layers#1640
romainmenke merged 2 commits intocsstools:mainfrom
Fox32:postcss-cascade-layers-ignore-warnings

Conversation

@Fox32
Copy link
Copy Markdown
Contributor

@Fox32 Fox32 commented Jun 25, 2025

I tired to ignore the onRevertLayerKeyword warnings because they aren't relevant in my case, however setting it to false did not disable them. Looking at the code I would have to disable onImportLayerRule at the same time, however then hasAnyLayer is not evaluated and the plugin exits early.

I modified the code to evaluate both options individually and added a test for it. Including the updated files from the dist folder is correct, right?

Comment thread plugins/postcss-cascade-layers/CHANGELOG.md Outdated
Copy link
Copy Markdown
Member

@romainmenke romainmenke left a comment

Choose a reason for hiding this comment

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

Good catch!
Thank you 🙇

@Fox32
Copy link
Copy Markdown
Contributor Author

Fox32 commented Jun 26, 2025

It was fun, test setup is nice!

@romainmenke romainmenke merged commit 4b50e7c into csstools:main Jun 26, 2025
7 checks passed
@Fox32 Fox32 deleted the postcss-cascade-layers-ignore-warnings branch July 9, 2025 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants