Remix.run Logo
▲ demosthanos a day ago

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.

▲asztal a day ago | parent | next [-]

Oxlint supports 61 out of 63 of typescript-eslint's rules.

▲demosthanos a day ago | parent [-]

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.

▲anamexis a day ago | parent | prev [-]

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!

▲demosthanos a day ago | parent [-]

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.