sveltejs / prettier-plugin-svelte

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

Parsing error: Adjacent JSX elements must be wrapped in an enclosing tag in v3 #388

Closed marekdedic closed 11 months ago

marekdedic commented 11 months ago

Hi, after updating to v3, prettier complains about adjacent tags in Svelte code - AFAIK you can do that in Svelte, but prettier thinks it's dealing with JSX...

See here: https://github.com/skaut/shared-drive-mover/pull/1352

dummdidumm commented 11 months ago

Please provide more details.

marekdedic commented 11 months ago

Oh, I didn't notice the migration guide and went by changelog only... Will try. I am using it through eslint-plugin-svelte...

marekdedic commented 11 months ago

Yep, adding a proper .prettierrc fixed this. Thanks!