-
Notifications
You must be signed in to change notification settings - Fork 12
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
plugin is parsing JS comments and throws errors #84
Open
hmajoros opened this issue
Jul 28, 2023
· 2 comments
· Fixed by ember-cli/eslint-plugin-ember#1920 or ember-cli/eslint-plugin-ember#1942
Open
plugin is parsing JS comments and throws errors #84
hmajoros opened this issue
Jul 28, 2023
· 2 comments
· Fixed by ember-cli/eslint-plugin-ember#1920 or ember-cli/eslint-plugin-ember#1942
Comments
Thanks @hmajoros . I won't be able to look into this for a few weeks, but if someone has time to investigate, I'd look into...
...to see what the root cause is. |
Can you confirm this is still an issue with the latest version? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JS comments are being parsed by the plugin, and if the plugin finds invalid syntax, it throws errors. This is common in our codebase when people write example usages of a component invocation, and it even catches on some JSDoc comments. really, any JS comment with
{{
will attempt to be parsed by the plugin.example: this JSDoc comment with a type annotation containing an object, which looks like a double-curly template invocation:
this breaks the prettier plugin
something about the double-curly in the comment block is throwing off prettier, because when i delete that line it works fine
recommendation: just don't parse the contents of JS comment blocks
Originally posted by @hmajoros in #42 (comment)
The text was updated successfully, but these errors were encountered: