Closed obriankevin11 closed 2 years ago
@obriankevin11 Could you try using ".css$"
as the pattern, instead of "(\\.css)"
?
I wonder if side-effect-only-imports are an edge case that isn’t being sorted fully?
I think side-effect-imports might be assumed to have a purpose in a specific order?
Oh, I missed that it was a side effect import. Yes, we do not sort side effect imports, since in general it is not safe to do so. I'm closing since this is working as intended, but happy to chat more about it with you @obriankevin11.
ok I understand but is there a way to bypass side-effect-only-imports rule/restriction as I know it won't have side effects? it would be nice to have the choice :)
No, sorry but there is not. You can use the @trivago
plugin that this is forked from. It does not treat side effect nodes differently from others.
Hi!
I'm having the following issue: Imports containing ".css" string are not moved to end group
Configuration
To Reproduce
tsx file:
.prettierrc
Result
Expected behavior
Thank you!