oxc
oxc copied to clipboard
⚓ A collection of JavaScript tools written in Rust.
1. Adding a new InstructionKind `ImplicitReturn` 2. Adding a new `ImplicitReturn` instruction for each function body, just like biome 
Make `AstKind::as_*` methods (e.g. `AstKind::as_boolean_literal`) take `self`, not `&self`. `AstKind` is `Copy`. See: https://github.com/oxc-project/oxc/issues/5506#issuecomment-2332912976
Support `config.plugins` in `.oxlintrc.json`. ```jsonc { "plugins": ["import", "react-hooks", "@typescript-eslint"], // ... } ``` ## Acceptance Criteria - Should match behavior of eslint
Almost done. Still need to add documentation, fix all semantic errors, and tidy up somewhere.
https://github.com/oxc-project/oxc/issues/1022
I think I found all of the AST fields that are typescript-only but I could be wrong. I did label decorators as `#[ts]` but not sure if that's correct.
In `oxc_ast` we exclusively use `Box` and `Vec` from `oxc_allocator`, so it's easy to know that `Box` or `Vec` anywhere in the code means the arena variant. But this is...