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 yarn --cwd redisinsight/ui type-check
API redisinsight/api/tsconfig.check.json (strict, extends base) redisinsight/api/.tscheck.rec.json yarn --cwd redisinsight/api type-check
Desktop redisinsight/desktop/tsconfig.json redisinsight/desktop/.tscheck.rec.json yarn --cwd redisinsight/desktop type-check
Configs configs/tsconfig.json — (must stay at 0 errors) yarn tsc --project configs/tsconfig.json --noEmit

Run all checks together from the repo root:

  • yarn 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.
  • yarn tscheck — refresh baselines for ui/api/desktop after fixing errors. Projects whose error count didn't change produce no diff.
  • yarn tscheck:force — force-overwrite baselines for ui/api/desktop. Emergencies only.
Installs
3
GitHub Stars
8.6K
First Seen
14 days ago
type-check-baselines — redis/redisinsight