Skip to content

dev: eslint exclude dist to not JavaScript heap out of memory#3870

Open
marksvc wants to merge 1 commit intomasterfrom
task/lint-rule
Open

dev: eslint exclude dist to not JavaScript heap out of memory#3870
marksvc wants to merge 1 commit intomasterfrom
task/lint-rule

Conversation

@marksvc
Copy link
Copy Markdown
Collaborator

@marksvc marksvc commented May 8, 2026

npm run lint includes processing files in ClientApp/dist. If lots of
files build up in there over time, then npm run lint can hit
"JavaScript heap out of memory" and fail.


This change is Reviewable

`npm run lint` includes processing files in ClientApp/dist. If lots of
files build up in there over time, then `npm run lint` can hit
"JavaScript heap out of memory" and fail.
@marksvc marksvc requested a review from Copilot May 8, 2026 18:08
@marksvc marksvc added the e2e Run e2e tests for this pull request label May 8, 2026
@marksvc marksvc marked this pull request as draft May 8, 2026 18:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR prevents npm run lint from scanning generated build output under ClientApp/dist, avoiding excessive memory usage (e.g., “JavaScript heap out of memory”) when that directory accumulates files over time.

Changes:

  • Exclude dist (and node_modules) from the root ClientApp/tsconfig.json TypeScript project scope.
  • Add dist/**/* to the top-level ESLint flat config ignores list.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/SIL.XForge.Scripture/ClientApp/tsconfig.json Excludes dist/node_modules from the base TS project so tooling using this tsconfig doesn’t traverse build output.
src/SIL.XForge.Scripture/ClientApp/eslint.config.mjs Ignores dist content so ESLint doesn’t lint built artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@marksvc marksvc marked this pull request as ready for review May 8, 2026 18:11
@marksvc marksvc temporarily deployed to screenshot_diff May 8, 2026 18:14 — with GitHub Actions Inactive
@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.04%. Comparing base (1feb822) to head (f6c30aa).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3870   +/-   ##
=======================================
  Coverage   81.04%   81.04%           
=======================================
  Files         630      630           
  Lines       40592    40592           
  Branches     6588     6564   -24     
=======================================
  Hits        32898    32898           
- Misses       6661     6674   +13     
+ Partials     1033     1020   -13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e Run e2e tests for this pull request testing not required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants