Skip to main content
← Guides

Guide

Biome vs ESLint vs Oxlint 2026: Which JS Linter to Pick

Updated PkgPulse Team9 min read
0

Compare Biome, ESLint and Oxlint with six reproducible migration checks: pinned versions, paired fixtures, exact configs, raw diagnostics and rerun commands.

Contents

One-minute guide summary

AI-narrated explainer with burned-in captions.

Continue with the full guide

Verdict: Choose Biome when combining formatting and linting is the goal; evaluate ESLint or Oxlint against the plugins and typed checks your repository needs. Our six synthetic migration checks produced diagnostics in all three explicitly mapped setups, but their defaults differed. Use the dated results below to inspect configuration changes before replacing a linter. These examples establish neither complete coverage nor a speed ranking.

Quick decision matrix

Your migration constraintStarting pointCheck before switching
Replace separate linting and formatting stepsBiomeCompare formatting diffs and the rules you depend on.
Preserve an existing ESLint plugin or custom ruleESLintKeep its behavior until a candidate reproduces it.
Evaluate a dedicated linter with built-in rules and typed checksOxlintEnable the required plugins and type-aware prerequisites.
Preserve React Hooks and promise checksRun the mapped fixtures belowThe default run alone did not exercise all six checks.

For a narrower implementation path, read the ESLint-to-Biome migration guide, the Oxlint React migration guide, or the ESLint 10 flat-config migration guide. The OXC overview explains the wider toolchain.

Migration checks

Snapshot 2026-11-02, observed November 2, 2026, America/Los_Angeles (November 3 UTC). We authored six defect fixtures and six paired clean controls. Each tool ran on the same inputs with its documented default/recommended setup, then an explicit six-check configuration: 12 inputs × 3 tools × 2 configurations = 72 observations. These are synthetic migration examples, not representative application coverage.

Each cell below gives default / mapped outcomes on the defect. E means diagnostic observed at error severity; W means diagnostic observed at warning severity; — means no diagnostic in this configuration. All 36 clean-control observations had no diagnostics. No cell was unsupported and no run/configuration failed in this snapshot. Those classifications remain distinct from a quiet run; a missing diagnostic does not establish missing tool capability.

Defect fixtureBiome 2.6.4ESLint 10.14.0Oxlint 1.90.0
Unused local bindingW / EE / EW / E
Loose equality with a stringE / E— / E— / E
Conditional React Hook— / E— / E— / E
Missing effect dependency— / E— / E— / E
Unawaited promise expression— / E— / E— / E
Restricted node:fs import— / E— / E— / E

The default unused-binding warnings from Biome and Oxlint exited 0; ESLint's default unused-binding error exited 1. Biome's loose-equality error also exited 1. Every mapped defect exited 1, and every control exited 0. Exit status alone would therefore miss two observed warnings. The CSV includes severity and exit status separately.

Inspect or rerun these checks: download the 72-row CSV, inspect raw outputs and provenance, or download the authored reproduction kit. Downloads require no signup. Cite this guide's #migration-checks section and snapshot identifier alongside a particular configuration and fixture; keep that qualification when quoting a finding.

Methodology and configurations

The pinned runtime was Node 26.8.2, with Bun 1.3.9 for installation. The observation ran on Linux x64; the exact kernel release and UTC timestamp are in results.json. The isolated bun.lock freezes dependencies independently of this site's dependencies. These are tested versions selected for this snapshot, not a promise that they remain the newest releases.

PackagePinned versionRegistry publication date, UTC
@biomejs/biome2.6.42026-10-28
eslint10.14.02026-10-30
oxlint1.90.02026-10-27
@eslint/js10.0.12026-02-06
typescript-eslint8.72.12026-10-26
eslint-plugin-react-hooks7.1.12026-04-17
oxlint-tsgolint7.0.20052026-10-22
typescript6.0.22026-03-23

