oxc
oxc copied to clipboard
⚓ A collection of JavaScript tools written in Rust.
Did: `npx oxlint -D all` got: `Finished in 1.4s on 29 files with 243 rules using 16 threads.` Apparently there should be 376 rules (according to https://oxc.rs/docs/guide/usage/linter/rules.html), so a lot...
Some `tsconfig` options are relevant for declaration emit, but there's currently no way to pass these. ```js > code = "/** @internal */ export function hello() {}" > require("oxc-transform").isolatedDeclaration("example.ts", code)...
Part of #6156. Here's a proposal for a revamped API for `oxc-transform` NPM package API. This is draft only. It's a matter of taste, and I don't think there are...
Related to https://github.com/oxc-project/oxc/issues/479
# What This PR Does Adds `CodeBuffer`, a simple wrapper over a `Vec` with a protective and reduced API for upholding UTF-8 validity guarantees. Closes #6147. Note that this struct...
This will fold expressions like `new Object()` to `{}`, and `new Array()` to `[]`. Based on the closure compiler tests: https://github.com/google/closure-compiler/blob/b7e380b6320a52ce7fbac0334ede00d6a8c92fad/test/com/google/javascript/jscomp/PeepholeSubstituteAlternateSyntaxTest.java#L78. This is outside my usual area, so feedback is...
When visiting a `TSConditionalType`, enter a new scope after visiting the `check_type`, and exit before entering the `false_type`. Fixes this case, where `B` should have a reference. I can't find...
One of the typescript files gets replaced with the empty file and all its content get deleted. This is confusing and it's unclear which oxlint rule is doing this.
Seems that the `gzip` is so metaphysical... I don't know why it enlarges the gzipped size.