Skip to content

A platform for community discussion. Free, open, simple.

DEV: Configure glint hbs checking (#29479)

David Taylor852ff18fb94f
diff --git a/jsconfig.json b/jsconfig.json
index a306965a784..b0d4eab5072 100644
--- a/jsconfig.json
+++ b/jsconfig.json
@@ -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
}
}
diff --git a/script/build_jsconfig.rb b/script/build_jsconfig.rb
index 45d8b801c14..4bc2e717173 100644
--- a/script/build_jsconfig.rb
+++ b/script/build_jsconfig.rb
@@ -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,
},
}