sveltejs / prettier-plugin-svelte

Format your svelte components using prettier.
MIT License
714 stars 95 forks source link

[bug]: @component documentation sorted with style tag #410

Open brittneypostma opened 7 months ago

brittneypostma commented 7 months ago

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 the svelteSortOrder 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.

dummdidumm commented 7 months ago

Where was the comment originally? If I put it atop the script tag it isn't moved elsewhere. In general

dummdidumm commented 3 weeks ago

I cannot reproduce this. Can you give detailed reproduction steps along with the reproduction?