Open brittneypostma opened 7 months ago
Where was the comment originally? If I put it atop the script
tag it isn't moved elsewhere.
In general
@component
comment block isn't treated in any way special, so it will stay above style/script or inbetween html, depending on where you put itI cannot reproduce this. Can you give detailed reproduction steps along with the reproduction?
I am assuming this is a bug. When using
@component
to write component documentation in a Svelte file, prettier plugin Svelte thinks it belongs with the style block. When updating thesvelteSortOrder
it will continue to move around with the style block.Here is a minimal Stackblitz reproduction showing some documentation in the Counter component. I have the sort order updated from the default and ran format. You can continue to change the sort order and rerun format to see the bug in action.