Assignment used as a conditional test
Control-flow conditions should compare values, not perform assignments.
#Metadata
#Why it matters
Using `=` where `===` was intended is a common defect; assignments in conditions also obscure data flow.
#Remediation
Use a comparison operator or move the assignment before the condition. Note that the parser may not preserve extra grouping parentheses around the assignment.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.correctness.assignment-in-condition.rule.yaml.