[Prettier Plugin] #18209
-
I've got a project using Astro. I have prettier 3.5.3 set up and it's working as expected on .astro files for TS and HTML formatting. I'd like to use the A lot of the help I'm finding online is at least a year old and I know that Tailwind 4 is newer than that, so perhaps there's something I need to do differently that I'm not finding. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Based on the documentation in the repository, it works correctly for me.
For special cases, you can add the following 3 settings:
If it still doesn't work, sharing a minimal reproduction might help. |
Beta Was this translation helpful? Give feedback.
-
I added the reference to the tailwind stylesheet and it's still not working. Here's the packages I have installed:
.prettier.config.mjs:
vscode settings:
TypeScript and HTML are being formatted correctly in .astro files, but tailwind class names are not sorted. I'm in VSCode, using the Astro extension. @rozsazoltan, let me know if see anything that varies from your set up. Thanks. |
Beta Was this translation helpful? Give feedback.
-
I go this working. I had to add the path to my prettier config in my |
Beta Was this translation helpful? Give feedback.
I go this working. I had to add the path to my prettier config in my
.vscode/setttings.json
file.