prettier is not picking up .svelte files without specifying them explicitly

Viewed 8

I've created a svelte project and wanted to use prettier. I have prettier svelte plugin.

pnpm exec prettier --write .

will only pick up js and html files.

pnpm exec prettier --write .src/routes/+page.svelte

or

pnpm exec prettier --write . **.svelte 

will work correctly and pick up all the files.

isn't the expected behavior or prettier to pick up svelte files too? Why doesn't it pick them up?

0 Answers
Related