ember/template-no-bare-yield
March 13, 2026 ยท View on GitHub
Disallow {{yield}} without parameters outside of contextual components.
Rule Details
This rule enforces passing parameters to {{yield}} to make component APIs more explicit.
Examples
Examples of incorrect code for this rule:
<template>
{{yield}}
</template>
Examples of correct code for this rule:
<template>
{{yield (Object greeting="hello there")}}
</template>
<template>
{{yield @model}}
</template>