Linters
What is Oxlint? An introduction to Oxc's ESLint-compatible linter
Oxlint is the ESLint-compatible linter in the Oxc collection of high-performance JavaScript tools written in Rust. It aims to catch bugs before they reach production. Oxlint and the rest of Oxc are open source.
Who makes Oxlint
Oxlint is made by Oxc, which is associated with VoidZero. Oxc is a collection of high-performance JavaScript tools written in Rust, and Oxlint is the linter within it. Its official website, https://oxc.rs, is linked below.
Official website: oxc.rs
What Oxlint is for
Oxlint is for finding problems in JavaScript and TypeScript code before that code is shipped. Its stated aim is to catch bugs before they reach production.
Because it is ESLint-compatible, it is meant to fit into workflows that already use ESLint conventions. It is described as 50 to 100 times faster than ESLint, which reflects the emphasis the Oxc project places on performance.
It also offers type-aware linting powered by tsgo, so rules can take TypeScript type information into account, and it supports ESLint JS plugins.
Who Oxlint is for
The vendor states its audience as JavaScript and TypeScript developers.
Developers who already work with ESLint are the most direct fit, given the compatibility. Because Oxlint belongs to a wider collection of tools, it can also suit developers who want a formatter, parser, transformer, resolver or minifier from the same project.
Notable capabilities
Oxlint is the linting piece of Oxc, and the surrounding collection adds several other tools. The capabilities below cover both Oxlint itself and the Oxc components around it.
- ESLint compatibility: Oxlint is an ESLint-compatible linter, and it supports ESLint JS plugins.
- Type-aware linting: type-aware checks are powered by tsgo.
- Oxfmt formatter: a Prettier-compatible formatter, currently in beta, that supports Tailwind class sorting.
- Standards-tested parser: the Oxc parser passes all Test262 stage 4 tests.
- Syntax lowering: the transformer supports syntax lowering to ES2015.
- Declaration emit: it supports Isolated Declarations DTS emit.
- Module resolution: the resolver supports Node.js-compatible CJS and ESM module resolution.
- Minifier: an alpha minifier shortens syntax and removes whitespace.
How Oxlint fits linters
Within the linters category, Oxlint is a linter for JavaScript and TypeScript that takes ESLint's model as its reference point. Its compatibility with ESLint JS plugins and its type-aware linting place it alongside other tools that check code against rules and report problems.
In Linthelm's wider niche of linters, static analysis and code quality, Oxlint is one part of a larger toolset. Oxc pairs the linter with a formatter, parser, transformer, resolver and minifier, several of which are still in beta or alpha. Readers evaluating it should check the maturity of each component they plan to use.
Frequently asked questions
What is Oxlint used for?
Oxlint is used to lint JavaScript and TypeScript code. It aims to catch bugs before they reach production.
Who develops Oxlint?
Oxlint is developed by Oxc, which is associated with VoidZero. It is the linter in the Oxc collection of high-performance JavaScript tools written in Rust.
Is Oxlint compatible with ESLint?
Yes. Oxlint is an ESLint-compatible linter and it supports ESLint JS plugins. It is described as 50 to 100 times faster than ESLint.
Does Oxlint support type-aware linting?
Yes. Oxlint offers type-aware linting powered by tsgo.
Does Oxc include a formatter?
Yes. Oxc includes Oxfmt, a Prettier-compatible formatter that is currently in beta and supports Tailwind class sorting.
Linthelm is independent and is not affiliated with Oxc (VoidZero). Product names belong to their owners. Features change; confirm details on the official website.