material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[docs-infra] Add Tailwind CSS Prettier plugin

Open oliviertassinari opened this issue 1 year ago • 1 comments

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 https://github.com/mui/base-ui/pull/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.

oliviertassinari avatar Dec 24 '24 18:12 oliviertassinari

Netlify deploy preview

Bundle size report

No bundle size changes (Toolpad) No bundle size changes

Generated by :no_entry_sign: dangerJS against fa386f392d79ed2708fcf52fa4c35907f75dffe9

mui-bot avatar Dec 24 '24 18:12 mui-bot