sveltejs / eslint-plugin-svelte

ESLint plugin for Svelte using AST
https://sveltejs.github.io/eslint-plugin-svelte/
MIT License
306 stars 38 forks source link

[bug][svelte/indent] Invalid indentation for children and snippet closing tag #863

Closed mikededo closed 1 month ago

mikededo commented 1 month ago

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 ```svelte ```

What did you expect to happen?

To have the indent of the {/snippet} and it's content (basically the div), be properly indented, as the if clause:

Expected result ```svelte ```

What actually happened?

The {/snippet} indent is not correctly updated

Results ```svelte ```

Link to GitHub Repo with Minimal Reproducible Example

ESLint playground example

Additional comments

No response