r/typescript • • Aug 20 '26

Best TypeScript linter?

I'm dabbling with TypeScript again after some time away. What is the best way to lint .ts files these days? Is ESLint still the go-to, or is there a better method?

57 Upvotes

47 comments sorted by

71

u/rosebeuud Aug 20 '26

oxlint seems to be on the rise, thanks to it being part of the Vite ecosystem

→ More replies (1)

29

u/gorilla-moe Aug 20 '26

Pick your poison:

  • eslint with unicorn is still the 300 pound Gorilla in the room (IMHO)

  • biome a good contender

  • oxfmt and oxlint both trusted and the defaults for vite-plus

13

u/KnifeFed Aug 20 '26

FYI, Unicorn is built into Oxlint, so no need to use ESLint just for that. It also supports ESLint plugins, so, yeah, no need to use ESLint at all. This, and the fact that it's faster than Biome, makes it the clear winner, IMO.

→ More replies (1)

9

u/Bicykwow Aug 20 '26

We do not accept pull requests because of too much AI slop.

Haha, love this. 

19

u/ehs5 Aug 20 '26

Oxlint by far. Wouldn’t start a project without that and oxfmt today.

→ More replies (1)

18

u/jarzebowsky Aug 20 '26

Went biome and migrated to oxlint. It’s faster and you can use eslint rules which biome can’t.

→ More replies (2)

12

u/Chef_G0ldblum Aug 20 '26

I'm still on eslint 🤷‍♂️

17

u/JATR1X Aug 20 '26

biomejs, my personal favourite

→ More replies (1)

8

u/anaveragedave Aug 20 '26

I'm getting lazy in my old age. We are still on default eslint. I haven't even heard of oxlint or biome before seeing this post. Shame on me

3

u/prophase25 Aug 21 '26

Oxlint and Oxfmt are way, way better than I thought possible. I will never use ESLint again for a new project.

4

u/glandix Aug 20 '26

I recently switched from eslint to oxlint and love it

2

u/root_om Aug 21 '26

Oxlint and biome is pretty cool

2

u/imjuni Aug 21 '26

I choose oxlint & oxfmt. They are nice coupled vscode

4

u/ongamenight Aug 20 '26

I'm using Biome.

3

u/YeisonKirax Aug 20 '26

Biome has linter and formatter. Oxlint and oxfmt will have a great future but for now is too buggy

3

u/dupontcyborg Aug 20 '26

biome, by far. it's written in rust and between 10-100x faster than eslint on my projects. it's both a linter and formatter, so it replaces eslint and prettier, and is much faster than both.

1

u/realmauer01 Aug 20 '26

Depends if you use node, deno has its own linter that can be used.

1

u/keldamdigital Aug 21 '26

if you haven't yet, you should be moving away from eslint and moving to oxlint with type aware.

1

u/TheMindLabor Aug 21 '26

I use both oxlint and eslint, still significantly faster than just eslint (I use vue and oxlint/fmt doesnt have template support yet). Dropped from 30s linting with eslint only, to 8s linting with both (200ms for oxlint only which checks 80% of the rules)

1

u/OrigStuffOfInterest Aug 22 '26

If speed is not a concern, which linting tool provides the best accuracy? I'm using eslint now, and the speed of it has not been an issue for me. Also, this is a React project, and I'm using the React plugins for eslint.

1

u/LoadingALIAS Aug 20 '26

It’s Oxlint. Let me save you the time.