Skip to content

chore: upgrade ESLint 9 → 10#415

Merged
Daghis merged 1 commit intomainfrom
chore/eslint-10
Mar 10, 2026
Merged

chore: upgrade ESLint 9 → 10#415
Daghis merged 1 commit intomainfrom
chore/eslint-10

Conversation

@Daghis
Copy link
Owner

@Daghis Daghis commented Mar 10, 2026

Summary

Upgrades ESLint from v9 to v10, completing the migration tracked in #391.

  • Bumps eslint to ^10.0.3
  • Adds @eslint/js and globals as explicit devDependencies (no longer bundled with ESLint 10)
  • Bumps engines.node from >=20.10.0 to >=20.19.0 (ESLint 10 minimum)
  • Fixes all 38 new lint errors from updated eslint:recommended:
    • preserve-caught-error (35 sites): adds { cause } to re-thrown errors, preserving error chains
    • no-useless-assignment (3 sites): removes redundant default: comparison = 0 in sort switches

Prep work done in #414 (removed eslint-plugin-import blocker).

Closes #391

Test plan

  • npm run check passes (typecheck + lint + format)
  • npm test — 2069 unit tests pass
  • npm run test:integration — all pass except pre-existing download-artifact-streaming failures (same on main)

🤖 Generated with Claude Code

Bump eslint to ^10.0.3 and add @eslint/js and globals as explicit
devDependencies (no longer bundled with ESLint 10). Bump Node engine
requirement to >=20.19.0 to match ESLint 10's minimum.

Fix all new lint errors from updated eslint:recommended:
- preserve-caught-error: add { cause } to re-thrown errors (35 sites)
- no-useless-assignment: remove redundant default cases (3 sites)

Closes #391

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link

codecov-commenter commented Mar 10, 2026

Codecov Report

❌ Patch coverage is 90.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.41%. Comparing base (447084b) to head (424ab3c).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/teamcity/build-configuration-clone-manager.ts 80.00% 1 Missing ⚠️
src/teamcity/build-configuration-manager.ts 75.00% 1 Missing ⚠️
src/teamcity/project-navigator.ts 50.00% 1 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #415      +/-   ##
==========================================
+ Coverage   82.39%   82.41%   +0.02%     
==========================================
  Files          49       49              
  Lines        7036     7033       -3     
  Branches     2121     2121              
==========================================
- Hits         5797     5796       -1     
+ Misses        485      484       -1     
+ Partials      754      753       -1     
Flag Coverage Δ
unittests 82.19% <90.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/teamcity/artifact-manager.ts 95.83% <100.00%> (ø)
src/teamcity/branch-discovery-manager.ts 88.61% <100.00%> (ø)
src/teamcity/build-config-manager.ts 100.00% <ø> (ø)
src/teamcity/build-configuration-resolver.ts 91.10% <100.00%> (ø)
src/teamcity/build-configuration-update-manager.ts 75.36% <100.00%> (ø)
src/teamcity/build-query-builder.ts 98.30% <100.00%> (ø)
src/teamcity/build-queue-manager.ts 91.73% <100.00%> (ø)
src/teamcity/project-manager.ts 83.33% <ø> (-0.12%) ⬇️
src/utils/async/index.ts 87.09% <100.00%> (ø)
src/teamcity/build-configuration-clone-manager.ts 79.01% <80.00%> (ø)
... and 2 more

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Daghis Daghis merged commit 3384ac4 into main Mar 10, 2026
19 checks passed
@Daghis Daghis deleted the chore/eslint-10 branch March 10, 2026 02:10
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.

Upgrade ESLint from v9 to v10

2 participants