Is Eslint going to be replaced by Oxlint?

What is Oxlint

Due to the recent rise of rust in the front-end field, the front-end ecological chain based on rust has been reconstructed by the bottom layer of rust. Recently, OxLint, a linter tool based on Rust, was revealed. Oxlint has caused heated discussions in foreign front-end circles, and many big guys have spoken highly of it.

In fact, Oxlint is a product of the Oxc project, which creates a series of high-performance tools for JavaScript and TypeScript. And Oxc is building a parser, linter, formatter, translator, compressor, parser, etc., all written in Rust, with excellent performance.

The Oxlint project shares the same philosophy as Biome and Ruff, namely that JavaScript tools can be rewritten in more performant languages, and that integrated toolchains can improve efficiencies that different toolsets cannot provide.

image.png

Differently, according to the official description, Oxlint is not intended to completely replace ESLint. When ESLint's slowness becomes a bottleneck in your workflow, Oxlint can be another option for enhanced functionality. For a faster feedback loop, it is recommended to run oxlint before ESLint in the lint stage or in a CI setup, as running on large code bases even takes just a few seconds.

To test oxlint in your JavaScript/TypeScript codebase, simply install it by executing the following command in the root of the repository.

npx oxlint@latest
// pnpm
pnpm dlx oxlint@latest
// deno
deno run oxlint@latest
// bun
bunx oxlint@latest

Currently Ox

Guess you like

Origin blog.csdn.net/xiangzhihong8/article/details/135029425