Closed abdel-17 closed 4 months ago
8.56.0
eslint-plugin-svelte
2.63.0-next.5
ESlint fails to parse snippets whose arguments are function calls.
<script lang="ts"> import type { Snippet } from "svelte"; let { foo } = $props<{ foo: Snippet<[string]> }>(); function bar() { return "baz"; } </script> {@render foo(bar())}
Parsing should not fail.
https://github.com/sveltejs/eslint-plugin-svelte/assets/88583085/832869b9-2b9d-4a1f-b598-2972416e82c3
13:11 error Parsing error: ')' expected ✖ 1 problem (1 error, 0 warnings)
https://github.com/abdel-17/svelte-eslint-bug-reproduction
No response
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.56.0
What version of
eslint-plugin-svelte
are you using?2.63.0-next.5
What did you do?
ESlint fails to parse snippets whose arguments are function calls.
What did you expect to happen?
Parsing should not fail.
https://github.com/sveltejs/eslint-plugin-svelte/assets/88583085/832869b9-2b9d-4a1f-b598-2972416e82c3
What actually happened?
Link to GitHub Repo with Minimal Reproducible Example
https://github.com/abdel-17/svelte-eslint-bug-reproduction
Additional comments
No response