It is needlessly complex to invert the result of a boolean comparison. The opposite comparison should be made instead.

Note that this rule requires Node.js to be available during analysis.

Noncompliant Code Example

if (!(a === 2)) { ... }  // Noncompliant

Compliant Solution

if (a !== 2) { ... }