oxc/crates/oxc_linter
overlookmotel 6285a02274 fix(linter): eslint/radix rule correctly check for unbound symbols (#5446)
`SymbolTable::get_symbol_id_from_name(name).is_none()` is not always correct, because it will return `false` if there is a binding *anywhere* in the AST with that name, whereas what we actually want to know is whether *this* `IdentifierReference` is referring to a global or not.

Instead, look up whether this reference is resolved or not using `SymbolTable::is_global_reference`.

The 3 test cases added were not working prior to this change.
2024-09-05 01:18:24 +00:00
..
examples refactor(linter): improve diagnostic labeling (#3960) 2024-06-29 05:19:22 +00:00
fixtures refactor(linter): replace Windows-style line breaks with Unix-style in test fixture (#4768) 2024-08-08 17:33:04 +00:00
src fix(linter): eslint/radix rule correctly check for unbound symbols (#5446) 2024-09-05 01:18:24 +00:00
tests
Cargo.toml refactor(linter): use "parsed pattern" in no_div_regex rule. (#5417) 2024-09-04 14:00:47 +00:00
CHANGELOG.md Release oxlint v0.9.2 (#5401) 2024-09-02 20:30:22 +08:00