We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Given the following invalid code (invalid because an {:else} block comes before a {:else if} block):
{#if condition === 0} A {:else} REMOVED {:else if condition === 1} ELIF {/if}
Running prettier with prettier-plugin-svelte enabled on this file removes the section marked REMOVED.
prettier-plugin-svelte
This can lead to code being deleted if a file is saved and auto-formatted mid-way through refactoring.
I would expect that formatting a Svelte file with syntax errors had no effect, which is the behaviour for JavaScript.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given the following invalid code (invalid because an {:else} block comes before a {:else if} block):
Running prettier with
prettier-plugin-svelte
enabled on this file removes the section marked REMOVED.This can lead to code being deleted if a file is saved and auto-formatted mid-way through refactoring.
I would expect that formatting a Svelte file with syntax errors had no effect, which is the behaviour for JavaScript.
The text was updated successfully, but these errors were encountered: