We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
symbol-description
globals
1 parent 8dddf89 commit 8e959fbCopy full SHA for 8e959fb
1 file changed
crates/oxc_linter/src/rules/eslint/symbol_description.rs
@@ -59,7 +59,7 @@ impl Rule for SymbolDescription {
59
60
if ident.name == "Symbol"
61
&& call_expr.arguments.len() == 0
62
- && ctx.is_reference_to_global_variable(ident)
+ && ctx.scopes().root_unresolved_references().contains_key(ident.name.as_str())
63
{
64
ctx.diagnostic(symbol_description_diagnostic(call_expr.span));
65
}
0 commit comments