Rule: Disallow `{{unless}}`
See original GitHub issueGood:
{{#unless somePredicate}}
{{/unless}}
<div class="{{unless foo 'no-foo'}}"></div>
Bad:
{{#unless (and foo bar)}}
{{/unless}}
{{#unless foo}}
{{else}}
{{/unless}}
{{#if foo}}
{{else unless bar}}
{{/if}}
Mostly because it is impossible to reason about…
Issue Analytics
- State:
- Created 7 years ago
- Reactions:7
- Comments:15 (12 by maintainers)
Top Results From Across the Web
AWS::Events::Rule - AWS CloudFormation
Creates or updates the specified rule. Rules are enabled by default, or based on value of the state. You can disable a rule...
Read more >Attack surface reduction (ASR) rules reference - Microsoft Learn
Block executable files from running unless they meet a prevalence, age, or trusted list criterion. This rule blocks executable files, such as ....
Read more >Firewall rule actions and priorities - Deep Security Help Center
If you have no Allow rules in effect on a computer, all traffic is permitted unless it is specifically blocked by a Deny...
Read more >Rule 5. Serving and Filing Pleadings and Other Papers
If an action is begun by seizing property and no person is or need be named as a defendant, any service required before...
Read more >Rules | Stylelint
what the rule is checking, e.g. disallowed-list. Unless it applies to the whole source, then there is no first part. Avoid errors. You...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m actually ok with
unless
as long as there is noelse
clause.❤️