From b13412c57a3f511a4b36aadb3ac5c22ccbadaf2d Mon Sep 17 00:00:00 2001 From: Sawyer Date: Thu, 3 Sep 2026 22:22:40 -0700 Subject: [PATCH] Lint: drop the tsc --build prerequisite and ESLint projectService (CL-7416) The strict/stylistic tseslint rule sets plus core rules use no type information, so parserOptions.projectService (which required a prior tsc --build to resolve referenced projects' emitted dist/*.d.ts, and the 6GB heap flag to support it) was pure overhead. Verified eslint's findings are byte-for-byte identical before and after (0 errors, 10 warnings); bun run lint drops from ~61s to ~12s. --- eslint.config.ts | 8 -------- package.json | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/eslint.config.ts b/eslint.config.ts index 7a6eea09e4..6da5ec1983 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -60,14 +60,6 @@ export default defineConfig( }, ], }, - languageOptions: { - parserOptions: { - projectService: { - allowDefaultProject: [], - }, - tsconfigRootDir: import.meta.dirname, - }, - }, }, { files: ["scripts/**/*.ts"], diff --git a/package.json b/package.json index a52505308f..099d56801d 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "check": "bun run typecheck && bun run lint && bun run test && bun run check:structural", "check:all": "bun run check && bun run check:packages", "typecheck": "bun run scripts/typecheck.ts", - "lint": "bunx tsc --build tsconfig.build.json && prettier --check --cache . && NODE_OPTIONS=--max-old-space-size=6144 eslint --cache .", + "lint": "prettier --check --cache . && eslint --cache .", "format": "prettier --write .", "hooks:install": "bun run scripts/hooks-install.ts", "prepare": "bun run hooks:install",