Why this matters
The 'with' statement makes code harder to understand and debug. It has been banned in strict mode since ES5 due to its unpredictable behavior.
Detect occurrences of the 'with' statement. This construct is banned in strict mode due to unpredictable behavior and makes debugging harder.
The 'with' statement makes code harder to understand and debug. It has been banned in strict mode since ES5 due to its unpredictable behavior.
Side-by-side examples engineers can pattern-match during review.
// (no example provided)// (no example provided)From the same buckets as this rule.
Check if loops use equality operators (== or !=) in termination conditions. These can lead to infinite loops if the condition is never met exactly. Instead, use relational operators like < or > for safer loop termination.