Oxlint Type-Aware Linter Backend

0.21.1 · active · verified Sun Apr 19

Oxlint-tsgolint is a high-performance, type-aware TypeScript linter that serves as a backend for Oxlint. It leverages `typescript-go` (the Go port of TypeScript 7) to provide full compatibility with the TypeScript type system, enabling deep semantic analysis for TypeScript projects. Currently at version 0.21.1, the package maintains an active release cadence with frequent updates for bug fixes, performance improvements, and new features. Its key differentiators include performance often 20-40x faster than traditional ESLint with `typescript-eslint` on large codebases, multi-core rule execution, and broad coverage of 59 out of 61 targeted `typescript-eslint` type-aware rules. It focuses on catching production-grade bugs that syntax-only linters miss, such as unhandled promise rejections. Users integrate it by installing it alongside Oxlint and enabling type-aware checks via Oxlint's CLI and configuration files, making it a critical component for projects requiring advanced static analysis without sacrificing linting speed.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to install `oxlint-tsgolint` via `oxlint` and run a basic type-aware linting scan, including an example of `.oxlintrc.json` configuration for specific rules.

pnpm add -D oxlint-tsgolint@latest oxlint@latest

// Run a basic type-aware linting scan on your project
pnpm dlx oxlint --type-aware

// Optionally, run with type-checking diagnostics
pnpm dlx oxlint --type-aware --type-check

// Configure rules in .oxlintrc.json
// {
//   "options": {
//     "typeAware": true,
//     "typeCheck": true
//   },
//   "rules": {
//     "typescript/no-floating-promises": "error",
//     "typescript/no-misused-promises": "error"
//   }
// }

view raw JSON →