✅ 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 wildcarddenylist
-- array -['or']
for specific helpers /[]
for nonemaxHelpers
-- number - use -1 for no limit