sveltejs / prettier-plugin-svelte

Format your svelte components using prettier.
MIT License
745 stars 97 forks source link

investigate compatibility with tailwind prettier plugin #275

Closed dummdidumm closed 2 years ago

dummdidumm commented 2 years ago

https://tailwindcss.com/blog/automatic-class-sorting-with-prettier

We need to check if we have to do anything to get this plugin working within Svelte files or if we need any documentation on how to enable it or if this "just works".

mcmxcdev commented 2 years ago

Not sure if this is why you created this ticket, but there is a passage about prettier-plugin-svelte incompatibility in the README.md: https://github.com/tailwindlabs/prettier-plugin-tailwindcss#compatibility-with-other-prettier-plugins

As a side note: Seems to be svelte-specific, because I am actively using prettier-plugin-tailwindcss on a Next.js project since today, and it works great.

dummdidumm commented 2 years ago

Oh wow I didn't know that, thanks for the link.