logoalt Hacker News

anamexis • yesterday at 4:32 PM • 1 reply • view on HN

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!


Replies

demosthanos • yesterday at 5:31 PM

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.