Closed peterpeterparker closed 8 months ago
See the last part of the migration section - this is currently a bug in prettier, a release for the fix is still pending on their side. Your workaround of encorcing it through the file extension list should also work.
Gotcha! Thanks for the feedback
Hi,
I'm not sure if this is an issue or a limitation when using the plugin with Prettier v3, but I've noticed that it doesn't format Svelte files in my project anymore.
I'm using Prettier v3 along with the latest version of this plugin. It fails to format Svelte files when the path in the command line is set to
.
.Running
prettier --write .
doesn't process Svelte files. However, enforcing it usingprettier --write './**/*.{ts,js,mjs,json,scss,svelte,html}'
seems to work.My
.prettierrc
is the following:Note that with or without the
overrides
.