You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that the prettier plugin API is limited and only one plugin can interact with the AST at a time. According to the prettier-plugin-tailwindcss readme, the tailwindcss plugin is supposed to be last.
However, I noticed that my imports weren't getting sorted and eventually figured out that everything works if I put this plugin last. Not really sure if that's a bug or unexpected, but figured I'd open this issue for visibility in case anyone else runs into the same thing. See my next comment.
Turns out another prettier plugin I was using was causing the issue, specifically prettier-plugin-jsdoc. Putting the plugins in the order suggested by prettier-plugin-tailwindcssdoes work.
Related to #36
I know that the prettier plugin API is limited and only one plugin can interact with the AST at a time. According to the prettier-plugin-tailwindcss readme, the tailwindcss plugin is supposed to be last.
However, I noticed that my imports weren't getting sorted and eventually figured out that everything works if I put this plugin last. Not really sure if that's a bug or unexpected, but figured I'd open this issue for visibility in case anyone else runs into the same thing.See my next comment.So to be clear, this works:
This doesn't work:
Might be worth putting a note in the readme that this plugin should come last?
The text was updated successfully, but these errors were encountered: