Closed mollykreis closed 1 year ago
We decided to turn off this rule. It triggers when you have lots of ngIf
statements in a flat hierarchy, which is not something we want to discourage.
@TrevorKarjanis to own turning this decision into a config change.
Close with #110.
I've noticed in a few different changes that the
@angular-eslint/template/cyclomatic-complexity
rule has to be disabled in Angular templates with too many elements containing*ngIf
statements.I don't think the rule should cause errors if too many independent (i.e. not nested) elements are conditionally shown/hidden within a component.
Example component