You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -247,6 +247,7 @@ rules in templates can be disabled with eslint directives with mustache or html
247
247
|[template-no-obsolete-elements](docs/rules/template-no-obsolete-elements.md)| disallow obsolete HTML elements ||||
248
248
|[template-no-outlet-outside-routes](docs/rules/template-no-outlet-outside-routes.md)| disallow {{outlet}} outside of route templates ||||
249
249
|[template-no-page-title-component](docs/rules/template-no-page-title-component.md)| disallow usage of ember-page-title component ||||
250
+
|[template-require-strict-mode](docs/rules/template-require-strict-mode.md)| require templates to be in strict mode ||||
250
251
|[template-require-valid-named-block-naming-format](docs/rules/template-require-valid-named-block-naming-format.md)| require valid named block naming format || 🔧 ||
251
252
|[template-self-closing-void-elements](docs/rules/template-self-closing-void-elements.md)| require self-closing on void elements || 🔧 ||
> **HBS Only**: This rule applies to classic `.hbs` template files only (loose mode). It is not relevant for `gjs`/`gts` files (strict mode), where these patterns cannot occur.
4
+
5
+
<!-- end auto-generated rule header -->
6
+
7
+
Require templates to be in strict mode.
8
+
9
+
Ember's Polaris edition component authoring format is template tag, which makes
10
+
templates follow "strict mode" semantics.
11
+
12
+
This rule requires all templates to use strict mode (template tag). Effectively this
13
+
means you may only have template content in `.gjs`/`.gts` files, not in `.hbs` or
0 commit comments