Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 816 Bytes

File metadata and controls

39 lines (26 loc) · 816 Bytes

ember/template-no-yield-to-default

💼 This rule is enabled in the following configs: strict-gjs, strict-gts.

Disallows yielding to the "default" block explicitly.

Rule Details

Using {{yield to="default"}} is unnecessary. Simply use {{yield}} instead.

Examples

Examples of incorrect code for this rule:

<template>
  {{yield to="default"}}
</template>

Examples of correct code for this rule:

<template>
  {{yield}}
</template>
<template>
  {{yield to="inverse"}}
</template>

References