Skip to content

Comments

Update Prettier config to include Tailwind CSS plugin#542

Open
bennajah wants to merge 3 commits intohaydenbleasel:mainfrom
bennajah:patch-1
Open

Update Prettier config to include Tailwind CSS plugin#542
bennajah wants to merge 3 commits intohaydenbleasel:mainfrom
bennajah:patch-1

Conversation

@bennajah
Copy link

Description

Update Prettier config to include Tailwind CSS plugin

Related Issues

Checklist

  • I've reviewed my code
  • I've written tests
  • I've generated a change set file
  • I've updated the docs, if necessary

Screenshots (if applicable)

Additional Notes

Copilot AI review requested due to automatic review settings January 26, 2026 15:30
@changeset-bot
Copy link

changeset-bot bot commented Jan 26, 2026

⚠️ No Changeset found

Latest commit: 7f890b8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Contributor

vercel bot commented Jan 26, 2026

@bennajah is attempting to deploy a commit to the Haste Ventures Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-tailwindcss plugin options.
  • Registers prettier-plugin-tailwindcss in the plugins array 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"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

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