The Oxidation Compiler Blog

https://oxc.rs

A collection of high-performance JavaScript tools written in Rust

フィード

記事のアイキャッチ画像
Oxlint General Availability
The Oxidation Compiler Blog
We are thrilled to announce that oxlint is now generally available!This milestone signifies our team's ability to promptly address and triage issues.Oxlint is a JavaScript linter designed to catch erroneous or useless code without requiring any configurations by default.How to Use ​At this stage, oxlint is not intended to fully replace ESLint; it serves as an enhancement when ESLint's slowness becomes a bottleneck in your workflow.For faster feedback loops, we recommend running oxlint before ESLint in your lint-staged or CI setup, considering it only takes a few seconds to run on large codebases.To test oxlint in your JavaScript / TypeScript codebase, simply execute the following command at the root directory of your repository:npmpnpmyarnbundenosh$ npx oxlint@latestsh$ pnpm dlx oxlint@latestsh$ yarn dlx oxlint@latestsh$ bunx oxlint@latestsh$ deno run npm:oxlint@latestAlternatively, refer to the installation guide for detailed instructions.Design ​50-100 Times Faster than ESLint ​In re
1年前
記事のアイキャッチ画像
Oxlint Import Plugin Alpha
The Oxidation Compiler Blog
We are excited to announce an alpha release for oxlint --import-plugin, a port of eslint-plugin-import.This port aims to resolve all known issues associated with eslint-plugin-import:Performance - execution time exceeding one minute when certain rules are enabledDependency size - 188 dependencies totaling 30MBackwards compatibility - the necessity to support Node.js v4.0.0Dependency compatibility - the need to replace it with eslint-plugin-import-xUpgrading to ESLint v9What's in the release? ​This alpha release is expected to work if your project is in ESM (ECMAScript Modules).If path aliases (e.g. @/foo) is required through tsconfig.compilerOptions.paths,the --tsconfig option can be used:npx oxlint@latest --tsconfig ./tsconfig.json --import-pluginThe rules that are enabled by default via npx oxlint@latest --import-plugin are:defaultnamednamespaceRules that can be enabled selectively via npx oxlint@latest --import-plugin -D rule-name are:no-named-as-defaultno-named-as-default-memberno-
8ヶ月前
記事のアイキャッチ画像
Oxc Transformer Alpha
The Oxidation Compiler Blog
We are excited to announce an alpha release for Oxc transform (a.k.a transpile).This release contains three major features:Transforming TypeScript to ESNext.Transforming React JSX to ESNext, with built-in React Refresh.TypeScript Isolated Declarations DTS Emit without using the TypeScript compiler.In this alpha stage, we recommend to experiment with these features to speed up build times.Our benchmark shows:Transform: Oxc is 3x - 5x faster than SWC, uses 20% less memory, and has smaller package size (2 MB vs SWC's 37 MB).Transform: Oxc is 20x - 50x faster than Babel, uses 70% less memory, and is 19 MB smaller, with only 2 npm packages to install vs Babel's 170.React development + React Refresh: Oxc is 5x faster than SWC, 50x faster than Babel.TS isolated declarations .d.ts emit: Oxc is 40x faster than TSC on typical files, 20x faster on larger files.Usage Examples ​oxc-transform npm package ​Vue.js is currently experimentingthe oxc-transform npm package for isolated declarations in its
3ヶ月前
記事のアイキャッチ画像
Oxlint v0.10 Migration Guide
The Oxidation Compiler Blog
2ヶ月前