Skip to main content

What it flags

A condition uses = where === was probably meant, so it overwrites the variable and tests the assigned value. This includes ternary conditions such as (value = expected) ? first : second. Doubled parentheses, assignments from calls and loop conditions that read and assign are accepted.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: