Disallows DOM event handler attributes in templates.
Inline event handlers like onclick="..." are an older pattern that should be replaced with the {{on}} modifier for better Ember integration and testability.
This rule disallows the use of inline DOM event handler attributes like onclick, onsubmit, etc.
Examples of incorrect code for this rule:
<template>
<button onclick="alert('test')">Click</button>
</template><template>
<div onmousedown="handleEvent()">Content</div>
</template><template>
<form onsubmit="return false;">Form</form>
</template>Examples of correct code for this rule:
<template>
<button {{on "click" this.handleClick}}>Click</button>
</template><template>
<input {{on "input" this.handleInput}} />
</template><template>
<form {{on "submit" this.handleSubmit}}>Form</form>
</template>Replace:
<button onclick="alert('clicked')">With:
<button {{on "click" this.handleClick}}>