Require templates to be in strict mode.
Templates should use the strict mode syntax (template tag format) rather than loose template files. Strict mode templates (.gjs / .gts files) provide better integration with JavaScript and type checking.
This rule forbids the following:
(in a .hbs file)
This rule allows the following:
(in a .gjs or .gts file)
Strict mode templates provide:
- Better integration with JavaScript tooling
- Type safety in TypeScript projects
- Clearer component boundaries
- Easier refactoring and navigation