# no-negation-in-equality-check 📝 Disallow negated expression in equality check. 💼 This rule is enabled in the following [configs](https://github.com/sindresorhus/eslint-plugin-unicorn#recommended-config): ✅ `recommended`, ☑️ `unopinionated`. 💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions). Using a negated expression in equality check is most likely a mistake. ## Examples ```js // ❌ if (!foo === bar) {} ``` ```js // ❌ if (!foo !== bar) {} ``` ```js // ✅ if (foo !== bar) {} ``` ```js // ✅ if (!(foo === bar)) {} ```