mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:51:07 +08:00
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:
@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user