✅ The extends: 'recommended'
property in a configuration file enables this rule.
This rule strongly advises against {{unless}}
blocks in the following situations:
- With other block helpers (e.g.
{{else}}
,{{else if}}
) - With template helpers in the condition
Common solutions are to use an {{if}}
block, or refactor potentially confusing logic within the template.
This rule forbids the following:
This rule allows the following:
The following values are valid configuration:
- boolean --
true
for enabled /false
for disabled - object --
allowlist
-- array -['or']
for specific helpers /[]
for wildcardwhitelist
-- deprecated, useallowlist
. If both are provided,whitelist
will be ignored.denylist
-- array -['or']
for specific helpers /[]
for noneblacklist
-- deprecated, usedenylist
. If both are provided,blacklist
will be ignored.maxHelpers
-- number - use -1 for no limit