oxc/crates
tbashiyy b73cfd992e
fix(linter): fix is_method_call with parentheses and chain expression (#7095)
I fixed `is_method_call` behavior in specific case below.

For example, when we use `is_method_call(call_expr, None,
Some(&["apply"]), Some(1), Some(1))` for
[`(a?.b.apply)(args)`](https://playground.oxc.rs/#eNpFjkEKg0AMRe+SVQviAdx057alN4gaZWBMJJmxFfHunVG0q+Qnn//fCi1UcMNH2ZQ4TX6531AHu0MBAtUKGjkPWzjgF6qgkQrwjsO5WysTXWIZG/GnCopsvegIVY/eaCtgQjXSnIjey+dNISo/YzDXUR25DU5S3+5OZqVknumFSmxHasrI7XtG2q+K89BKRwNl5iRGx653/xcHFV+n3gwwkzZiCf1g27YfdH1fTA==),
we cannot check correctly.

This is because we don't consider `call_expr` has parentheses and chain
expression.
2024-11-04 11:12:37 +08:00
..
oxc fix(transformer): fix typescript globals being recognized as globals (#7100) 2024-11-03 13:00:54 +00:00
oxc_allocator release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_ast refactor(ast)!: remove AstBuilder::*_from_* methods (#7073) 2024-11-02 01:22:56 +00:00
oxc_ast_macros feat(ast): Label AST fields with #[ts] (#6987) 2024-10-30 03:44:05 +00:00
oxc_cfg release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_codegen feat(codegen): always print legal comments on its own line (#7089) 2024-11-02 15:55:23 +08:00
oxc_data_structures refactor(data_structures): make all methods of NonNull shim #[inline(always)] (#7024) 2024-10-30 13:00:24 +00:00
oxc_diagnostics feat(rust): use oxc-miette (#6938) 2024-10-27 13:30:20 +00:00
oxc_ecmascript fix(ecmascript): allow getting PropName for object methods (#6967) 2024-10-28 09:34:27 +00:00
oxc_estree release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_index release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_isolated_declarations refactor(isolated_declarations): do not use AstBuilder::*_from_* methods (#7071) 2024-11-02 01:22:55 +00:00
oxc_language_server feat(linter): do not bail for unmatched rules yet (#7093) 2024-11-03 11:18:36 +08:00
oxc_linter fix(linter): fix is_method_call with parentheses and chain expression (#7095) 2024-11-04 11:12:37 +08:00
oxc_macros feat(linter): support user-configurable secrets for oxc-security/api-keys (#5938) 2024-10-28 18:55:19 +00:00
oxc_mangler release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_minifier refactor(minifier): do not use AstBuilder::*_from_* methods (#7072) 2024-11-02 01:22:56 +00:00
oxc_module_lexer fix(module_lexer): add missing export * from 'foo'; case (#7103) 2024-11-03 16:31:19 +00:00
oxc_parser refactor(parser): do not use AstBuilder::*_from_* methods (#7068) 2024-11-02 01:22:55 +00:00
oxc_prettier refactor(rust): remove the annoying clippy::wildcard_imports (#6860) 2024-10-24 13:57:19 +00:00
oxc_regular_expression feat(ast_tools): Add #[estree(always_flatten)] to Span (#6935) 2024-10-28 02:13:24 +00:00
oxc_semantic fix(ecmascript): allow getting PropName for object methods (#6967) 2024-10-28 09:34:27 +00:00
oxc_sourcemap release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_span feat(ast_tools): Add #[estree(always_flatten)] to Span (#6935) 2024-10-28 02:13:24 +00:00
oxc_syntax feat(ast_tools): Default enums to rename_all = "camelCase" (#6933) 2024-10-28 01:39:25 +00:00
oxc_transformer chore(transformer): fix typos s/browerslist/browserslist/ 2024-11-03 21:54:54 +08:00
oxc_traverse refactor(traverse): do not use AstBuilder::*_from_* methods (#7069) 2024-11-02 01:22:55 +00:00
oxc_wasm feat(transformer): add TransformerOptions::env with EnvOptions (#7037) 2024-10-31 12:30:32 +00:00