Repository navigation
fix(check): give check:local's ESLint the gate's memory - #97
Merged
flowtricks merged 1 commit intoNov 24, 2026
Merged
Conversation
npm run dev stopped starting: check:local, its first step, aborted in ESLint with "node: stopped by SIGABRT". I noticed it after Homebrew updated Node to 26.13.1, but the update is not the cause: Node 22, the version .nvmrc pins, aborts the same way on plain main. The abort is "JavaScript heap out of memory". Type-aware lint of the whole tree now peaks at about 4.7 GB on main, past Node's default heap of about 4 GB. The full gate has given the same ESLint run 6 GB since 1.1.1 (scripts/gate/runTests.ts), so the gate passes while check:local, which runs ESLint without that setting, aborts. runEslint now passes the same --max-old-space-size=6144. The two values are kept equal by a comment, because the gate compiles to CommonJS and cannot import the policy module. With it, check:local passes on main and npm run dev starts again.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
npm run devstopped starting on main (1.4.18):check:local, its first step, aborts in ESLint withnode: stopped by SIGABRT. It showed up after a Homebrew update to Node 26.13.1, but Node is not the cause: Node 22, the version.nvmrcpins, aborts the same way on plain main.Cause
The abort is
FATAL ERROR: ... JavaScript heap out of memory. Type-aware lint of the whole tree now peaks at about 4.7 GB on main, past Node's default heap of about 4 GB. The full gate has given the same ESLint run 6 GB since 1.1.1 (--max-old-space-size=6144inscripts/gate/runTests.ts), so the gate passes, whilecheck:localruns ESLint throughrunEslintinscripts/policy/checks.mtswithout that setting and aborts.Change
runEslintpasses the same--max-old-space-size=6144. A comment ties the two values together, since the gate compiles to CommonJS and cannot import the policy module.How to check
npm run check:localaborts in ESLint with SIGABRT.npm run check:localpasses every step, andnpm run devstarts.If one value is preferred over two kept equal by a comment, moving the heap to a shared place is a small follow-up.