mirror of
https://github.com/discourse/discourse.git
synced 2024-11-21 20:20:02 +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:
parent
430c42acde
commit
852ff18fb9
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user