Rule: template-conditional-complexity

The condition complexity shouldn’t exceed a rational limit in a template.

Rationale

An important complexity complicates the tests and the maintenance.

Notes:
TS Only

Config

Determine the maximum number of Boolean operators allowed.

Examples
"template-conditional-complexity": true
"template-conditional-complexity": [true, 4]
Schema
{
  "items": {
    "type": "string"
  },
  "maxLength": 1,
  "minLength": 0,
  "type": "array"
}