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
8.41.0
eslint-plugin-svelte
2.30.0
Wrapper.svelte <slot /> Item.svelte <script lang="ts"> import Wrapper from './Wrapper.svelte'; </script> <Wrapper> {@const text = 'text'} <button> {text} </button> </Wrapper>
It shouldn't return an error
eslint . src/routes/+page.svelte 0:0 error Parsing error: Cannot read properties of undefined (reading 'range')
https://github.com/Iuriy-Budnikov/eslint-plugin-svelte-bug
It looks like it doesn't support {@const text = 'text'} inside the wrapper component with slot
The text was updated successfully, but these errors were encountered:
Thank you for reporting the issue. I think this is parser bug, so I will transfer the issue to svelte-eslint-parser.
svelte-eslint-parser
Sorry, something went wrong.
{@const}
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?
8.41.0
What version of
eslint-plugin-svelte
are you using?2.30.0
What did you do?
What did you expect to happen?
It shouldn't return an error
What actually happened?
Link to GitHub Repo with Minimal Reproducible Example
https://github.com/Iuriy-Budnikov/eslint-plugin-svelte-bug
Additional comments
It looks like it doesn't support {@const text = 'text'} inside the wrapper component with slot
The text was updated successfully, but these errors were encountered: