typed-ember / glint

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

checkStandaloneTemplates not respected if disabled and no environment provided for hbs files #755

Open elwayman02 opened 2 months ago

elwayman02 commented 2 months ago

Take this tsconfig, for example:

  "glint": {
    "environment": [
      "ember-template-imports"
    ],
    "checkStandaloneTemplates": false
  }

The above config could be used to enable typechecking for GTS files while not enabling it for legacy Ember components using HBS files. By setting checkStandaloneTemplates to false, we explicitly indicate that Glint should not be typechecking standalone hbs files, either.

Expected Behavior:

Glint should typecheck