We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
9.10.0
eslint-plugin-svelte
2.44.0
Does not work with any configuration, you can try the following example in the current docs.
Copy the following into the rules docs
<script> /* eslint svelte/indent: "error" */ function click() {} </script> <!-- ✓ GOOD --> <button type="button" on:click={click} class="my-button primally" > CLICK ME! </button> <!-- ✗ BAD --> <button type="button" on:click={click} class="my-button primally" > {#snippet example()} <div>Some code</div> {/snippet} {#if true} <div>Some other code</div> {/if} </button>
To have the indent of the {/snippet} and it's content (basically the div), be properly indented, as the if clause:
{/snippet}
div
if
The {/snippet} indent is not correctly updated
ESLint playground example
No response
The text was updated successfully, but these errors were encountered:
580e48a
Successfully merging a pull request may close this issue.
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
9.10.0
What version of
eslint-plugin-svelte
are you using?2.44.0
What did you do?
Does not work with any configuration, you can try the following example in the current docs.
Code example
Copy the following into the rules docs
What did you expect to happen?
To have the indent of the
{/snippet}
and it's content (basically thediv
), be properly indented, as theif
clause:Expected result
What actually happened?
The
{/snippet}
indent is not correctly updatedResults
Link to GitHub Repo with Minimal Reproducible Example
ESLint playground example
Additional comments
No response
The text was updated successfully, but these errors were encountered: