Skip to content

Commit

Permalink
fix(linter): rule symbol-description do not look into globals (#9142
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Sysix committed Feb 15, 2025
1 parent 6d15153 commit 1c1d2e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/rules/eslint/symbol_description.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl Rule for SymbolDescription {

if ident.name == "Symbol"
&& call_expr.arguments.len() == 0
&& ctx.is_reference_to_global_variable(ident)
&& ctx.scopes().root_unresolved_references().contains_key(ident.name.as_str())
{
ctx.diagnostic(symbol_description_diagnostic(call_expr.span));
}
Expand Down

0 comments on commit 1c1d2e6

Please sign in to comment.