Open hmajoros opened 1 year ago
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?
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 https://github.com/gitKrystan/prettier-plugin-ember-template-tag/issues/42#issuecomment-1611418303