oxc/crates
Cam McHenry ff88c1fc07
fix(linter): Don't mark binding rest elements as unused in TS function overloads (#5470)
- Fixes https://github.com/oxc-project/oxc/issues/5406

This implements a fix for the `BindingRestElement` symbol, which is
currently unhandled and gets automatically marked as unused. If we
happen to find that it is a child of declaration, then we will
automatically allow the binding rest element.

The code for this was based on what we currently do in
`is_allowed_param_because_of_method`:
5187f384cb/crates/oxc_linter/src/rules/eslint/no_unused_vars/allowed.rs (L258)

I opted not to refactor this to re-use the same code though, as I think
the duplication is still incidental and the implementations could
diverge in the future.
2024-09-06 08:30:28 +01:00
..
oxc feat(oxc): conditional expose oxc_cfg in oxc crate (#5524) 2024-09-06 14:07:43 +08:00
oxc_allocator chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
oxc_ast chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
oxc_ast_macros refactor(ast): simplify ContentEq trait definition. (#5468) 2024-09-05 05:36:51 +00:00
oxc_cfg Release crates v0.26.0 (#5418) 2024-09-03 10:36:02 +08:00
oxc_codegen chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
oxc_diagnostics fix(diagnostics): ignore Interrupted and BrokenPipe errors while printing (#5526) 2024-09-06 06:38:47 +00:00
oxc_index chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
oxc_isolated_declarations chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
oxc_language_server
oxc_linter fix(linter): Don't mark binding rest elements as unused in TS function overloads (#5470) 2024-09-06 08:30:28 +01:00
oxc_macros chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
oxc_mangler Release crates v0.26.0 (#5418) 2024-09-03 10:36:02 +08:00
oxc_minifier chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
oxc_module_lexer Release crates v0.26.0 (#5418) 2024-09-03 10:36:02 +08:00
oxc_parser chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
oxc_prettier fix(ast, codegen, linter): panics in fixers. (#5431) 2024-09-05 05:59:22 +00:00
oxc_regular_expression chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
oxc_semantic fix(semantic): incorrect reference when MemberExpression used in TSPropertySignature (#5525) 2024-09-06 06:24:45 +00:00
oxc_sourcemap Release crates v0.26.0 (#5418) 2024-09-03 10:36:02 +08:00
oxc_span chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
oxc_syntax chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
oxc_transformer perf(transformer): memoize rope instance (#5518) 2024-09-06 06:08:49 +00:00
oxc_traverse chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
oxc_wasm feat(wasm): turn on all transform options 2024-09-01 00:24:10 +08:00