[Prettier Plugin] Customizable Breakpoint Sort Order #17152
Unanswered
DMOShareIT
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
It would be great to have an option to customize the sort order of breakpoints.
Since Tailwind allows both mobile-first and desktop-first approaches, it makes sense to extend this flexibility to the Prettier plugin.
Would it be possible to support a custom sort order, such as ["", "2xl", "xl", "lg", "md", "sm", "xs"], instead of the default ["", "xs", "sm", "md", "lg", "xl", "2xl"]?
This would help teams who prefer a desktop-first approach maintain consistency in their code formatting.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions