Dev.to WebDev 🛠 Dev 👁 0 📖 14 min read

Oxlint vs ESLint on Nuxt: Faster, but Blind to Vue Templates

TL;DR: In our Oxlint vs ESLint test on two Nuxt repos, Oxlint ran the same rules 24–38x faster than cold ESLint but missed all 10 Vue template-rule violations: it reads only a .vue file's script. Run in front of ESLint,

Oxlint vs ESLint on Nuxt: Faster, but Blind to Vue Templates

Oxlint vs ESLint on Nuxt: Faster, but Blind to Vue Templates

TL;DR: In our Oxlint vs ESLint test on two Nuxt repos, Oxlint ran the same rules 24–38x faster than cold ESLint but missed all 10 Vue template-rule violations: it reads only a .vue file's script. Run in front of ESLint, as Oxc suggests for large repos, it made clean cached runs 13% and 44% slower. On Vue, keep ESLint alone, with caching and staged-file linting if a commit takes over 1 s. For JSX and TSX, Oxc recommends Oxlint alone; we didn't test it.

Oxc's docs say Oxlint is 50 to 100 times faster than ESLint, and LogRocket published a guide headed "it's time to retire ESLint and migrate to Oxlint". None of the top guides we read counts eslint-plugin-vue rules or compares findings on a .vue file. So a Vue team can't tell what it would lose.

This is for the tech lead on a Nuxt 4 or Vue 3 app choosing whether to replace ESLint, run both or leave it alone. It covers Prettier and Oxfmt too.

We timed both tools with the same rules on our own site's code (104 files) and the public nuxt.com repo (715 files), on one machine. Disclosure: we sell Nuxt development and Vue development.

What is Oxlint, and how does it differ from ESLint?

Oxlint is the linter of the Oxc project, written in Rust and published by VoidZero, which also maintains Vite. Its first stable version, 1.0, was announced on 10 June 2025. On 24 November 2026, Oxc's docs listed 873 built-in rules ported from ESLint core and popular plugins, up from over 500 at 1.0.

Oxlint ports its rules from ESLint core and plugins such as eslint-plugin-vue, and compiles them into one Rust binary, while ESLint loads each rule as JavaScript. That is a large part of why Oxlint is faster, and it is why Oxlint has only the rules someone has ported.

Oxlint vs ESLint at a glance: what we measured on two Nuxt repos

Scorecard of our test on two Nuxt repos: Oxlint ran 24–38x faster than cold ESLint, made lint 13% and 44% slower when run in front of it, flagged 0 of 10 template rules, and Oxfmt matched Prettier on 96 of 102 files

  • Whole repo: Oxlint ran 38x faster than cold ESLint and 11x faster than cached on our 104 files, and 24x and 3x on nuxt.com's 715.
  • One commit's three files: ESLint with --cache took 0.60 s on ours and 0.85 s on nuxt.com; Oxlint took 0.042 s and 0.056 s.
  • Oxlint in front of ESLint (eslint-plugin-oxlint): a clean cached run was 13% slower on ours, 44% on nuxt.com.
  • Violation fixture: Oxlint flagged 24 of 25 shared script rules and 0 of 10 template rules; ESLint flagged all 35.
  • Real code: Oxlint reported 19 of ESLint's 21 findings on ours, missing both vue/no-v-html warnings. On nuxt.com it raised 2 errors ESLint passed.
  • Formatter: Oxfmt matched Prettier on 96 of our 102 files and ran 32x faster.

Scope: two Nuxt repos, one machine, no React and no type-aware rules.

A two-step rule for choosing your set-up

Decide in two steps: first by your file types, then by what one ESLint run costs on a commit.

Step 1, what files does your repo lint?

  • .vue, .svelte or .astro files: keep ESLint, because Oxlint can't see their templates. Go to step 2.
  • JSX, TSX and plain TypeScript only: Oxlint can be your main linter, as Oxc recommends for most projects. Keep ESLint for the rules the count script below shows Oxlint lacks, and time it yourself, because we haven't tested a React repo.

Step 2, how long does ESLint take on a typical three-file commit, run as your hook runs it? With no hook, time eslint --cache from ./node_modules/.bin on three files you've just changed.

  • Under 1 s: keep ESLint alone. Ours took 0.60 s and nuxt.com's 0.85 s.
  • Over 1 s: make sure the hook runs ESLint with --cache on the staged files only. On our repo, either change alone took a 2.0 s run to about 0.6 s. If it is still over 1 s with both, you're past anything we measured. Don't add Oxlint in front to save time, though. ESLint still parses every file, and on both our repos the pair ran slower.

The 1 s line is our rule of thumb. Better Stack's author found a 0.4 s hook "felt instant", while at 3.8 s "some developers started skipping the hook".

How we tested: same rules, two Nuxt repos, local binaries

  • Our repo: apps/web of netling.digital, 104 files, on Nuxt 4.6.2 and Vue 3.5.44. ESLint 10.13.0 ran our @nuxt/eslint config (rules from @nuxt/eslint-config 1.15.1, with eslint-plugin-vue 10.7.0 and typescript-eslint 8.55.0) plus 4 overrides: 274 rules on a .vue file. Oxlint 1.95.0 got the 109 it has under the same name, at the same severities.
  • The public repo: nuxt/nuxt.com at commit 6eb38319, 715 files, 174 of them .vue. ESLint 10.15.0 with @nuxt/eslint 1.17.0 runs 365 rules on a .vue file; Oxlint got the 149 it matches.
  • Both: Apple M4, Node 26.8.2, eslint-plugin-oxlint 1.95.0, no type-aware rules, with 3 warm-ups and 15 timed runs per set-up; we report medians. nuxt.com's figures come from a third, round-robin pass after background load disturbed the first two, and its ranges are wide.

Our first attempt launched ESLint through npx, adding about 1.5 s of start-up, and ran Oxlint's default rules, which skip no-explicit-any. Oxlint looked far faster and less thorough than it is. Launch both from node_modules/.bin and give Oxlint your rules:

# ESLint, cold
./node_modules/.bin/eslint .
# ESLint with a warm cache
./node_modules/.bin/eslint . --cache --cache-location .cache/eslint
# ESLint on three changed files, as a hook runs it
./node_modules/.bin/eslint --cache --cache-location .cache/eslint app/app.vue server/api/article-import.post.ts app/utils/serviceTopics.ts
# Oxlint with the ESLint rules it matches
./node_modules/.bin/oxlint -c oxlintrc.matched.json .

Is Oxlint faster than ESLint? 24–38x against a cold run, 3–11x against its cache

Bar chart of lint time: ESLint took 2.01 s cold and 0.60 s cached on our 104 files, and 7.20 s and 0.92 s on nuxt.com's 715, against Oxlint's 0.053 s and 0.30 s

On our 104 files, Oxlint was 38x faster than cold ESLint and 11x faster than cached. ESLint took 2.013 s cold (1.906–2.233 s) and 0.598 s with a warm cache; Oxlint took 0.053 s with the 109 matched rules. That saves 1.96 s and 0.54 s a run. Oxlint's default 96 rules took 0.041 s, but they don't check what ours do.

On nuxt.com's 715 files, the lead shrank to 24x and 3x. ESLint took 7.200 s cold and 0.923 s cached; Oxlint took 0.301 s with 149 matched rules, saving 6.9 s and 0.62 s.

The cached lead shrank because Oxlint's time grew almost sixfold between the repos, from 0.053 s to 0.301 s. Cached ESLint grew by about half, from 0.60 s to 0.92 s. Most of Oxlint's extra time is its import plugin. In a separate run on its own, the import plugin took about 0.31 s, against 0.054 s for the Vue plugin.

On a commit's three files, Oxlint saved 0.56 s on ours and 0.79 s on nuxt.com. On ours, three files took about as long as the whole repo with a warm cache: 0.602 s against 0.608 s. Most of ESLint's time there is start-up and config loading. nuxt.com's 0.85 s used an unchanged cache (0.83 s with the files changed). Neither includes lint-staged's own overhead.

How our multiples compare with published benchmarks

LogRocket measured 99.65x on Vue core, a TypeScript monorepo rather than .vue files. Better Stack measured about 35x on an 800-file React and TypeScript project, near nuxt.com's size, where we measured 24x cold. It ran both through npx, with Oxlint unconfigured.

Oxlint vs ESLint for Vue: 94 of our 129 Vue rules have no Oxlint equivalent

Stacked bar of the 274 ESLint rules our config runs on a .vue file: 109 have an Oxlint equivalent, while 94 Vue, 65 stylistic and 6 other rules do not

On a fixture with one violation per rule, Oxlint flagged none of 10 template rules. On our real code it missed both vue/no-v-html warnings. That rule exists to "disallow use of v-html to prevent XSS attack", so without ESLint, raw HTML in a template goes unflagged.

On script code, Oxlint caught 24 of the fixture's 25 shared rules, 21 of them on the same line as ESLint. For 3 duplicates, Oxlint flags both halves where ESLint flags the second. It missed prefer-const in all four .vue variants we wrote, though it caught it in a .ts file, and we can't explain why.

On nuxt.com, Oxlint was stricter: it flagged two lines ESLint passed, on rules both run. They are no-unsafe-optional-chaining through a TypeScript as cast in app/pages/index.vue, and unicorn/prefer-string-starts-ends-with in a test file.

Why Oxlint can't see Vue templates

The template gap needs a Vue template parser in Oxlint, which it doesn't have. Oxc's docs say Oxlint lints .vue, .svelte and .astro files by reading only their script blocks, and its JS plugins can't parse Vue files yet. Oxc's tracking issue for eslint-plugin-vue marks 123 of the plugin's 252 rules "not currently possible, as it requires Vue template parsing".

Our config's 274 rules on a .vue file split like this:

  • 109 have an Oxlint rule of the same name (a floor, since we matched by name).
  • 94 are vue/* rules with no match, almost all for templates, such as require-v-for-key, valid-v-model and no-mutating-props.
  • 65 are @stylistic/* rules, a formatter's job.
  • 6 are others: no-octal, nuxt/prefer-import-meta and four typescript-eslint rules.

nuxt.com's config shows the same: 35 of its 133 Vue rules matched.

Count the gap in your own ESLint config

This read-only script compares eslint --print-config for one file with oxlint --rules --format json, and prints how many of the file's ESLint rules Oxlint has by name. Save it in your project root and run node count-oxlint-gap.mjs app/app.vue; its comments say where it looks for the two binaries.

// Read-only: how many of the ESLint rules active on one file have an Oxlint rule of the same name.
// Usage, from the project root: node count-oxlint-gap.mjs app/app.vue
// Needs eslint and oxlint in ./node_modules/.bin (or set ESLINT=... OXLINT=... to other paths).
import { execFileSync } from 'node:child_process'

const file = process.argv[2]
if (!file) throw new Error('usage: node count-oxlint-gap.mjs <file>')
const run = (tool, args) => execFileSync(process.env[tool.toUpperCase()] ?? `./node_modules/.bin/${tool}`, args,
  { encoding: 'utf8', maxBuffer: 64 * 1024 * 1024 })

const { rules } = JSON.parse(run('eslint', ['--print-config', file]))
const active = Object.keys(rules).filter((name) => {
  const level = Array.isArray(rules[name]) ? rules[name][0] : rules[name]
  return level !== 0 && level !== 'off'
})

// Oxlint scope -> ESLint plugin prefix (everything else is "<scope>/")
const prefix = { eslint: '', typescript: '@typescript-eslint/', jsx_a11y: 'jsx-a11y/', react_perf: 'react-perf/', node: 'n/', nextjs: '@next/next/' }
const oxlint = new Set(JSON.parse(run('oxlint', ['--rules', '--format', 'json']))
  .map(rule => (prefix[rule.scope] ?? `${rule.scope}/`) + rule.value))

const plugin = name => name.includes('/') ? name.slice(0, name.lastIndexOf('/')) : 'core'
const count = list => list.reduce((acc, name) => ({ ...acc, [plugin(name)]: (acc[plugin(name)] ?? 0) + 1 }), {})
const matched = active.filter(name => oxlint.has(name))
const unmatched = active.filter(name => !oxlint.has(name))
const vue = active.filter(name => name.startsWith('vue/'))

console.log(`${file}: Oxlint has ${matched.length} of ${active.length} active ESLint rules by name`)
console.log('matched by plugin:', count(matched))
console.log(`vue/ rules: ${vue.filter(name => oxlint.has(name)).length} of ${vue.length} matched`)
console.log('unmatched by plugin:', count(unmatched))
for (const [group, n] of Object.entries(count(unmatched)))
  console.log(`  ${group} (${n}): ${unmatched.filter(name => plugin(name) === group).join(', ')}`)

For our app/app.vue it printed this, then every unmatched rule by name:

app/app.vue: Oxlint has 109 of 274 active ESLint rules by name
matched by plugin: { core: 44, '@typescript-eslint': 25, vue: 35, import: 5 }
vue/ rules: 35 of 129 matched

A .ts server file gave 74 of 145. Reading your own output:

  • Unmatched vue/* rules are what you'd lose by dropping ESLint.
  • Unmatched @stylistic/* rules move to your formatter.
  • Check the rest by hand, because name matching undercounts: four of our unmatched typescript-eslint rules exist in Oxlint under core names.

How to run Oxlint and ESLint together with eslint-plugin-oxlint, and what it cost us

Oxc's docs recommend running both for "especially large and complex repos": Oxlint first, then ESLint with the overlapping rules off.

  1. Install oxlint and eslint-plugin-oxlint at the same version. We pinned both to 1.95.0, matching the plugin's ~1.95.0 peer range.
  2. Add the plugin last in your flat config, built from your Oxlint config with buildFromConfigFile, so ESLint turns off exactly the rules Oxlint runs. Skip flat/recommended: per the README, it turns off ESLint's rules for Oxlint's whole correctness category, whatever your Oxlint config runs.
  3. Run oxlint && eslint in the lint script and the hook, as VoidZero's 1.0 announcement suggests.

Step 2 with @nuxt/eslint, trimmed from our tested config (buildFromConfigFile is async; append accepts the promise):

// eslint.config.mjs
import withNuxt from './.nuxt/eslint.config.mjs'
import oxlint from 'eslint-plugin-oxlint'

export default withNuxt(
  // your existing config objects
).append(
  // last: turn off every ESLint rule that Oxlint runs from the same config
  oxlint.buildFromConfigFile('./.oxlintrc.json')
)

What running both cost on our two repos

Oxlint in front fails faster on script errors but doesn't shorten a clean Vue run: on our two repos it made it slower.

  • Whole repo, cached: 13% slower on ours, 44% on nuxt.com. That is 0.689 s against 0.608 s for ESLint alone, and 1.344 s against 0.936 s, each pair timed in one pass.
  • Three staged files: slower on both (0.73 s against 0.60 s on ours, 0.89 s against 0.85 s on nuxt.com).
  • Cold runs: within 10% on both repos, and all 21 of our findings still appeared.

ESLint still parses every file, so turning rules off saved it almost nothing. The plugin turned off 108 of the 109 rules on a .vue file, but ESLint still ran the other 166. Cached, ESLint got 4.3% faster on ours and no faster on nuxt.com. Oxlint's run plus a second process start cost more than that saved.

On nuxt.com, oxlint && eslint never reached ESLint. Oxlint exited on the 2 errors ESLint had passed, so no template rule ran. We timed both steps with ; to measure the full cost.

This is general guidance from two Nuxt configs, so try it on a branch before changing your hook.

Clay illustration: the Netling robot scans Vue-logo parcels quickly at a first gate, but a developer at a second gate marked with the ESLint logo still opens every one, so a queue builds between them, like Oxlint run in front of ESLint adding a step

How to migrate from ESLint to Oxlint, and when not to

Oxlint has been stable since 1.0 in June 2025, and for most projects Oxc's docs recommend replacing ESLint outright. To migrate, run @oxlint/migrate on a v9 or v10 flat config; a v8 .eslintrc goes through @eslint/migrate-config first.

On our config, version 1.95.0 with --js-plugins=false produced 130 native rules. That is all 109 we had matched, four typescript-eslint rules under core names, and 17 core rules we run only on .js files. It skipped 96 Vue rules, 60 as "not currently possible, as it requires Vue template parsing". On a Vue repo, its output can't replace ESLint.

A React or Next.js codebase has no template gap: Oxlint lints JSX and TSX in full and ships native React and jsx-a11y rules. Two things can still keep ESLint there:

  • Type-aware rules need a separate backend. Oxlint covers 60 of typescript-eslint's 62 through oxlint-tsgolint or tsrs; we haven't tested it.
  • In-house plugin rules need JS plugins, which are still alpha.

If you're weighing Biome instead, its docs call Vue, Svelte and Astro support experimental since v2.3.0. We haven't tested it.

Oxfmt vs Prettier: same output on 96 of our 102 files, 32x faster

Our repo has no Prettier config, so we ran both formatters on scratch copies of 102 files (86 .vue, 15 .ts, 1 .css). Oxfmt got the same .prettierrc.json through oxfmt --migrate=prettier.

The output was identical on 96 files, and the 6 that differ are all .vue templates. The tools break lines differently around inline elements. Here is one from our disclaimer page, Prettier's output first:

-  <strong>Email:</strong>
-  <a href="mailto:[email protected]">[email protected]</a>
+  <strong>Email:</strong> <a href="mailto:[email protected]"
+    >[email protected]</a
+  >

JS, TS and CSS output matched. We didn't check whether any of the 6 renders differently.

Oxfmt's --check took 0.042 s against Prettier's 1.341 s, about 32x faster, close to Oxc's claim of "more than 30×". Oxfmt has been in beta since February 2026, and its latest npm release on 24 November 2026 was still 0.80.0, a pre-1.0 version.

For a team on Prettier today, we'd keep Prettier while Oxfmt is in beta. Try Oxfmt on a branch, and expect a few template diffs like this one.

When running Oxlint next to ESLint is the wrong choice

These apply whether you add Oxlint for its checks or because Vite+ brings it in:

  • Nobody will keep two configs in step: an option changed only in ESLint does nothing, since the rule stays off there and Oxlint enforces the old one (we checked no-empty and no-cond-assign).
  • You rely on prefer-const in .vue files: the plugin turns it off in ESLint, and Oxlint missed it there, so nothing checks it.
  • Your code has eslint-disable comments for rules Oxlint takes over: each becomes an "unused eslint-disable directive" warning, as one did on nuxt.com. @oxlint/migrate lists a --replace-eslint-comments option we didn't run.
  • You expect vp check to replace your lint step: on our app it ran Oxlint's default rules in 0.16 s, not our ESLint config. Oxfmt's defaults flagged all 119 files it checks (.md and .json included), since our style lives in @stylistic rules.

What we run on netling.digital after the test

Our Nuxt 4 site runs ESLint through @nuxt/eslint and formats through its @stylistic rules, with no Prettier. Lint runs as pnpm run lint (eslint .) in CI, with no pre-commit hook. We kept ESLint alone. Our files are .vue, and a three-file run with --cache took 0.60 s, under the rule's 1 s line.

Frequently asked questions

Can Oxlint replace ESLint?

For most JavaScript and TypeScript projects, Oxc's docs say yes, and Oxlint has been stable since 1.0 in June 2025. You migrate by running @oxlint/migrate on an ESLint flat config. In a repo with Vue, Svelte or Astro components it can't replace ESLint yet, because every template rule still needs ESLint.

Does Oxlint support Vue?

Partly. It lints a .vue file's script block and has 35 of the 129 Vue rules in our config. It has none for the template, such as vue/no-v-html or vue/require-v-for-key. Oxc's own tracker lists those template rules as not possible until Oxlint can parse Vue templates.

Does Oxlint support type-aware linting?

Yes, through a separate backend, oxlint-tsgolint or tsrs, turned on with --type-aware. Oxc's docs say it covers 60 of typescript-eslint's 62 type-aware rules; we didn't test it.

Does Oxlint work with ESLint plugins?

ESLint plugins run through Oxlint's JS plugins, which are still alpha. They can't yet parse Vue, Svelte or Angular files, so eslint-plugin-vue's template rules can't run that way.

How do I use Oxlint and ESLint together?

Add eslint-plugin-oxlint last in your ESLint flat config, built from your Oxlint config, then run oxlint && eslint. On a Vue repo, do it for Oxlint's extra checks, not speed: a clean cached run got slower on both Nuxt repos we timed.

Three checks to run on your own repo

  1. Run the count script on one .vue and one .ts file, and note the unmatched vue/* rules.
  2. Time ESLint with --cache on three files you've just changed.
  3. Take both numbers through the two-step rule above.

If you want a second opinion before changing your lint set-up, our Vue.js consultants review a codebase and give a written recommendation. If you'd rather someone made the change in your repo, our Nuxt developers join your Slack, standups and repos. Full-time, a dedicated developer works out at $12 an hour, and they aim for a first pull request within 48 hours. Send us a brief or contact us.

Originally published at netling.digital.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.