type-check-baselines

Installation
SKILL.md

TS error baselines

RedisInsight gates TypeScript errors per project via a one-way ratchet: current error counts are recorded in .tscheck.rec.json files, and CI fails if any (file × error-code) count increases. Counts can only go down.

Projects and commands

Project tsconfig used Baseline file Per-project compare
UI redisinsight/ui/tsconfig.json redisinsight/ui/.tscheck.rec.json npm run type-check --prefix redisinsight/ui
API redisinsight/api/tsconfig.check.json (strict, extends base) redisinsight/api/.tscheck.rec.json npm run type-check --prefix redisinsight/api
Desktop redisinsight/desktop/tsconfig.json redisinsight/desktop/.tscheck.rec.json npm run type-check --prefix redisinsight/desktop
Configs configs/tsconfig.json — (must stay at 0 errors) npx tsc --project configs/tsconfig.json --noEmit

Run all checks together from the repo root:

  • npm run type-check — compare against baselines (all four projects). E2E Playwright is type-checked by a separate workflow (tests-e2e-playwright-lint.yml) — not part of this.
  • npm run tscheck — refresh baselines for ui/api/desktop after fixing errors. Projects whose error count didn't change produce no diff.
  • npm run tscheck:force — force-overwrite baselines for ui/api/desktop. Emergencies only.
Installs
7
GitHub Stars
8.7K
First Seen
Jun 13, 2026
type-check-baselines — redis/redisinsight