typed-ember / glint

TypeScript powered tooling for Glimmer templates
https://typed-ember.gitbook.io/glint
MIT License
108 stars 50 forks source link

GJS parsed as JSX #694

Closed NullVoxPopuli closed 3 months ago

NullVoxPopuli commented 5 months ago

I believe this'd be fixed by using content-tag

Evidence:

[lint:types] app/templates/application.gjs:38:3 - error TS2657: JSX expressions must have one parent element.
[lint:types] 
[lint:types]  38   <template>
[lint:types]       ~~~~~~~~~~
[lint:types]  39     {{pageTitle "is Polaris ready yet?"}}
[lint:types]     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[lint:types] ... 
[lint:types]  97 
[lint:types]     
[lint:types]  98     <Footer />
[lint:types]     ~~~~~~~~~~~~~~
[lint:types] 
[lint:types] app/templates/application.gjs:39:17 - error TS1005: ',' expected.
[lint:types] 
[lint:types] 39     {{pageTitle "is Polaris ready yet?"}}

From: https://github.com/NullVoxPopuli/is-polaris-ready-yet/blob/40e70a330dcd94110910aa4dc1b29a757e90ec90/package.json#L31