-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs-infra] Add Tailwind CSS Prettier plugin #44854
Open
oliviertassinari
wants to merge
4
commits into
mui:master
Choose a base branch
from
oliviertassinari:prettier-plugin-tailwindcss
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[docs-infra] Add Tailwind CSS Prettier plugin #44854
oliviertassinari
wants to merge
4
commits into
mui:master
from
oliviertassinari:prettier-plugin-tailwindcss
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oliviertassinari
added
docs
Improvements or additions to the documentation
scope: docs-infra
Specific to the docs-infra product
labels
Dec 24, 2024
oliviertassinari
force-pushed
the
prettier-plugin-tailwindcss
branch
from
December 24, 2024 18:49
3df60a1
to
833295d
Compare
oliviertassinari
changed the title
[docs-infra] Polish Tailwind CSS demos
[docs-infra] Add Tailwind CSS Prettier plugin
Dec 24, 2024
oliviertassinari
force-pushed
the
prettier-plugin-tailwindcss
branch
2 times, most recently
from
December 24, 2024 22:18
aaa6747
to
7177bb3
Compare
"babel-plugin-tester": "^11.0.4", | ||
"babel-plugin-tester": "^12.0.0-canary.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why babel-utils/babel-plugin-tester#269. Removing older prettier versions in our dependency graph, allowing us to fully support prettier ESM plugins like this new one.
oliviertassinari
force-pushed
the
prettier-plugin-tailwindcss
branch
from
December 24, 2024 22:25
7177bb3
to
84392e6
Compare
github-actions
bot
added
the
PR: out-of-date
The pull request has merge conflicts and can't be merged
label
Dec 27, 2024
oliviertassinari
force-pushed
the
prettier-plugin-tailwindcss
branch
from
December 27, 2024 20:26
c6d8c34
to
80ad698
Compare
Signed-off-by: Olivier Tassinari <[email protected]>
oliviertassinari
force-pushed
the
prettier-plugin-tailwindcss
branch
from
December 27, 2024 22:07
80ad698
to
fa386f3
Compare
github-actions
bot
removed
the
PR: out-of-date
The pull request has merge conflicts and can't be merged
label
Dec 27, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
docs
Improvements or additions to the documentation
enhancement
This is not a bug, nor a new feature
scope: docs-infra
Specific to the docs-infra product
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have often got the impression that using Tailwind CSS without Prettier, VS Code, and all the tools that are part of the developer lifecycle isn't truly using Tailwind CSS, it's part of the whole point, e.g. https://x.com/adamwathan/status/1796582408621523320/quotes. Since Base UI uses this plugin, I believe we must standardize to use it in all our codebase. We are unlikely to have a lot of Tailwind CSS code in this repository, but the X repositories will likely have more.
Opportunity noticed in mui/base-ui#1183.
One point of caution:
time pnpm prettier:all
Before:
71.66s user
5.94s system
148% cpu
52.204 total
After:
88.86s user
13.81s system
135% cpu
1:15.66 total
It's very noticeable (+44%) but not a huge concern. We rarely prettier the whole codebase.