Vetur: How to ignore prettier to format in template?

Created on 17 Dec 2018  路  2Comments  路  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

  • Platform: macOS
  • Vetur version: 0.14.3
  • VS Code version: 1.30.0

Problem



Input:

<p class="lottery-btn-text">XX<br>XX</p>

Output:

<p class="lottery-btn-text">XX
  <br>XX
</p>

I used <!-- prettier-ignore -->, but it don't work.
https://prettier.io/docs/en/ignore.html
I don't know this issue for vetur or prettier?

But css works. 馃槀

Reproducible Case

question

Most helpful comment

The template formatter is prettyhtml, not prettier. Follow #950 please.

All 2 comments

The template formatter is prettyhtml, not prettier. Follow #950 please.

Thx

Was this page helpful?
0 / 5 - 0 ratings

Related issues

octref picture octref  路  3Comments

octref picture octref  路  3Comments

ghost picture ghost  路  3Comments

gabrielboliveira picture gabrielboliveira  路  3Comments

thibautguedou3 picture thibautguedou3  路  3Comments