From 77bc08c9919470c47e49a36295b86ca8c4611e72 Mon Sep 17 00:00:00 2001 From: bram-atmire Date: Sun, 22 Nov 2026 13:49:53 +0100 Subject: [PATCH] Run lint:nobuild in typescript-eslint single-run mode typescript-eslint only infers a single run when CI=true or when eslint is invoked directly. A local "ng lint" matches neither, so typescript-eslint falls back to watch programs, which need much more memory: locally lint can run out of memory with the 4 GB heap used in CI. Set TSESTREE_SINGLE_RUN=true for lint:nobuild, so local lint runs the same way as CI. lint-fix is unchanged, because single-run mode is not used with --fix. Assisted-by: Claude Code [claude-opus-5-5] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4f840cca505..5fe4088c7e9 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "test:lint": "npm run build:lint && npm run test:lint:nobuild", "test:lint:nobuild": "jasmine --config=lint/jasmine.json", "lint": "npm run build:lint && npm run lint:nobuild", - "lint:nobuild": "ng lint", + "lint:nobuild": "cross-env TSESTREE_SINGLE_RUN=true ng lint", "lint-fix": "npm run build:lint && ng lint --fix=true", "docs:lint": "ts-node -r tsconfig-paths/register --project ./lint/tsconfig.json ./lint/generate-docs.ts", "e2e": "cross-env NODE_ENV=production ng e2e",