Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 582 Bytes

no-yield-only.md

File metadata and controls

40 lines (24 loc) · 582 Bytes

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:

{{yield}}
   {{yield}}

This rule allows the following:

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

Migration

  • delete all files that are flagged by this rule

References