unijump-ai / unijump-extension

Other
202 stars 25 forks source link

chore: add tailwindcss support to prettier #5

Closed aykutkardas closed 1 year ago

aykutkardas commented 1 year ago

https://tailwindcss.com/blog/automatic-class-sorting-with-prettier#how-classes-are-sorted

dogagenc commented 1 year ago

@aykutkardas This is nice to have. Thank you!

Can we explicitly add it to end of plugins in prettier config file to prevent possible conflicts between plugins?

https://github.com/tailwindlabs/prettier-plugin-tailwindcss#compatibility-with-other-prettier-plugins https://github.com/sveltejs/prettier-plugin-svelte#usage-with-tailwind-prettier-plugin

dogagenc commented 1 year ago

@aykutkardas, I have not attempted it, but most likely it will not work with the inlineClass helper that we currently have.

Is there any solution that you know of to fix this issue?

Edit: Or just will it work?

aykutkardas commented 1 year ago

@aykutkardas, I have not attempted it, but most likely it will not work with the inlineClass helper that we currently have.

Is there any solution that you know of to fix this issue?

Edit: Or just will it work?

Actually, you don't need to make any changes.

image

dogagenc commented 1 year ago

@aykutkardas, I have not attempted it, but most likely it will not work with the inlineClass helper that we currently have. Is there any solution that you know of to fix this issue? Edit: Or just will it work?

Actually, you don't need to make any changes.

image

That's cool!