ember/template-modifier-name-case
March 13, 2026 ยท View on GitHub
๐ง This rule is automatically fixable by the --fix CLI option.
HBS Only: This rule applies to classic
.hbstemplate files only (loose mode). It is not relevant forgjs/gtsfiles (strict mode), where these patterns cannot occur.
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>