DEV: Configure glint hbs checking (#29479)

Check *.hbs, but skip 'standalone' template. This gives us working glint in colocated templates, without a ton of errors from the standalone templates which Glint can't map to the relevant component/controller
This commit is contained in:
David Taylor 2024-10-30 15:44:33 +00:00 committed by GitHub
parent 430c42acde
commit 852ff18fb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -119,14 +119,14 @@
"./plugins/styleguide/test/javascripts"
],
"exclude": [
"**/*.hbs",
"app/assets/javascripts/discourse/tests/unit/utils/decorators-test.js",
"app/assets/javascripts/discourse/tests/integration/component-templates-test.gjs",
"app/assets/javascripts/discourse/tests/integration/component-templates-test.gjs"
],
"glint": {
"environment": [
"ember-loose",
"ember-template-imports"
]
],
"checkStandaloneTemplates": false
}
}

View File

@ -40,12 +40,12 @@ def write_config(package_dir, extras: {})
},
"include" => namespaces.flat_map { |ns, paths| paths.map { |p| relative(package_dir, p) } },
"exclude" => [
"**/*.hbs",
"app/assets/javascripts/discourse/tests/unit/utils/decorators-test.js", # Native class decorators - unsupported by ts/glint
"app/assets/javascripts/discourse/tests/integration/component-templates-test.gjs", # hbs`` tagged templates - https://github.com/typed-ember/glint/issues/705
],
"glint" => {
"environment" => %w[ember-loose ember-template-imports],
"checkStandaloneTemplates" => false,
},
}