# ember/template-require-has-block-helper 💼 This rule is enabled in the 📋 `template-lint-migration` [config](https://github.com/ember-cli/eslint-plugin-ember#-configurations). 🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix). In Ember 3.26 the properties `hasBlock` and `hasBlockParams` were deprecated. Their replacement is to use `has-block` and `has-block-params` helpers instead. This rule prevents the usage of `hasBlock` and `hasBlockParams` and suggests using `has-block` or `has-block-params` instead. For more information about this deprecation you can view the [RFC](https://github.com/emberjs/rfcs/blob/master/text/0689-deprecate-has-block.md) or its entry on the [Deprecations page](https://deprecations.emberjs.com/v3.x/#toc_has-block-and-has-block-params). ## Examples This rule **forbids** the following: ```gjs ``` ```gjs ``` This rule **allows** the following: ```gjs ``` ```gjs ``` ## Migration - `{{hasBlock}}` -> `{{has-block}}` - `{{hasBlockParams}}` -> `{{has-block-params}}` - `{{#if hasBlock}} {{/if}}` -> `{{#if (has-block)}} {{/if}}` - `{{#if (hasBlock "inverse")}} {{/if}}` -> `{{#if (has-block "inverse")}} {{/if}}` - `{{#if hasBlockParams}} {{/if}}` -> `{{#if (has-block-params)}} {{/if}}` - `{{#if (hasBlockParams "inverse")}} {{/if}}` -> `{{#if (has-block-params "inverse")}} {{/if}}` ## References - [RFC](https://github.com/emberjs/rfcs/blob/master/text/0689-deprecate-has-block.md) - [Deprecation information](https://deprecations.emberjs.com/v3.x/#toc_has-block-and-has-block-params)