Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 657 Bytes

File metadata and controls

30 lines (20 loc) · 657 Bytes

ember/template-missing-invokable

🔧 This rule is automatically fixable by the --fix CLI option.

Auto-fixes missing imports for helpers, modifiers, and components in your <template> tags.

If you refer to on without importing it:

<template>
  <button {{on "click" doSomething}}>Do Something</button>
</template>

The auto-fix will create the import:

import { on } from '@ember/modifier';
<template>
  <button {{on "click" doSomething}}>Do Something</button>
</template>

Examples

Config

  • invokables