You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My initial assumption is that snippets in Svelte 5 act like hoisted functions. However, it appears that ESLint does not recognize them as such. As a result, when these snippets are utilized within a <script> tag, ESLint mistakenly identifies them as undefined. Moreover, following their declaration, ESLint incorrectly marks them as unused.
The text was updated successfully, but these errors were encountered:
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.36.0-next.4
What did you do?
Configuration
What did you expect to happen?
No errors.
What actually happened?
ESLint reported two contractory errors:
Link to GitHub Repo with Minimal Reproducible Example
https://github.com/nicksulkers/eslint-svelte5-snippets-bug-repro
Additional comments
My initial assumption is that snippets in Svelte 5 act like hoisted functions. However, it appears that ESLint does not recognize them as such. As a result, when these snippets are utilized within a <script> tag, ESLint mistakenly identifies them as undefined. Moreover, following their declaration, ESLint incorrectly marks them as unused.
The text was updated successfully, but these errors were encountered: