prettier-plugin-svelte
prettier-plugin-svelte copied to clipboard
Format your svelte components using prettier.
Not sure how to give any useful info here. But when using this plugin with pnpm prettier doesn't seem to detect it. I don't know what the root cause is,...
Please see https://github.com/sveltejs/svelte/issues/3550 for details, though is closed there. I copied the original bug report here, thanks **Describe the bug** With [this template](https://github.com/SteveALee/svelte-code-cypress-project) where we want ESLint to co exist...
example svelte project using the default template: https://github.com/theweekendgeek/svelte-prettier-example) This s happening in WebStorm, I could not yet reproduce this in Visual Studio Code. I would assume that other IDEs from...
### Describe the bug Hello, I think when the html tag is empty, it should use self-closing on format. When I'm writing code, sometimes I write just boilerplate of HTML...
``` echo 'function x() { 2 + 2 }' | prettier --plugin-search-dir --parser svelte; echo $? ``` We get the formatted output and a 0 (success) exit code, as expected:...
Bumps [svelte](https://github.com/sveltejs/svelte) from 3.47.0 to 3.49.0. Changelog Sourced from svelte's changelog. 3.49.0 Improve performance of string escaping during SSR (#5701) Add ComponentType and ComponentProps convenience types (#6770) Add support for...
Obligatory https://stackoverflow.com/a/1732454/1422124 Took me a while to track this down, because prettier was also swallowing the error message (I'll investigate and open an issue in the appropriate repo). Essentially the...
I tried to make it work in the browser as described here https://prettier.io/docs/en/browser.html but didn't worked. I would like to use it in the REPL component. Does anyone knows something...
As demonstrated here: https://github.com/raurir/svelte-code-linting#autoformatting Similar if not identical to #60
Steps to reproduce: Create a new project with the following versions in `devDependencies` ```json "devDependencies": { "prettier": "^2.7.1", "prettier-plugin-svelte": "^2.7.0", } ``` yarn version ```bash $ yarn --version 3.2.1 ```...