📝 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)) {}