Tailwind CSS class sorting #164
-
(Rome discussion: rome/tools#3672) It would be great to have support for sorting Tailwind CSS classes, like https://github.com/tailwindlabs/prettier-plugin-tailwindcss. For the time being, I'm using https://github.com/okonet/lint-staged, with the following config: const config = {
'*.{js,json,jsx,ts,tsx}': [
'prettier --write',
'biome format --write',
'biome lint --apply',
],
'*.{css,html,md,mdx,yml,yaml}': ['prettier --write'],
}
export default config This way, before committing, we first format committed files with Prettier (which sorts the Tailwind CSS classes with |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 21 replies
-
There was some interest, but we would need to understand what's the logic of their formatting |
Beta Was this translation helpful? Give feedback.
-
I'd be interested in working on this. |
Beta Was this translation helpful? Give feedback.
-
That would be really, really awesome to have. |
Beta Was this translation helpful? Give feedback.
-
TailwindCSS class name sorting is one of the big reasons that keeps my company and myself in my project from adopting Biome and migrating from Prettier x ESLint. |
Beta Was this translation helpful? Give feedback.
-
This would be pretty dope !!. Really like the prettier sorting of tailwind classes. Using Biome in all my backend projects. Once this is done I will also be able to shift fully to biome. |
Beta Was this translation helpful? Give feedback.
-
For those who havent noticed this might be in progres #1362 |
Beta Was this translation helpful? Give feedback.
-
Closing. Follow #1362 for updates |
Beta Was this translation helpful? Give feedback.
-
This would be great! Any idea when it would be implemented? |
Beta Was this translation helpful? Give feedback.
Closing. Follow #1362 for updates