typescript-eslint

The official meta-package bundling the TypeScript ESLint parser, plugin, and rule presets behind a single typed config() helper.

Tool
npm
v8.71.1
16,415 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
94 /100 Excellent
Development Activity 100
Maintenance 100
Community 76
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
86 /100 Excellent
Architecture 85
Code Quality 90
Innovation 75
Learning Curve 95

typescript-eslint is the umbrella npm package published by the typescript-eslint monorepo that lets ESLint understand and lint TypeScript code. Rather than installing the parser, plugin, and rule-preset packages separately, this single dependency re-exports @typescript-eslint/parser, @typescript-eslint/eslint-plugin, and every published flat-config preset (recommended, strict, stylistic, and their type-checked variants) behind one namespace, so a project’s eslint.config.mjs only needs one import to get full TypeScript support.

Its most-used export is the config() helper, a small utility that flattens arrays of ESLint flat-config objects and adds an extends convenience field so configs can compose the way classic .eslintrc extends used to, while staying compatible with ESLint 9’s flat config format. The package also exposes parser and plugin directly (identical objects to their individually-published counterparts, guaranteeing referential equality for third-party configs) plus small platform-detection helpers like getTSConfigRootDirFromStack that make multi-tsconfig monorepos resolve correctly without extra configuration.

What You Get

  • A typed config() helper for composing ESLint flat configs with an extends shorthand
  • Direct re-exports of @typescript-eslint/parser and @typescript-eslint/eslint-plugin guaranteed to be the same objects consumed elsewhere in a project
  • Every published rule-preset getter (recommended, strict, stylistic, and their -type-checked variants) as lazily-evaluated properties
  • Automatic TSConfig root-dir detection via stack introspection, so type-aware linting works out of the box in monorepos
  • Ready-made file-extension and glob constants (extensions, globs) for targeting JS/TS files in config overrides

Common Use Cases

  • Bootstrapping a new TypeScript project’s eslint.config.mjs with one import instead of four separate packages
  • Composing custom flat configs that mix js.configs.recommended, tseslint.configs.recommended, and project-specific rule overrides via extends
  • Migrating a legacy .eslintrc-based TypeScript project to ESLint 9’s flat config format
  • Sharing one canonical parser/plugin reference across a monorepo’s multiple ESLint configs to avoid duplicate-instance errors

Under The Hood

Architecture This package sits as a thin orchestration layer over the monorepo’s other packages (@typescript-eslint/eslint-plugin, @typescript-eslint/parser, @typescript-eslint/typescript-estree, @typescript-eslint/utils). src/index.ts is the sole entry point: it re-exports parser and plugin directly from the underlying packages (preserving referential equality so multi-config projects don’t get “duplicate plugin instance” errors), and builds a configs object via createConfigsGetters, which lazily wraps each of the plugin’s pre-built flatConfigs (recommended/strict/stylistic and their type-checked variants) behind a getter that also registers the caller’s tsconfig root dir on first access (getTSConfigRootDirFromStack.ts walks the call stack to infer this). config-helper.ts implements the config()/extends composition algorithm as a pure function with no side effects beyond validation-time throws, keeping the “resolve extends into a flat array” logic isolated from the rest of the module. There’s no runtime state beyond a module-level TS-major-version guard at the top of index.ts; if the flat-config shape from @typescript-eslint/utils changed, config-helper.ts and index.ts’s casts would need updating in lockstep, but the blast radius stays contained to this one package since it performs no analysis itself.

Tech Stack Written in TypeScript and published as CommonJS (type: “commonjs”, an exports map pointing at dist/index.js/dist/index.d.ts), built via Nx (nx build) as part of the larger pnpm/Nx monorepo, and tested with Vitest (tests/.test.ts using vi.mock to stub sibling modules). It depends on sibling workspace packages (@typescript-eslint/eslint-plugin, @typescript-eslint/parser, @typescript-eslint/typescript-estree, @typescript-eslint/utils, all workspace:) and declares eslint ^8.57.0 || ^9.0.0 || ^10.0.0 plus typescript >=4.8.4 <6.1.0 as peer dependencies. Build tooling includes rimraf for cleaning and @arethetypeswrong/cli (the attw-check target) to verify the published package’s type/module resolution correctness across consumer setups, on top of the shared root tsconfig.base.json/tsconfig.build.json.

