oxc
oxc copied to clipboard
⚓ A collection of JavaScript tools written in Rust.
To solve unexpected snapshot update in #4742 : https://github.com/oxc-project/oxc/pull/4742/files#diff-4c1a03dc03cfd00f9eaecb5c66b61f4e57272c6262253f0dc82ea1b71223bac2
#4732 introduced `CloneIn` trait. Currently it clones `SymbolId`, `ScopeId` and `ReferenceId` along with all other parts of AST being cloned. I don't think this is correct behavior, but am not...
This will help bench Jest linter rules. See conversation in #4787 for details.
fix: #4788 - Added a check for parent nodes that are MemberExpressions - If a parent node is a MemberExpression, the fixed number is now wrapped in parentheses to maintain...
SemanticBuilder's already resolved reference usage but never doesn't set `reference_flag` for IdentifierReference. Although we can get `reference_flag` by `reference_id`, would be great if we could directly `reference_flag`.
Given the following file (`.oxlintrc.json`): ```json { "rules": { "no-negated-condition": "allow" } } ``` If I run the command `oxlint -c .oxlintrc.json -D pedantic` I get the following output: ```...
> [!WARNING] > This comment is maintained by CI. Do not edit this comment directly. > To update comment template, see https://github.com/oxc-project/oxc/tree/main/tasks/lint_rules This is tracking issue for `eslint-plugin-promise`. There are...
https://github.com/oxc-project/oxc/blob/7f7b5ea9e83f37ff666d6f33fda7a9e27ea2aa07/crates/oxc_ast/src/ast_builder.rs#L71-L79 This method *can* be used correctly when a node is being removed from AST anyway, but there are multiple ways in which it can lead to unsound situations: Aliasing...
It's either `@babel/helpers` or tslib ... * https://www.npmjs.com/package/@babel/helpers * https://www.npmjs.com/package/tslib
Spans for binding identifiers cover the identifier itself and the type annotation on `BindingPattern`. This was introduced in #2624, and is blocking https://github.com/oxc-project/backlog/issues/84. ## Expected Behavior ```ts // ___________ BindingPattern...