oxc/crates
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
..
oxc Release crates v0.26.0 (#5418) 2024-09-03 10:36:02 +08:00
oxc_allocator Release crates v0.26.0 (#5418) 2024-09-03 10:36:02 +08:00
oxc_ast refactor(ast): renumber JSXMemberExpressionObject discriminants (#5464) 2024-09-04 22:59:53 +00:00
oxc_ast_macros feat(ast): add ContentEq trait. (#5427) 2024-09-04 11:53:50 +00:00
oxc_cfg Release crates v0.26.0 (#5418) 2024-09-03 10:36:02 +08:00
oxc_codegen refactor(ast): remove IdentifierName from TSThisParameter (#5327) 2024-09-04 12:46:53 +00:00
oxc_diagnostics Release crates v0.26.0 (#5418) 2024-09-03 10:36:02 +08:00
oxc_index feat(index): impl rayon related to trait for IndexVec (#5421) 2024-09-03 12:01:57 +00:00
oxc_isolated_declarations Release crates v0.26.0 (#5418) 2024-09-03 10:36:02 +08:00
oxc_language_server refactor(parser)!: remove builder pattern from Parser struct (#5000) 2024-08-20 07:40:25 +00:00
oxc_linter fix(linter): eslint/radix rule correctly check for unbound symbols (#5446) 2024-09-05 01:18:24 +00:00
oxc_macros chore(linter): update docs for declare_oxc_lint! (#4825) 2024-08-11 15:27:54 +00:00
oxc_mangler Release crates v0.26.0 (#5418) 2024-09-03 10:36:02 +08:00
oxc_minifier feat(minifier): remove parenthesized expression for dce (#5439) 2024-09-04 12:58:39 +00:00
oxc_module_lexer Release crates v0.26.0 (#5418) 2024-09-03 10:36:02 +08:00
oxc_parser feat(parser): add syntax error for hyphen in JSXMemberExpression <Foo.bar-baz /> (#5440) 2024-09-04 14:09:06 +00:00
oxc_prettier feat(ast, parser): add oxc_regular_expression types to the parser and AST. (#5256) 2024-09-03 02:36:37 +00:00
oxc_regular_expression feat(ast): add ContentEq trait. (#5427) 2024-09-04 11:53:50 +00:00
oxc_semantic Release crates v0.26.0 (#5418) 2024-09-03 10:36:02 +08:00
oxc_sourcemap Release crates v0.26.0 (#5418) 2024-09-03 10:36:02 +08:00
oxc_span feat(ast): add ContentEq trait. (#5427) 2024-09-04 11:53:50 +00:00
oxc_syntax feat(ast): add ContentEq trait. (#5427) 2024-09-04 11:53:50 +00:00
oxc_transformer refactor(transformer/typescript): move all entry points to implementation of Traverse trait (#5422) 2024-09-03 18:26:20 +00:00
oxc_traverse refactor(ast): remove IdentifierName from TSThisParameter (#5327) 2024-09-04 12:46:53 +00:00
oxc_wasm feat(wasm): turn on all transform options 2024-09-01 00:24:10 +08:00