mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 05:47:45 +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"
|
"./plugins/styleguide/test/javascripts"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"**/*.hbs",
|
|
||||||
"app/assets/javascripts/discourse/tests/unit/utils/decorators-test.js",
|
"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": {
|
"glint": {
|
||||||
"environment": [
|
"environment": [
|
||||||
"ember-loose",
|
"ember-loose",
|
||||||
"ember-template-imports"
|
"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) } },
|
"include" => namespaces.flat_map { |ns, paths| paths.map { |p| relative(package_dir, p) } },
|
||||||
"exclude" => [
|
"exclude" => [
|
||||||
"**/*.hbs",
|
|
||||||
"app/assets/javascripts/discourse/tests/unit/utils/decorators-test.js", # Native class decorators - unsupported by ts/glint
|
"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
|
"app/assets/javascripts/discourse/tests/integration/component-templates-test.gjs", # hbs`` tagged templates - https://github.com/typed-ember/glint/issues/705
|
||||||
],
|
],
|
||||||
"glint" => {
|
"glint" => {
|
||||||
"environment" => %w[ember-loose ember-template-imports],
|
"environment" => %w[ember-loose ember-template-imports],
|
||||||
|
"checkStandaloneTemplates" => false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user