{"slug": "faster-type-aware-linting-with-tsrs", "title": "Faster type-aware linting with tsrs", "summary": "Oxlint added tsrs, the Rust port of TypeScript announced by Cloudflare and VoidZero in October, as an alternative backend to tsgolint for type-aware linting, delivering up to 7x faster runs and a 75% reduction in memory when typechecking and type-aware linting share a single TypeScript analysis. The tsrs npm package implements all 61 rules in tsgolint v7.0.2007 and works as a drop-in replacement through Oxlint's existing CLI and configuration, with Cloudflare, Owner.com and OpenAI teams already using it. Against typescript-eslint alone tsrs is up to 98x faster with up to 82% lower peak memory, and against running typescript-eslint and tsc separately, Oxlint with tsrs is up to 122x faster.", "body_md": "# Faster type-aware linting with tsrs\n\nWe’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](https://blog.cloudflare.com/typescript-rust-port/). Teams at Cloudflare, Owner.com and OpenAI are already using it for type-aware linting.\n\nOur 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.\n\nThe 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.\n\n## Performance \n\n`tsrs` delivers up to 5× the speed of tsgolint v7.0.2007, with memory reductions of around 70%.\n\nCompared with typescript-eslint, the gap is even larger. `tsrs` is up to 98× faster, with a reduction of up to 82% in peak memory.\n\nWith 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%.\n\nCompared 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.\n\n[Fast mode](https://github.com/oxc-project/tsrs#fast-mode) is enabled by default, it adapts checker counts, groups related work, enables additional caches and memory optimizations to improve performance.\n\n## Compatibility \n\ntsrs 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.\n\n## Try it \n\nIf you are using Vite+:\n\n``` bash\n$ vp upgrade # since v1.7.0\n$ vp check # or vp lint\n```\n\nIf 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.\n\n``` bash\n$ pnpm i -D oxlint tsrs\n$ pnpx oxlint --type-aware\n```\n\nYou can also request typechecking diagnostics alongside lint results:\n\n``` bash\n$ pnpx oxlint --type-aware --type-check\n```\n\nIf type-aware linting is already enabled through `options.typeAware`, you can continue using your usual lint command.\n\n## Feedback \n\nTry `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](https://github.com/oxc-project/tsrs/issues) in output, fixes, runtime, or memory to help us work to a more stable release. [Join the Oxc Discord](https://discord.gg/9uXCAwqQZW) to stay up to date on the latest changes.\n\n## What’s next? \n\nBringing `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.\n\nWe 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.\n\n## Acknowledgements \n\nThank you to [Max Schwenk](https://building.owner.com/tsrs) for creating tsrs, the TypeScript team for their continued support and collaboration, and all of our contributors.", "url": "https://wpnews.pro/news/faster-type-aware-linting-with-tsrs", "canonical_source": "https://oxc.rs/blog/2026-11-17-faster-type-aware-linting-with-tsrs", "published_at": "2026-11-18 02:21:07+00:00", "updated_at": "2026-11-18 02:43:12.189557+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools"], "entities": ["Oxlint", "tsrs", "tsgolint", "Cloudflare", "VoidZero", "Owner.com", "OpenAI", "Max Schwenk"], "also_reported_by": [], "takeaway": "Swapping Oxlint's type-aware backend to the tsrs npm package runs all 61 tsgolint v7.0.2007 rules as a drop-in replacement and, by sharing one TypeScript analysis for typechecking and linting, cuts time up to 7x and memory up to 75%.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/faster-type-aware-linting-with-tsrs", "markdown": "https://wpnews.pro/news/faster-type-aware-linting-with-tsrs.md", "text": "https://wpnews.pro/news/faster-type-aware-linting-with-tsrs.txt", "jsonld": "https://wpnews.pro/news/faster-type-aware-linting-with-tsrs.jsonld"}}