-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prettier is ignoring svelte files #6804
Comments
can confirm, adding |
Originally I thought this might be caused by sveltejs/prettier-plugin-svelte#155, but weirdly none of the workarounds that people have suggested works now. |
A previous version of the sveltekit template included |
With Prettier v3, Prettier's documentation suggests using Does it happen to you as well? |
This is a bug within Prettier, see the migration guide for more info: https://github.com/sveltejs/prettier-plugin-svelte#how-to-migrate-from-version-2-to-3 |
Describe the bug
I created a new sveltekit app but when running the lint or format script prettier is ignoring all svelte files. It only works when explicitly telling prettier to check for svelte files with for example
src/**/*.{ts,svelte}
instead of.
.Reproduction
pnpm create svelte@latest
and make sure to add prettier for code formattingpnpm install
pnpm format
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: