heybourn / headwind

An opinionated Tailwind CSS class sorter built for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=heybourn.headwind
MIT License
1.37k stars 46 forks source link

Is it possible to sort classes on `.astro` files? #194

Closed AlexMayol closed 1 year ago

AlexMayol commented 1 year ago

Is your feature request related to a problem? Please describe. I'm trying to get the VSCode extension working on .astro files (from AstroJS)

Describe the solution you'd like Is there a config that works for these files? I haven't figured it out.

Additional context When saving a file, classes are not being sorted as they are in .html files. Example <header class="bg-primary-900 text-white md:p-4 p-2 sticky top-0 z-50">

phaberest commented 1 year ago

Hi @AlexMayol 🙌🏻 I would suggest you to move to the prettier or eslint plugins as suggested in https://github.com/heybourn/headwind/issues/185#issuecomment-1220914816

AlexMayol commented 1 year ago

@phaberest Thank you, I didn't know about the plugin!