diff --git a/eslint/locale.js b/eslint/locale.js index f27f160b07..1b19066ec7 100644 --- a/eslint/locale.js +++ b/eslint/locale.js @@ -102,7 +102,7 @@ function theRuleBody(context,node) { // sometimes we get MemberExpression nodes that have a // *descendent* with the right identifier: skip them, we'll get // the right ones as well - if (node.object?.name != 'i18n') { + if (node.object?.name !== 'i18n') { return; }