<BaseLayout>
<Fragment slot="AdditionalSEO">
Not a problem
</Fragment>
<header>
</header>
<article>
</article>
</BaseLayout>
...
<BaseLayout>
<Fragment slot="AdditionalSEO"> Not a problem </Fragment>
<header></header>
<article></article>
</BaseLayout>
This is just a prettier configuration thing I think. Try "bracketSameLine": true in your .prettierrc. Note that this configuration doesn't work within braces, which is annoying.
Describe the Bug
It seems that wrapping a component within causes the formatter to move at the end of the parent element, breaking the structure.
Steps to Reproduce
npm init astro
using template anyWrong result:
Expected result:
With text it works: