prettier-vscode
prettier-vscode copied to clipboard
Prettier doesn't currently support breaking the closing html tag to a new line if there's no content
trafficstars
Got the prettier set up almost perfectly! The only remaining problem is that prettier does not breaking the closing html tag to a new line if it is empty. Just add any text or tag inside and everything works perfectly.
minimum config:
{
"bracketSameLine": true,
"singleAttributePerLine": true,
"htmlWhitespaceSensitivity": "ignore"
}
expectation:
<div
class="some-class"
data-placeholder="some data">
</div>
reality:
<div
class="some-class"
data-placeholder="some data"></div>