Support for Automatic Class Sorting with Prettier #19
-
Prettier has this plugin for automatic class sorting. Currently it's not working with TW. I am not sure how to make it work. It might require some changes to the plugin to support regex. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I would like to have that feature as well. 👍 |
Beta Was this translation helpful? Give feedback.
-
Any updates on this one @jrgarciadev ? |
Beta Was this translation helpful? Give feedback.
-
Not sure if this is a stale issue and you guys have this sorted. If not, I have a working solution. In your prettier config add tailwindFunctions:['tv'] The below image is from an Astro project, but should work in any framework. |
Beta Was this translation helpful? Give feedback.
Not sure if this is a stale issue and you guys have this sorted. If not, I have a working solution.
In your prettier config add tailwindFunctions:['tv']
The below image is from an Astro project, but should work in any framework.