Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 530 Bytes

File metadata and controls

31 lines (21 loc) · 530 Bytes

ember/template-no-bare-yield

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>