M
M
maxhd2021-04-08 08:39:57
webpack
maxhd, 2021-04-08 08:39:57

What config for prettier is needed so that inline html tags start on a new line?

at the input:

<ul class="breadcrumbs">
  <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="#">Каталог</a></li>
  <li class="breadcrumbs__item"><a class="breadcrumbs__link" href="#">Бытовая техника</a></li>
  <li class="breadcrumbs__item">Товары для дома</li>
</ul>


at the exit:
<ul class="breadcrumbs">
  <li class="breadcrumbs__item">
    <a class="breadcrumbs__link" href="#">Каталог</a>
  </li>
  <li class="breadcrumbs__item">
    <a class="breadcrumbs__link" href="#">Бытовая техника</a>
  </li>
  <li class="breadcrumbs__item">Товары для дома</li>
</ul>


so far stupidly limited by characters:
{
  "printWidth": 120,
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question