upvote
For people that run a lot of eslint in pipelines, for us switching to oxlint saved around 150h of compute time per week in our runners.

Slow linting is not just a nuisance but also a real cost. FWIW the new ts compiler was around 600h runtime saved per month. And we're only a small team.

reply
Switching from native [TS + prettier + eslint], to [tsgo + oxfmt + oxlint], lowered my laptop's average temperature by 10-15 degrees at work.
reply
Damn winter is gonna hit harder this year
reply
Try running a 4k fireplace video instead.
reply
as a gif!
reply
Make it a real-time fireplace animation implemented in Typescript.
reply
Void Zero put out a tsrs package too.
reply
You laptop will turn into a freezer if you switch to HTML sprinkled with some plain JavaScript.
reply
Still need to format and lint it and I'd hope people are using TypeScript these days and keeping JavaScript only as a compile target.
reply
If you are only doing extremely basic JS with something like stimulus (for example with Ruby on Rails), then you really don’t NEED typescript. Since you are probably keeping your JavaScript usage to a minimum anyway.
reply
Then you need a formatter, linter and type checker for Ruby. And those are probably as slow as the pure JS ones.
reply
switching one of our repos from eslint to oxlint:

- macbook pro: 50s => ~30ms

- ci server: 3m => ~6s

(edit: 30ms, not 3)

reply
deleted
reply
You are not linting your node_modules by chance, are you?
reply
Nah, its just chonky codebase with a bunch of rules.
reply
just the move from eslint to oxlint saved my team something like 3.75 days of compute per calendar day.
reply
> switching from [dynamic language] to [statically compiled language] saved around 150h of compute time per week in our runners.

Sounds like you may have discovered a surprising path to greater compute/power efficiency.

reply
For reference, that's roughly one week per week.
reply
biome too, I've been using it for years after removing eslint from one of the projects and seeing about a thousand packages gone (IIRC).

Removed it from every other project I have any control over right after that.

biome supports all important rules and is probably 100× faster at least. Has its own dependencies of course, but statically linked native code is easier to swallow somehow.

https://biomejs.dev/

reply
We switched from Biome to oxc as oxc was still faster by 50% and supported standard ESLint rules or you can otherwise port them with AI.
reply
ultracite is a great pair with biome.
reply
Any idea how Oxlint compares to biome? We’ve been having a lot of success after migrating to that, but didn’t do a benchmark against this
reply
Moved to Oxlint and Oxfmt, am really happy with it! Doesn't have every feature of ESLint and Prettier, but that was inconsequential because I wanted to get at least 80% there but with much better performance, and it lived up to that.
reply
They support JS plugins now so you can recreate much of what’s missing, which finally unblocked our ability to adopt fully.
reply
Oxlint is good for speed but still lacking in terms of rule coverage of what advanced eslint setups can provide.
reply
Oxlint supports most of eslint's plugin API and you can actually lift any rules from eslint that are still missing and vendor them and use them as plugins.

Even if you find a gap where a plugin isn't supported, vibe coding an eslint/oxlint plugin for anything you need takes a few minutes at this point.

The main gap right now is there are no type-aware plugins, but as a stopgap you can vibe code a tiny custom linter on top of the new TypeScript and reap most of the speed benefits now, then port to oxlint once type-aware is ready.

reply
Oxlint supports 61 out of 63 of typescript-eslint's rules.
reply
I meant what I said: it has no type aware lint plugins.

You are also correct that it has built in rules that are type aware.

reply
Oxlint's JS plugin API doesn't get you significant speed benefits over ESLint, since it is, after all, interpreting JS. For example I pulled out our @eslint/compat to only run in CI, because the plugin was taking significantly more than the rest of our lint run combined.

I wish Oxlint had a native plugin API!

reply
Native would be nice, but we are running oxlint with about 10 rules lifted wholesale from eslint plus 4 other custom rules plus an entire custom linter built on top of typescript directly for a set of custom type rules.

Our whole lint step with both oxlint and our custom type linter still costs 1/60 what it used to under eslint.

So, yeah, it's not as fast as it could be in theory, but it's still way better than eslint.

reply
Does anyone know if the type aware linting will get even faster with tsgo 7.1 programmatic API.
reply
They put out tsrs which I recommend you use and yes it will integrate with the other oxc projects
reply
deleted
reply
That is good

No need to rewrite eslint then, even if there ever was a "need"

reply