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.
1 parent 5d32ccf commit 4239a7eCopy full SHA for 4239a7e
crates/oxc_linter/src/rules/eslint/no_redeclare.rs
@@ -85,7 +85,9 @@ impl Rule for NoRedeclare {
85
let name = ctx.scoping().symbol_name(symbol_id);
86
let decl_span = ctx.scoping().symbol_span(symbol_id);
87
let is_builtin = self.built_in_globals
88
- && (GLOBALS["builtin"].contains_key(name) || ctx.globals().is_enabled(name));
+ && (GLOBALS["builtin"].contains_key(name)
89
+ || ctx.globals().is_enabled(name)
90
+ || ctx.frameworks_options().has_global(name));
91
92
if is_builtin {
93
ctx.diagnostic(no_redeclare_as_builtin_in_diagnostic(name, decl_span));
0 commit comments