Skip to content

Enable incremental caches for tsc and ESLint in frontend#342

Merged
dkhalife merged 1 commit into
mainfrom
dkhalife/ts-eslint-incremental-cache
Jun 6, 2026
Merged

Enable incremental caches for tsc and ESLint in frontend#342
dkhalife merged 1 commit into
mainfrom
dkhalife/ts-eslint-incremental-cache

Conversation

@dkhalife

@dkhalife dkhalife commented Jun 6, 2026

Copy link
Copy Markdown
Owner

What

Purely incremental-cache configuration to speed up repeated TypeScript type-checking and ESLint runs in frontend/. No behavior change.

Changes (limited to frontend/)

  • tsconfig.json: added "incremental": true and "tsBuildInfoFile": "./node_modules/.cache/tsc/tsconfig.tsbuildinfo". The build-info path lives inside node_modules, so it is naturally git-ignored.
  • package.json: lint script changed from eslint . to eslint . --cache --cache-location ./node_modules/.cache/eslint/.

Git-ignore

Both caches write under node_modules/.cache, and node_modules is already ignored in frontend/.gitignore — no .gitignore changes needed. Verified the cache artifacts are not tracked.

Verification

All steps run in frontend/ after yarn install:

Step Run 1 Run 2 (cache hit) Result
yarn tsc ~198s ~83s ✅ pass, faster
yarn lint ~82s ~17s ✅ pass, faster
yarn build ✅ succeeds

The second tsc and lint runs are clearly faster thanks to the cache. Build (vite build) still succeeds and is unaffected.

Scope note

Intentionally minimal — only frontend/tsconfig.json and frontend/package.json. Does not touch the in-flight Yarn package-manager migration or the Android/Gradle changes. The yarn.lock regeneration produced by a local install was reverted to avoid churn with the migration PR.

Add TypeScript incremental build info and ESLint --cache to speed up repeated type-check and lint runs. Caches are written under node_modules/.cache (already git-ignored). No behavior change.
Copilot AI review requested due to automatic review settings June 6, 2026 20:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Speeds up repeated frontend developer/CI checks by enabling persistent incremental caches for TypeScript type-checking and ESLint runs within frontend/, keeping cache artifacts under node_modules/.cache.

Changes:

  • Enabled TypeScript incremental compilation cache via incremental + tsBuildInfoFile in frontend/tsconfig.json.
  • Enabled ESLint’s cache and routed it to ./node_modules/.cache/eslint/ via the lint script.
Show a summary per file
File Description
frontend/tsconfig.json Adds TS incremental build-info cache output under node_modules/.cache/tsc/.
frontend/package.json Updates lint to use ESLint cache stored under node_modules/.cache/eslint/.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 1

Comment thread frontend/tsconfig.json
@dkhalife dkhalife merged commit d19685c into main Jun 6, 2026
7 checks passed
@dkhalife dkhalife deleted the dkhalife/ts-eslint-incremental-cache branch June 6, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants