oxc
oxc copied to clipboard
⚓ A collection of JavaScript tools written in Rust.
When using `isolatedDeclaration` from `oxc-transform`, JSDoc is missing. Source: ```ts export interface Options { include?: FilterPattern exclude?: FilterPattern enforce?: 'pre' | 'post' | undefined outDir?: string /** @default ts */...
For input ```js let o = { f() { assert.ok(this !== o); } }; (1, o.f)(); (1, o.f)``; (true && o.f)(); (true && o.f)``; (true ? o.f : false)(); (true...
Reference: * https://www.npmjs.com/package/@vitejs/plugin-react-swc * https://github.com/facebook/react/blob/5b89d353e27a7ef07b40929f7343ebcc43bdaa58/packages/react-refresh/src/ReactFreshBabelPlugin.js * https://github.com/pmmmwh/react-refresh-webpack-plugin * https://mariosfakiolas.com/blog/what-the-heck-is-react-fast-refresh/
During flights without internet access, I was confused about all the inconsistencies from our crates' public APIs (`oxc_parser`, `oxc_transformer`, `oxc_minifier` etc.) - builder pattern or options pattern? I'd like to...
This triggers an error with oxlint: ``` {React.Children.toArray(items.map((item) => { return ( {item} ); }))} ``` But it does not with eslint. When using .map inside React.Children.toArray() a key should...
An attempt to reduce variance in benchmarks. Just testing at this stage.
This is the code we have to write in transformer to generate `let Foo;`: ```rs let kind = VariableDeclarationKind::Let; let declarations = { let ident = BindingIdentifier::new(SPAN, name.clone()); let pattern_kind...
We should improve the DX of using `.oxlintrc.json` files to configure oxlint. Below is a (possibly incomplete) list of things I think we could improve: - [ ] Add rules...
Creating a function declaration within an if statement in non-strict code should be allowed. Right now, declarations in if statements with block statements are allowed, but without them they are...