Back to articles
Oxc Has a Free API: The JavaScript Toolchain Written in Rust That's 100x Faster

Oxc Has a Free API: The JavaScript Toolchain Written in Rust That's 100x Faster

via Dev.to WebdevAlex Spinov

ESLint, Babel, Prettier — they're all written in JavaScript. Oxc rewrites them in Rust and makes them 100x faster. What Is Oxc? Oxc (Oxidation Compiler) is a collection of JavaScript/TypeScript tools written in Rust: Parser — 3x faster than SWC, 20x faster than Babel Linter — 50-100x faster than ESLint Resolver — 28x faster than enhanced-resolve Transformer — Babel-compatible transforms in Rust Minifier — coming soon (terser replacement) The Linter npx oxlint@latest # Lints your entire project in milliseconds On a 10,000-file project: ESLint: 45 seconds Oxlint: 0.4 seconds That's not a typo. Sub-second linting on massive codebases. # 400+ built-in rules npx oxlint --deny-warnings # With config npx oxlint -c oxlintrc.json What Rules? Oxlint includes rules from: eslint (core rules) typescript-eslint eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y eslint-plugin-import eslint-plugin-unicorn eslint-plugin-jest eslint-plugin-nextjs All built in. No plugins to install. Us

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles