Skip to content

lint: stop loading type information that no rule uses - #418

Merged
gnidan merged 1 commit into
mainfrom
ci-lint-no-project-service
Nov 16, 2026
Merged

gnidan merged 1 commit into
mainfrom
ci-lint-no-project-service

Conversation

@gnidan

@gnidan gnidan commented Nov 16, 2026

Copy link
Copy Markdown
Member

The lint step in CI ran out of JavaScript heap memory on several runs today (for example run 43965363173 on #412). eslint.config.js set parserOptions.projectService: true, which makes typescript-eslint build TypeScript programs for every package in the monorepo. No rule in the config needs type information: tseslint.configs.recommended is the set without type checks, and the react-hooks rules do not use types either. So the setting only cost memory, and the cost grows with the repository.

This removes the setting. On main, eslint . gives exactly the same messages before and after (0 errors, 168 warnings, identical file, rule and line for each), and its peak memory falls from about 3.9 GB to 0.7 GB (13 s to 2.6 s locally).

If we later want type-aware rules, we can turn the project service back on together with those rules.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-11-16 22:32 UTC

@gnidan
gnidan merged commit facc495 into main Nov 16, 2026
8 checks passed
@gnidan
gnidan deleted the ci-lint-no-project-service branch November 16, 2026 22:27
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.

1 participant