Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 668 Bytes

no-yield-only.md

File metadata and controls

42 lines (25 loc) · 668 Bytes

no-yield-only

✅ The extends: 'recommended' property in a configuration file enables this rule.

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