Skip to main content

Command Palette

Search for a command to run...

Speed Up Your Code: Update ESLint to v9.34.0 for Multithread Linting

Boost your pre-commit linting and CI pipelines with faster, parallelized ESLint processing for JavaScript and TypeScript projects.

Updated
1 min read
Speed Up Your Code: Update ESLint to v9.34.0 for Multithread Linting
A
I am a web developer

ESLint v9.34.0 introduces multithread linting, a decade-long effort to speed up linting by processing multiple files simultaneously.

Why it matters:

  • Multiple CPU cores? Fast SSD? You’ll see big gains.

  • Early tests show 1.3x–3x faster linting, especially on large projects with hundreds or thousands of files.

How to

Update your eslint package in your package.json to v9.34.0 to take advantage of multithread linting.

Then, update your scripts:

"scripts": {
 "lint": "eslint --fix --cache --concurrency=auto"
}

If you’re using lint-staged for pre-commit linting, configure it like this:

"lint-staged": {
 "*.{js,jsx,ts,tsx}": [

 "prettier --write",

 "eslint --fix --cache --concurrency=auto"

 ],

 "*.{json,md,css}": "prettier --write"

}

This will dramatically speed up linting on large projects by running multiple files in parallel. Perfect for faster pre-commit hooks and CI pipelines!

More from this blog

L

Let's Code

34 posts

Welcome to "Let's Code," a blog dedicated to web development, where I share insights, tutorials, and experiences to help you enhance your skills and stay updated with the latest industry trends.