Code Quality Tests live in tests/*.test.ts using Vitest, mocking @typescript-eslint/typescript-estree’s addCandidateTSConfigRootDir and the internal getTSConfigRootDirFromStack module, and iterate over real rule metadata from @typescript-eslint/eslint-plugin to assert every exported config’s rule list stays in sync with the plugin (configs.test.ts) — behavior-level testing rather than superficial snapshotting. Error handling in config-helper.ts is explicit and typed: configImpl throws descriptive Error/TypeError messages naming the offending config index and name for malformed extends usage (string entries, non-array extends, nested extends, basePath inside extends) instead of silently swallowing bad input. Naming is consistent and the codebase is fully typed under strict TS, with unavoidable casts paired with comments justifying them. Linting/formatting is enforced repo-wide via the root eslint.config.mjs (the project dogfoods its own rules) and Prettier, with CI running via GitHub Actions.

API Design The package’s central ergonomic contribution is the config()/extends helper, which lets consumers compose flat configs almost exactly like classic .eslintrc’s extends array (a familiar mental model) even though ESLint’s flat config has no native equivalent — though ESLint’s own defineConfig() now covers similar ground, which the JSDoc explicitly acknowledges by marking config() @deprecated in favor of it, a rare case of a library being transparent about being superseded by the platform it wraps. Onboarding requires exactly one import (import tseslint from ‘typescript-eslint’) to get parser, plugin, and every named preset, versus wiring three separate packages by hand. Every exported preset and helper carries a JSDoc block with a runnable example and a link to the corresponding docs page, and the extensions/globs constants remove a common source of copy-pasted glob-pattern bugs. Not novel technology, but a deliberate, well-executed developer-experience layer over an otherwise fragmented multi-package setup.

Used by 501 apps in this directory

Python
57%
Other

Sentry

Analytics · Developer Tools · Monitoring

45,522

Developer-first error tracking and performance monitoring platform with AI-powered root-cause analysis across 20+ languages and frameworks.

View details
95
Repo Health
80
Technical
66
Dependency
Built with
Python 57%
TypeScript 42%
Updated today
Python
57%
Other

Sentry

Analytics · Developer Tools · Monitoring

45,522

Developer-first error tracking and performance monitoring platform with AI-powered root-cause analysis across 20+ languages and frameworks.

View details
95
Repo Health
80
Technical
66
Dependency
Built with
Python 57%
TypeScript 42%
Updated today
Go
55%
MPL 2.0

shaper

Analytics · Data Engineering

1,254

Build analytics dashboards, reports, and customer-facing analytics by writing pure SQL — powered by DuckDB and designed for self-hosted deployment.

View details
80
Repo Health
79
Technical
74
Dependency
Built with
Go 55%
TypeScript 43%
Updated yesterday
TypeScript
61%
AGPL 3.0

Silex

Design Tools · No Code Platforms

3,000

Free, open-source visual website builder that exports clean HTML/CSS — no lock-in, no subscription, host anywhere

View details
89
Repo Health
68
Technical
67
Dependency
Built with
TypeScript 61%
Rust 15%
JavaScript 11%
Updated yesterday
TypeScript
61%
AGPL 3.0

Silex

Design Tools · No Code Platforms

3,000

Free, open-source visual website builder that exports clean HTML/CSS — no lock-in, no subscription, host anywhere

View details
89
Repo Health
68
Technical
67
Dependency
Built with
TypeScript 61%
Rust 15%
JavaScript 11%
Updated yesterday
TypeScript
61%
AGPL 3.0

Silex

Design Tools · No Code Platforms

3,000

Free, open-source visual website builder that exports clean HTML/CSS — no lock-in, no subscription, host anywhere

View details
89
Repo Health
68
Technical
67
Dependency
Built with
TypeScript 61%
Rust 15%
JavaScript 11%
Updated yesterday
Python
78%
AGPL 3.0

Skyvern

AI Agents · Automation

23,168

Skyvern (YC S2023) automates browser-based workflows by pairing LLMs with computer vision, letting agents click, fill, and extract data on sites they've never seen, without brittle XPath selectors that break on every layout change.

View details
89
Repo Health
82
Technical
70
Dependency
Built with
Python 78%
TypeScript 20%
Updated today
Python
78%
AGPL 3.0

Skyvern

AI Agents · Automation

23,168

Skyvern (YC S2023) automates browser-based workflows by pairing LLMs with computer vision, letting agents click, fill, and extract data on sites they've never seen, without brittle XPath selectors that break on every layout change.

View details
89
Repo Health
82
Technical
70
Dependency
Built with
Python 78%
TypeScript 20%
Updated today
TypeScript
97%
AGPL 3.0

Snapify

Collaboration · Productivity

1,018

Open-source, self-hostable screen recording and video sharing built as a Loom alternative — no accounts required to watch, full S3-backed storage for your data.

View details
38
Repo Health
68
Technical
69
Dependency
Built with
TypeScript 97%
Updated 1 years ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers