Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 735 Bytes

File metadata and controls

49 lines (33 loc) · 735 Bytes

ember/template-no-yield-only

Templates that only contain a single {{yield}} instruction are not required and increase the total template payload size.

This rule warns about templates that only contain a single {{yield}} instruction.

Examples

This rule forbids the following:

<template>
  {{yield}}
</template>
<template>

   {{yield}}

</template>

This rule allows the following:

<template>
  {{yield something}}
</template>
<template>
  <div>{{yield}}</div>
</template>

Migration

  • delete all files that are flagged by this rule

References