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

Dangling bracket for long class list #2

Closed
chrisw- opened this issue Feb 10, 2021 · 1 comment
Closed

Dangling bracket for long class list #2

chrisw- opened this issue Feb 10, 2021 · 1 comment

Comments

@chrisw-
Copy link

chrisw- commented Feb 10, 2021

<div class="mt-8 sm:mt-0 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5 some-other-class another-class yet-another-class yet-another-class">
  content
</div>

gets restyled to

<div
  class="mt-8 sm:mt-0 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5 some-other-class another-class yet-another-class yet-another-class"
>
  content
</div>

Expected:

<div
  class="mt-8 sm:mt-0 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5 some-other-class another-class yet-another-class yet-another-class">
  content
</div>

OR

<div class="mt-8 sm:mt-0 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5 some-other-class another-class yet-another-class yet-another-class">
  content
</div>
@adamzapasnik
Copy link
Owner

I'm afraid that's how prettier works

Here is a related topic prettier/prettier#5377

@chrisw- chrisw- closed this as completed Feb 10, 2021
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

2 participants