From fe4e7bcfa6d427f4abc4e94446a553f0a68b1fa1 Mon Sep 17 00:00:00 2001 From: fregante Date: Sun, 20 Oct 2024 17:04:28 +0700 Subject: [PATCH] Fix typo in `no-negation-in-equality-check`'s error Closes https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2483 --- rules/no-negation-in-equality-check.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/no-negation-in-equality-check.js b/rules/no-negation-in-equality-check.js index dd5df5aa57..170bdfcfbf 100644 --- a/rules/no-negation-in-equality-check.js +++ b/rules/no-negation-in-equality-check.js @@ -12,7 +12,7 @@ const { const MESSAGE_ID_ERROR = 'no-negation-in-equality-check/error'; const MESSAGE_ID_SUGGESTION = 'no-negation-in-equality-check/suggestion'; const messages = { - [MESSAGE_ID_ERROR]: 'Negated expression in not allowed in equality check.', + [MESSAGE_ID_ERROR]: 'Negated expression is not allowed in equality check.', [MESSAGE_ID_SUGGESTION]: 'Switch to \'{{operator}}\' check.', };