The kit also pins Node and React type declarations. registry.json records every selected package's publication timestamp, registry URL, retrieval time and integrity value. We used TypeScript 6.0.2 as the fixture project's compiler, rather than changing the site's compiler or assuming the newest compiler was a prerequisite. TypeScript's no-emit check passed on all 12 materialized inputs, including the intentionally lint-defective ones: syntax/type validity and lint policy answer different questions.

Default lane: Biome used preset: "recommended" with no React domain override. ESLint used @eslint/js recommended rules, with the TypeScript parser to accept the shared inputs and a readonly document global. No React or typed-rule preset was added there. Oxlint used an empty config and no plugin or type-aware CLI switches, retaining its defaults. The temporary project manifest declares only type: "module", with no React runtime dependency. This does not test automatic React-domain activation in an application that declares React. This is a comparison of those setups, not equivalent recommended plugin bundles. In particular, neither React nor typed checks should be inferred from the default lane's quiet cells.

Mapped lane: each config enabled the six chosen rules at error severity and disabled the broad recommended/default category set. ESLint registered typescript-eslint and React Hooks plugins and supplied a typed project. Oxlint enabled its TypeScript and React plugins and ran with --type-aware, using pinned oxlint-tsgolint. Biome enabled its corresponding rules, including the nursery promise rule. The rule mapping is intentionally narrow:

ScenarioBiome ruleESLint ruleOxlint configured rule
Unused bindingcorrectness/noUnusedVariables@typescript-eslint/no-unused-varstypescript/no-unused-vars
Loose equalitysuspicious/noDoubleEqualseqeqeqeqeqeq
Conditional Hookcorrectness/useHookAtTopLevelreact-hooks/rules-of-hooksreact/rules-of-hooks
Effect dependenciescorrectness/useExhaustiveDependenciesreact-hooks/exhaustive-depsreact/exhaustive-deps
Floating promisenursery/noFloatingPromises@typescript-eslint/no-floating-promisestypescript/no-floating-promises
Restricted importstyle/noRestrictedImportsno-restricted-importsno-restricted-imports

Biome JSON nests the group and rule names under linter.rules. Its reported diagnostic IDs add the lint/ prefix. Oxlint's output uses identifiers such as react-hooks(rules-of-hooks) and eslint(no-unused-vars), even where its config accepts the react/ or typescript/ name. The exports preserve both the configs and the actual reported IDs; they do not rewrite one into the other.

The runner captures resolved ESLint/Oxlint configs and Biome's linter troubleshooting report before collecting results. The mapped defects then supply a behavioral check that each selected rule actually reports, while paired controls test whether that diagnostic disappears after a small correction. A parser or configuration failure is a failed observation, never evidence of rule absence. No autofix command runs.

Fixtures and rerun commands

The reproduction kit contains the exact input text, both configurations for each tool, the typed-project config, pinned package manifest, lockfile, runner and verifier. The repo source is research/lint-migration. Defective inputs are stored as .txt so the site's TypeScript and lint jobs do not accidentally treat them as application code.

The six pairs isolate these changes:

  • Unused binding: a function declares const unused = 1 and returns 2; the control returns the declared value. This matters when a migration changes unused-binding severity or defaults.
  • Loose equality: value == "1" becomes value === "1" with an unknown input. This case deliberately avoids a null comparison, whose rule options can permit different behavior.
  • Conditional Hook: useState(0) inside if (enabled) moves to the component's top level. The component still returns a count or zero, so the relevant difference is Hook ordering.
  • Effect dependencies: an effect writes the value prop to document.title; [] becomes [value]. This checks one direct captured dependency, not custom hooks or all closure patterns.
  • Floating promise: Promise.resolve(1) becomes void Promise.resolve(1). The control explicitly discards the promise under these rules; it does not demonstrate rejection handling or make a safety claim about discarding promises in application code.
  • Restricted import: importing and exporting readFileSync from node:fs becomes importing and exporting basename from node:path. Both are valid modules. The restriction is an authored policy against node:fs, not a claim that the module is defective.

