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

The proper rule for double curly brackets, and line length, end empty line between siblings #5032

Closed
mkbctrl opened this issue Aug 30, 2018 · 1 comment
Labels
lang:html Issues affecting HTML (and SVG but not JSX) locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:question Questions and support requests. Please use Stack Overflow for them, not the issue tracker.

Comments

@mkbctrl
Copy link

mkbctrl commented Aug 30, 2018

Hey people,
I struggle with solving this one:

I have the code formatted that way:

<div class="car-details-meta d-inline-block">
  <h2 class="font-weight-medium m-b-0 h3">
    {{ deal.final_offer.final_car_model.manufacturer_name }}
    {{ deal.final_offer.final_car_model.name }}
  </h2>

  <h3 class="font-weight-light m-t-0 h5">
    {{ deal.final_offer.final_car_model.name }}
  </h3>
</div>

but after linting I end up with:

<div class="car-details-meta d-inline-block">
   <h2 class="font-weight-medium m-b-0 h3">{{ deal.final_offer.final_car_model.manufacturer_name }}</h2>
   <h3 class="font-weight-light m-t-0 h5">{{ deal.final_offer.final_car_model.name }}</h3>
</div>

what I need to pass is extra, empty line between sibling nodes and make each {{ content }} new line

Can you please share some wisdom in that matter :) ?

@lydell
Copy link
Member

lydell commented Aug 30, 2018

Prettier does not support formatting HTML yet. See #1882

@lydell lydell closed this as completed Aug 30, 2018
@lydell lydell added type:question Questions and support requests. Please use Stack Overflow for them, not the issue tracker. lang:html Issues affecting HTML (and SVG but not JSX) labels Aug 30, 2018
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Nov 28, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Nov 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lang:html Issues affecting HTML (and SVG but not JSX) locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:question Questions and support requests. Please use Stack Overflow for them, not the issue tracker.
Projects
None yet
Development

No branches or pull requests

2 participants