code-review-typescript

Installation
SKILL.md

TypeScript Code Review Patterns

Stack-specific rules loaded by dh:code-reviewer when tsconfig.json, *.ts, or *.tsx files are detected.

Read Review principles before applying these checks; it defines authority, applicability, evidence, and blocking criteria. Also apply Node.js checks for Node execution and Web checks for browser rendering, including TSX; language checks do not replace runtime checks.

Strict Mode

  • Apply the project's active compiler gates. Prefer strict checking for new projects; do not require a configuration migration solely to match a default.
  • Inspect optional-property and indexed-access behavior for unsupported undefined values; establish the affected contract before recommending stronger compiler flags such as exactOptionalPropertyTypes or noUncheckedIndexedAccess.
  • Investigate @ts-ignore and its justification: identify the diagnostic being hidden and whether the invariant is established elsewhere. An explanation alone does not prove safety.
  • @ts-expect-error is preferred over @ts-ignore — it fails if the error goes away

Type Safety

Installs
33
GitHub Stars
67
First Seen
Apr 26, 2026