Run from the extracted kit directory using the pinned runtimes:

bun install --frozen-lockfile
node run.mjs /tmp/lint-migration-rerun
node verify.mjs results.json /tmp/lint-migration-rerun/results.json

Choose a new output directory for each run. The runner refuses an existing destination so it cannot silently replace a cited snapshot. It materializes all 12 executable files under TMPDIR, symlinks the isolated installed dependencies there, and cleans only its own temporary working directory. Results remain in the destination you chose. It does not execute the fixture functions or import the restricted module at runtime.

Every observation records its fixture, tool, configuration, command, status, diagnostic ID, severity, exit status, stdout and stderr. The report includes SHA-256 hashes of configs, fixtures, manifest, lockfile and runner, plus a combined source hash. Commands use relative paths within the temporary fixture project. The verifier compares outcomes and diagnostic messages, ignoring volatile timing values in the untouched raw outputs. A second fresh run reproduced all 72 outcomes before this guide refresh.

Tool roles and migration limits

Biome's linter documentation describes its rules and domain configuration; its formatter belongs to the same toolchain. That makes Biome worth evaluating when a team wants to combine lint and format steps. Our mapped run also observed Hook-order and dependency diagnostics, so the earlier blanket advice to retain ESLint specifically because Biome cannot check those examples would be misleading. The default run still shows why a migration needs explicit configuration checks.

ESLint's rule configuration documentation describes configured severities and options. Plugin rules and their parsers remain part of the configuration a team must carry forward. Here, typed promise checking required a project and typescript-eslint; core recommended alone did not report the promise. Retain an existing custom or framework rule until a candidate demonstrates the behavior your repository needs. These six examples do not inventory that repository-specific work.

Oxlint's current docs describe built-in plugins, type-aware linting, and JavaScript plugins. Its typed setup requires an additional dependency and resolved type information. The mapped promise case exercised that path. Calling Oxlint syntax-only or universally unable to load plugin behavior would omit current capabilities. JavaScript-plugin compatibility still needs checking against the exact plugin and version; this dataset used built-in React rules, not arbitrary JS plugin compatibility tests.

A matching diagnostic on one tiny input does not prove identical rule semantics. Options, aliases, cross-file types, custom Hook names and more complex control flow can change results. Biome's promise rule is in its nursery group; the rule documentation identifies that status. Oxlint and typescript-eslint obtain type information through their own prerequisites. Agreement here establishes the observed expressions, not equivalence of their type analysis.

We did not measure speed, memory, autofix quality, editor behavior or security. There is no overall score and no winner by diagnostic count. Warnings and errors are policy choices, and the restricted import was intentionally configured only in the mapped lane. An added rule can explain a new diagnostic without any change in parser capability.

Choosing a linter for your repository

Choose Biome if consolidating linting and formatting solves a real maintenance problem, then run the checks your team depends on before removing existing tooling. Review formatting changes separately from lint-rule changes so a large mechanical diff does not hide a changed policy.

Keep ESLint where its configured plugins or custom checks remain necessary. Start a migration audit from the actual resolved config, including file patterns, globals, parser settings, rule options and severity. Shrink duplicate checks only after the replacement is exercised on representative project code.

Evaluate Oxlint as a dedicated linter with the plugins and typed setup your code needs. It can also run beside an existing tool during evaluation. This snapshot gives no timing evidence for adding a permanent second lint pass; measure that cost on your own repository.

For any switch, begin with a branch and a written list of required diagnostics. Run candidates beside the current workflow, investigate unique findings and quiet cells, then decide which checks to retain. Treat this dated snapshot as historical evidence if newer releases change the outcome. Recheck documentation and rerun at day 30; later corrections should add a new dated snapshot rather than overwrite this one.

Source notes

Official documentation and npm registry metadata were accessed November 2, 2026 locally / November 3 UTC. Documentation supports each tool's own configuration and capabilities, not comparative superiority. Original diagnostics support the results table.