New Line in prettier when more then one attribute and content

22 Views Asked by At

i want to add config to not break line when length is less than printWidth property.

First Case

input:

<div b={2} a={2} b={3} c={22}>s</div>

output:

<div b={2} a={2} b={3} c={22}>
        s
</div>

Second Case

input:

 <div b={2} a={2} b={3} c={22}></div>

output:

<div b={2} a={2} b={3} c={22}></div>

Third Case

input:

<div b={2} a={2}>a</div>

output:

<div b={2} a={2}>
   a
</div>

expected:

<div b={2} a={2}>a</div>
0

There are 0 best solutions below