Open patricklx opened 11 months ago
mmm, just was testing this on astexplorer and its also not working... typescript can parse it, but joins in into the initializer
I think content tag should be able to parse at least the ones with the template+ missing semi
@ef4
that second case isn't valid even without <template>
like, you can't have
let a = 1
() => {}
You get:
Uncaught SyntaxError: invalid arrow-function arguments (parentheses around the arrow-function may help)
And following FireFox's advice:
let a = 1
(() => {})
Uncaught TypeError: 1 is not a function
(this is also more evidence that ASI is a bad idea (or at least one that didn't work out))
Made a failing test PR from the first example, tho: https://github.com/embroider-build/content-tag/pull/38
(which, I think makes sense, because you can't have <template></template>()
)
https://github.com/gitKrystan/prettier-plugin-ember-template-tag/pull/162