Skip to content
New issue

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

/**/ comments don't work in template code #329

Closed
2 tasks done
DetachHead opened this issue Dec 19, 2022 · 0 comments · Fixed by sveltejs/svelte-eslint-parser#262
Closed
2 tasks done

/**/ comments don't work in template code #329

DetachHead opened this issue Dec 19, 2022 · 0 comments · Fixed by sveltejs/svelte-eslint-parser#262

Comments

@DetachHead
Copy link
Contributor

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.30.0

What version of eslint-plugin-svelte are you using?

2.14.1

What did you do?

Configuration n/a
{foo(/**/)}

What did you expect to happen?

no error, as this is valid javascript

What actually happened?

[2:21]: Parsing error: Unexpected token ;

Link to GitHub Repo with Minimal Reproducible Example

https://ota-meshi.github.io/eslint-plugin-svelte/playground/#eJyrVkrOT0lVslKqTsvP19DX0tLXrFWqBQBPdQaV

Additional comments

related: sveltejs/svelte#7456

however that issue is only for comments outside of the expression (ie. {foo() /**/}). comments inside the expression like {foo(/**/)} work correctly in the svelte compiler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant