ESLint takes 2-5seconds on my large repo. I don’t run it less because of its performance. I run it less because it’s a security pit. I created a second package.json file without it. When I want to run ESLint now I have to change the names of the two package.json files, NPM install, run the tool, makes the changes, change the file names again, and NPM install again.
Doing this shows I have a very small and extremely flat dependency graph of less than 10 dependencies total, of which none are security concerns.
I think most people would agree 2–5s on one repo doesn't mean speed doesn't matter. Ours took about 6 minutes on an M4 Pro, and --cache was too unreliable to use. We moved to oxlint, which fixed both the speed and most of the dependency surface.