Home / Blog / Why not rewrite ESLint in Rust?: Comments
Tech News

Why not rewrite ESLint in Rust?: Comments

ESLint maintainer nzakas ruled out a full Rust rewrite on Dec 3, 2026, citing volunteer limits while reporting a 9-10% AST speedup and testing napi-rs.

By Dillip Chowdary • Dec 06, 2026 • Source: github.com

Why not rewrite ESLint in Rust?: Comments
Image: github.com

At a glance

Project
ESLint
Discussion date
Dec 3, 2026
Maintainer bandwidth
Volunteer team, up to 10 hours/week
AST traversal gain
9-10% runtime reduction on large codebases
Native bridge
napi-rs for Node.js modules
Active experiment
TypeScript parser in TypeScript and Rust

ESLint maintainer nzakas published GitHub discussion #21626 on December 3, 2026, explaining why the JavaScript linter will not be rewritten in Rust. Addressing recurring questions prompted by faster Rust-based alternatives, nzakas detailed how volunteer staffing, npm ecosystem compatibility, and ongoing V8 runtime optimizations shape the project's direction. Instead of a full rewrite, ESLint is targeting JavaScript performance bottlenecks while testing targeted native modules.

This report covers the organizational, technical, and personal factors behind that decision, along with ESLint's concrete roadmap for faster execution. It is written for JavaScript and TypeScript developers, plugin maintainers, and engineering teams deciding whether to stay on ESLint or migrate to Rust-based linters.

01Volunteer maintainers, contributor skills, and dogfooding

ESLint relies entirely on a volunteer team working in their spare time and has never employed full-time maintainers. According to nzakas, the most prolific contributors spend at most 10 hours per week on the project, while most team members contribute significantly less. Taking on a full rewrite in any language—even with AI assistance—would add massive coordination and validation overhead on top of regular maintenance.

The team's core expertise also sits squarely in JavaScript and TypeScript, which members work with every day. New contributors are frequently JavaScript developers who encounter a bug or missing feature in ESLint and fix it without switching languages. Moving the codebase to Rust would alienate existing maintainers and shrink the pool of contributors who know the target language well enough to help.

Switching languages would also break ESLint's internal dogfooding loop. The team lints the ESLint codebase with ESLint itself, enabling as many rules, plugins, and features as possible to catch crashes, slowdowns, and confusing error messages firsthand. Writing Rust full-time would disconnect maintainers from the daily friction JavaScript users experience.

02JavaScript plugins, parsers, and npm compatibility

ESLint's entire ecosystem—covering custom rules, parsers, plugins, and processors—is built in JavaScript and distributed through npm packages. A Rust rewrite would have to execute those existing npm packages or risk breaking the workflows users already depend on.

Bridging Rust and JavaScript for plugin execution is technically possible, but nzakas noted it is difficult enough that JavaScript plugins arrived late in Rust-based linters. Building that interoperability layer just to match ESLint's current baseline would consume substantial engineering effort before delivering any new capability.

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

03V8 bottlenecks and JavaScript runtime speedups

In the discussion, nzakas argued that developers asking for a Rust rewrite are really asking for faster linting, not a specific implementation language. JavaScript itself is not inherently slow because V8 compiles it to machine code, and Node.js supports the V8 compile cache to skip recompiling unchanged files.

Performance problems instead stem from three specific JavaScript runtime pitfalls that ESLint is actively working to eliminate. V8 falls back to interpreting code when unexpected patterns trigger deoptimizations, and creating large numbers of objects forces frequent garbage collection cycles—an area nzakas described as Rust's real advantage. Code can also hit slow paths, such as using a for-of loop with the iterator protocol instead of a regular for loop over large datasets.

Addressing these bottlenecks has already yielded measurable gains in testing. A new approach to traversing abstract syntax trees cut ESLint's runtime by 9–10% on large codebases in nzakas's own benchmarks. Aided by AI tools for spotting bottlenecks and prototyping fixes, nzakas expects noticeable overall speed improvements over the next few months.

04Project identity and maintainer health constraints

Beyond engineering trade-offs, nzakas questioned whether a Rust rewrite would still be ESLint in anything other than name. Rewriting the linter would bring a different contributor team, replace years of battle-tested code with an untested core, and trigger ecosystem turbulence whether existing npm packages were supported or dropped.

Starting a brand-new project from scratch would avoid retrofitting ESLint's architecture, but nzakas ruled out leading such an effort after 13 years of maintaining ESLint. Dealing with chronic health issues for more than a decade has left nzakas without the stability of a full-time salary or normal daily capacity, whereas a clean-slate project would demand both full-time work and full-time financial backing.

05Native Node.js modules via napi-rs

While rejecting a full rewrite, nzakas is open to using Rust selectively through native Node.js modules built with napi-rs. Because parser construction is a well-understood problem, the team is building ESLint's new TypeScript parser in both TypeScript and Rust, using AI to generate the Rust implementation.

Comparing the two versions will show whether the Rust parser delivers meaningful advantages over the TypeScript edition. If that experiment succeeds, nzakas expects ESLint could expand its use of native Node.js modules without abandoning its JavaScript foundation.

Frequently asked questions

Why will ESLint not be rewritten in Rust?

ESLint is maintained by volunteers working at most 10 hours per week who specialize in JavaScript and TypeScript. A Rust rewrite would also disrupt JavaScript-based npm plugins, end internal dogfooding, and replace years of tested core code.

How is the ESLint team making ESLint faster without Rust?

Maintainers are targeting V8 deoptimizations, excessive object allocation that triggers garbage collection, and slow iteration paths like for-of loops. A new AST traversal method already reduced runtime by 9–10% on large codebases in nzakas's tests.

Is ESLint using Rust anywhere in the project?

Yes, ESLint is testing Rust selectively via napi-rs native Node.js modules. The team has written its new TypeScript parser in both TypeScript and Rust to measure whether the Rust version provides clear benefits.

Why does nzakas not start a brand-new Rust linter from scratch?

After 13 years of maintaining ESLint, nzakas cited more than a decade of chronic health issues and the lack of full-time financial support. Starting a new project from scratch would require both full-time effort and full-time funding.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →