Skip to content
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

[Feature Request] Add support for sorting the attribute's content #21

Open
dtslvr opened this issue Oct 6, 2023 · 4 comments
Open

[Feature Request] Add support for sorting the attribute's content #21

dtslvr opened this issue Oct 6, 2023 · 4 comments

Comments

@dtslvr
Copy link

dtslvr commented Oct 6, 2023

For this template

<div
  class="text-muted text-center"
></div>

it would be handy if the plugin automatically sorts the value of the attribute class:

<div
  class="text-center text-muted"
></div>
@NiklasPor
Copy link
Owner

Fyi I think there's an extra plugin for tailwind or something similar. Not that I'm opposed to adding the feature.

@jeannemas
Copy link

jeannemas commented Oct 11, 2023

There is indeed prettier-plugin-tailwindcss which might just be what you're looking for.

@dtslvr
Copy link
Author

dtslvr commented Oct 11, 2023

There is indeed prettier-plugin-tailwindcss which might just be what you're looking for.

Thank you for the link @jeannemas. Unfortunately, it seems there is no equivalent plugin available for bootstrap (twbs/bootstrap#38397).

@Hnnx
Copy link

Hnnx commented Mar 2, 2024

And on top of that, Bootstrap prefers not to have any ordering system which is a bummer.

I mean generally speaking we all kinda agree that you start with display/layout and then finish off with smaller stuff like colors, emphasis, shadows are somewhere in between..

I know code runs just the same no matter the order but I would like to see some consistency - making inline style more readable should not be "low priority" for BS.

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

No branches or pull requests

4 participants