Urgent.News

What's breaking now, across hundreds of outlets.

Tech

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…

Oxlint is a linter developed by the Oxc project, written in Rust and published by VoidZero, the same organization behind Vite. It is designed to be a faster alternative to ESLint, the popular JavaScript linter. Oxlint is written in Rust, which allows it to compile its rules from ESLint core and plugins like eslint-plugin-vue, resulting in a single Rust binary. ESLint, on the other hand, loads each rule as JavaScript, which is a significant factor in Oxlint's speed advantage.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Kener status pages are public by design, but the admin API is not

Kener status pages are public by design, but the admin API is not Kener is a self-hosted status-page system. Its public pages are meant to be reachable by customers and partners, while a management…

  • Kener status pages are public for customers and partners
  • Admin API is separate and not publicly accessible
  • Public endpoints and management API are clearly distinguished in v4 docs

More from Monday 23 November →