We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
() => void
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
There's a weird eslint bug with parsing snippets that contain () => void, even if it is commented out.
<script lang="ts"> </script> {#snippet editor_button(foo: { // onclick: () => void, })} {/snippet}
Parsing error: '}' expected.eslint
<script lang="ts"> </script> {#snippet editor_button(foo: { onclick: () => void, })} {/snippet}
Parsing error: '=>' expected.eslint
No response
System: OS: macOS 14.2 CPU: (8) arm64 Apple M1 Pro Memory: 108.48 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node npm: 10.8.2 - ~/.nvm/versions/node/v20.17.0/bin/npm pnpm: 9.7.0 - ~/Library/pnpm/pnpm bun: 1.1.18 - ~/.bun/bin/bun Browsers: Chrome: 128.0.6613.138 Safari: 17.2 npmPackages: svelte: 5.0.0-next.244 => 5.0.0-next.244
blocking upgrade
The text was updated successfully, but these errors were encountered:
This feels like a https://github.com/sveltejs/eslint-plugin-svelte issue or a https://github.com/sveltejs/svelte-eslint-parser issue considering that svelte parse this correctly (i can't move it there unfortunately)
Sorry, something went wrong.
Duplicate of #872 It has already been fixed.
No branches or pull requests
Describe the bug
There's a weird eslint bug with parsing snippets that contain
() => void
, even if it is commented out.Reproduction
Parsing error: '}' expected.eslint
Parsing error: '=>' expected.eslint
Logs
No response
System Info
Severity
blocking upgrade
The text was updated successfully, but these errors were encountered: