Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
What version of ESLint are you using?
8.33.0
What version of eslint-plugin-svelte
are you using?
2.15.0
What did you do?
<script lang="ts">
import MyComponent from "./MyComponent.svelte"
</script>
<MyComponent>
<span
slot="something"
let:myVar
class:myClass={myVar} />
</MyComponent>
What did you expect to happen?
I expected no eslint error because the myVar
variable is actually defined and used.
What actually happened?
I get the following two wrong eslint errors:
8:9: 'myVar' is defined but never used. (no-unused-vars)
9:20: 'myVar' is not defined. (no-undef)
Link to GitHub Repo with Minimal Reproducible Example
Additional comments
No response