Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1002 Bytes

File metadata and controls

39 lines (24 loc) · 1002 Bytes

ember/template-modifier-name-case

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

Requires dasherized names for modifiers.

Modifiers should use dasherized names when being invoked, not camelCase. This is a stylistic rule that will prevent you from using camelCase modifiers, requiring you to use dasherized modifier names instead.

Examples

This rule forbids the following:

<template><div {{didInsert}}></div></template>
<template><div {{onFocus}}></div></template>

This rule allows the following:

<template><div {{did-insert}}></div></template>
<template><div {{on-focus}}></div></template>

See Also

References