π Disallow negated expression in equality check.
πΌ This rule is enabled in the following configs: β
recommended, βοΈ unopinionated.
π‘ This rule is manually fixable by editor suggestions.
Using a negated expression in equality check is most likely a mistake.
// β
if (!foo === bar) {}// β
if (!foo !== bar) {}// β
if (foo !== bar) {}// β
if (!(foo === bar)) {}