prettier-eslint icon indicating copy to clipboard operation
prettier-eslint copied to clipboard

Can you support Svelte?

Open NoelJacob opened this issue 5 years ago • 1 comments

NoelJacob avatar Mar 27 '21 17:03 NoelJacob

You need to provide more information, whether you are using the CLI or an editor extension. That being said, Svelte SFCs are the same as vue that is if you move your markup to <template></template> and set the prettier.config.js parser to vue for *.svelte.

basaran avatar Apr 24 '21 00:04 basaran

Did you try https://github.com/sveltejs/prettier-plugin-svelte and https://github.com/ota-meshi/eslint-plugin-svelte?

JounQin avatar Aug 15 '22 04:08 JounQin

I created a pull request for Svelte files: https://github.com/prettier/prettier-eslint/pull/950

robertheessels avatar Jan 18 '24 15:01 robertheessels