diff --git a/src/rules/utils.ts b/src/rules/utils.ts index e47a9bf7f..418080abb 100644 --- a/src/rules/utils.ts +++ b/src/rules/utils.ts @@ -904,9 +904,7 @@ const collectReferences = (scope: TSESLint.Scope.Scope) => { continue; } - if (def.type !== 'ImplicitGlobalVariable') { - locals.add(ref.name); - } + locals.add(ref.name); } for (const ref of currentScope.through) {