Faster type-aware linting with tsrs
We’re adding tsrs as an alternative to tsgolint for type-aware linting in Oxlint. It’s the Rust port of TypeScript announced by Cloudflare and VoidZero in October. Teams at Cloudflare, Owner.com and OpenAI are already using it for type-aware linting.
Our goal is to make Oxlint the best possible linter for developers and agents. tsrs enables up to 7x faster and a 75% reduction in memory, shortening feedback loops in editors, CI, and agent workflows.
The new backend comes with the tsrs npm package and works through Oxlint’s existing CLI and configuration. It can be used as a drop-in replacement for a project that already uses Oxlint’s type-aware linting.
Performance
tsrs delivers up to 5× the speed of tsgolint v7.0.2007, with memory reductions of around 70%.
Compared with typescript-eslint, the gap is even larger. tsrs is up to 98× faster, with a reduction of up to 82% in peak memory.

With tsrs inside Oxlint, you can run typechecking and type-aware linting through a single TypeScript analysis and avoid doing the same work twice. This way, the largest speedup grows to 7×, with memory reductions of up to 75%.
Compared with running typescript-eslint and tsc separately, Oxlint with tsrs is up to 122× faster, with a reduction of up to 82% in peak memory.

Fast mode is enabled by default, it adapts checker counts, groups related work, enables additional caches and memory optimizations to improve performance.
Compatibility
tsrs implements all 61 rules present in tsgolint v7.0.2007. The goal is to preserve the same configuration options, diagnostics, fixes, and suggestions, so existing projects can switch with minimal effort.
Try it
If you are using Vite+:
$ vp upgrade # since v1.7.0
$ vp check # or vp lintIf you are using Oxlint directly, upgrade to the latest versions of Oxlint and tsrs. Once installed, Oxlint will automatically use tsrs for type-aware linting and typechecking.
$ pnpm i -D oxlint tsrs
$ pnpx oxlint --type-awareYou can also request typechecking diagnostics alongside lint results:
$ pnpx oxlint --type-aware --type-checkIf type-aware linting is already enabled through options.typeAware, you can continue using your usual lint command.
Feedback
Try tsrs type-aware linting as a drop-in replacement for tsgolint on a project, and let us know how it compares. Please report any differences in output, fixes, runtime, or memory to help us work to a more stable release. Join the Oxc Discord to stay up to date on the latest changes.
What’s next?
Bringing tsrs to Oxlint is another step toward a faster, more integrated JavaScript and TypeScript toolchain. With both tools written in Rust, we have more room to explore deeper integration, reduce duplicated work, and improve performance and memory use across linting and typechecking.
We have tried tsrs and tsrs lint on a large variety of projects and will continue to improve compatibility and stability. We’ll keep following upstream TypeScript and tsgolint, closing gaps, and looking for further optimizations. For developers and agents alike, the goal is the same: make thorough checks fast enough to run after every change.
Acknowledgements
Thank you to Max Schwenk for creating tsrs, the TypeScript team for their continued support and collaboration, and all of our contributors.

