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
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,28 @@ module.exports = {
110
110
};
111
111
```
112
112
113
+
### Strict Template Linting (Optional)
114
+
115
+
For enhanced template linting in `gjs`/`gts` files, use the `strict-gjs` or `strict-gts` configs. These include additional template rules ported from `ember-template-lint`:
116
+
117
+
```javascript
118
+
// eslint.config.js
119
+
constember=require('eslint-plugin-ember');
120
+
121
+
module.exports= [
122
+
...ember.configs.recommended,
123
+
{
124
+
files: ['**/*.gts'],
125
+
extends: ['plugin:ember/strict-gts'],
126
+
},
127
+
{
128
+
files: ['**/*.gjs'],
129
+
extends: ['plugin:ember/strict-gjs'],
130
+
},
131
+
];
132
+
```
133
+
134
+
113
135
### rules applied to fcct templates
114
136
115
137
- semi rule, same as [prettier plugin](https://github.com/gitKrystan/prettier-plugin-ember-template-tag/issues/1)
@@ -160,6 +182,8 @@ rules in templates can be disabled with eslint directives with mustache or html
0 commit comments