How to use Tailwind class sorter? #2284
-
I read https://tailwindcss.com/blog/automatic-class-sorting-with-prettier the other day and would love to be able to utilize it in my Fresh project. However, I'm not sure how to get set up. It says that you need to 1) install the NPM package and 2) update your Prettier config to include the plugin. Step 1 is doable enough with NPM specifiers. Step 2 is the part that I'm confused about. As a Deno project, we use It seems like it's probably not possible to do without actually using Prettier. Which sucks because using Prettier instead of I also am interested in hearing if people have alternative solutions to this problem that they like. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@adamzerner I can recommend you this extension in case you use vscode: https://github.com/Trapfether/tailwind-raw-reorder It's a maintained fork of https://github.com/heybourn/headwind, which I used before but is now unmaintained. It works for me with the latest tailwind version in fresh jsx files. |
Beta Was this translation helpful? Give feedback.
@adamzerner I can recommend you this extension in case you use vscode: https://github.com/Trapfether/tailwind-raw-reorder
It's a maintained fork of https://github.com/heybourn/headwind, which I used before but is now unmaintained. It works for me with the latest tailwind version in fresh jsx files.