💼 This rule is enabled in the following configs: strict-gjs, strict-gts.
✅ The extends: 'plugin:ember/strict-gjs' and extends: 'plugin:ember/strict-gts' property in a configuration file enables this rule.
Disallow unused block parameters in templates.
This rule reports block parameters that are declared but never used within the block.
Examples of incorrect code for this rule:
<template>
{{#each items as |item|}}
Hello
{{/each}}
</template>
<template>
{{#each items as |item index|}}
{{item.name}}
{{/each}}
</template>Examples of correct code for this rule:
<template>
{{#each items as |item|}}
{{item.name}}
{{/each}}
</template>
<template>
{{#each items as |item index|}}
{{index}}: {{item.name}}
{{/each}}
</template>
<template>
{{#let user as |u|}}
{{u.name}}
{{/let}}
</template>