Skip to content

Commit 2ef166a

Browse files
committed
filling in initial docs to get passing tests
1 parent fbeee03 commit 2ef166a

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ rules in templates can be disabled with eslint directives with mustache or html
262262
| [no-tracked-properties-from-args](docs/rules/no-tracked-properties-from-args.md) | disallow creating @tracked properties from this.args || | |
263263
| [template-indent](docs/rules/template-indent.md) | enforce consistent indentation for gts/gjs templates | | 🔧 | |
264264
| [template-no-let-reference](docs/rules/template-no-let-reference.md) | disallow referencing let variables in \<template\> | ![gjs logo](/docs/svgs/gjs.svg) ![gts logo](/docs/svgs/gts.svg) | | |
265+
| [template-missing-invokable](docs/rules/template-missing-invokable.md) | auto-fix to import missing helpers, modifiers, or components from a configured list in \<template\> | ![gjs logo](/docs/svgs/gjs.svg) ![gts logo](/docs/svgs/gts.svg) | | |
266+
265267

266268
### jQuery
267269

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# ember/template-missing-invokable
2+
3+
Auto-fixes missing imports for helpers, modifiers, and components in your \<template> tags.
4+
5+
If you refer to `on` without importing it:
6+
7+
```gjs
8+
<template>
9+
<button {{on "click" doSomething}}>Do Something</button>
10+
</template>
11+
```
12+
13+
The auto-fix will create the import:
14+
15+
```gjs
16+
import { on } from '@ember/modifier';
17+
<template>
18+
<button {{on "click" doSomething}}>Do Something</button>
19+
</template>
20+
```

0 commit comments

Comments
 (0)