这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@BenjaminLesne
Copy link
Contributor

@BenjaminLesne BenjaminLesne commented Oct 18, 2023

What is the issue?

When formatting with prettier the tailwind HTML classes do not reorder automatically following the recommended class order from prettier-plugin-tailwindcss even though this plugin is part of the dependencies of this project

Why is it doing this?

The plugin was not added to the prettier config

How did I fix it?

I added the plugin in the config (first commit)
ran prettier on the components directory (second commit)

@vercel
Copy link

vercel bot commented Oct 18, 2023

Someone is attempting to deploy a commit to a Personal Account owned by @timlrx on Vercel.

@timlrx first needs to authorize it.

@vercel
Copy link

vercel bot commented Oct 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tailwind-nextjs-starter-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 19, 2023 1:19am

@timlrx
Copy link
Owner

timlrx commented Oct 18, 2023

Hmm... I am getting a bunch of error messages on the sorted classes.
CleanShot 2023-10-18 at 23 50 03@2x

@BenjaminLesne
Copy link
Contributor Author

@timlrx oops I forgot to run prettier on the layouts directory.
I updated the pull request and double checked by running yarn run build successfully.

Everything should be fine now 👍

@timlrx
Copy link
Owner

timlrx commented Oct 19, 2023

Works well, thanks for the fix!

@timlrx timlrx merged commit bfa921d into timlrx:main Oct 19, 2023
Meez25 pushed a commit to Meez25/Blog that referenced this pull request Jun 17, 2024
…tailwindcss-not-used

fix prettier-plugin-tailwindcss not being used
bhiwagade-rahul pushed a commit to bhiwagade-rahul/tailwind-nextjs-starter-blog that referenced this pull request Sep 22, 2025
…tailwindcss-not-used

fix prettier-plugin-tailwindcss not being used
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants