Update Prettier config to include Tailwind CSS plugin#542
Update Prettier config to include Tailwind CSS plugin#542bennajah wants to merge 3 commits intohaydenbleasel:mainfrom
Conversation
|
|
@bennajah is attempting to deploy a commit to the Haste Ventures Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Pull request overview
Updates the shared Prettier configuration for the CLI package to enable Tailwind CSS-aware formatting.
Changes:
- Extends the Prettier config JSDoc type to include
prettier-plugin-tailwindcssplugin options. - Registers
prettier-plugin-tailwindcssin thepluginsarray so Tailwind class sorting/formatting is applied.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| arrowParens: "always", | ||
| proseWrap: "never", | ||
| printWidth: 80, | ||
| plugins: ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"], |
There was a problem hiding this comment.
I don't think we should include svelte (and arguably tailwindcss) by default, since not every projects are using these plugins. I've created an issue that talks about framework / library specific plugins support for prettier (similar to eslint) and is currently RFC.
Please feel free to leave your thoughts while waiting for @haydenbleasel's feedback, thanks!
Description
Update Prettier config to include Tailwind CSS plugin
Related Issues
Checklist
Screenshots (if applicable)
Additional Notes