This plugin does not play nicely with the official "prettier-plugin-tailwindcss" plugin
Closed this issue · 2 comments
Dependency information
For reference: https://tailwindcss.com/blog/automatic-class-sorting-with-prettier
The official prettier-plugin-tailwindcss will nicely sort your tailwind classes into an opinionated order. I would love to be able to use this classnames plugin, but unfortunately when I add it to my tailwind config it breaks the sorting that the official plugin provides.
Steps to reproduce
Add these plugins to your .prettierrc.json: (order doesn't matter)
"plugins": [
"prettier-plugin-tailwindcss",
"prettier-plugin-classnames"
]
The current behavior
Class sorting breaks while line wrapping still works
The expected behavior
Both class sorting and line wrapping work in harmony
Have you checked the last section of the README?
Wow I am a dumbass. My apologies for raising this issue. Thanks for the help :)