Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.01 KB

File metadata and controls

49 lines (35 loc) · 1.01 KB

ember/template-no-yield-block-params-to-else-inverse

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

Disallow yielding block params to else or inverse blocks.

Yielding block params (positional arguments) to else or inverse blocks doesn't work as expected. The params are not available in the inverse block.

Examples

This rule forbids the following:

<template>
  {{yield 'some' 'param' to='else'}}
</template>
<template>
  {{yield 'some' 'param' to='inverse'}}
</template>

This rule allows the following:

<template>
  {{yield}}
</template>
<template>
  {{yield 'some' 'param'}}
</template>
<template>
  {{yield to='inverse'}}
</template>

References