Biome v2 launched: First type-aware linter that doesn't require tsc (biomejs.dev)
from arendjr@programming.dev to programming@programming.dev on 17 Jun 14:06
https://programming.dev/post/32376875

Biome is a formatter and linter for web languages: JavaScript, TypeScript, CSS, HTML, JSON, and GraphQL.

Version 2 adds type-aware lint rules and it is the first TypeScript linter that does not require tsc. Other new features include:

#programming

threaded - newest

dinckelman@lemmy.world on 17 Jun 19:02 next collapse

Congrats to the devs. Biome is awesome, and it’s been a pleasure to use it

sum_yung_gai@lemm.ee on 18 Jun 08:47 collapse

What is the use case for linting typescript where tsc is unavailable? To avoid tsc compilation time if possible?

arendjr@programming.dev on 18 Jun 09:01 collapse

tsc is (very) slow and there are also no convenient ways to interact with it from Rust.

So it saves a lot development and CI time to roll our own. The downside is that our inference still isn’t as good as tsc of course, but we’re hopeful the community can help us get very close at least.

sum_yung_gai@lemm.ee on 18 Jun 09:38 collapse

Makes sense. Reminds me of running ruff before the (very) slow type checker on my python projects.