Skip to content

feat(infra): update to eslint v10#643

Merged
peter-leonov-ch merged 4 commits into
ClickHouse:mainfrom
eryue0220:feat/upgrade-to-eslint-10
May 9, 2026
Merged

feat(infra): update to eslint v10#643
peter-leonov-ch merged 4 commits into
ClickHouse:mainfrom
eryue0220:feat/upgrade-to-eslint-10

Conversation

@eryue0220
Copy link
Copy Markdown
Contributor

@eryue0220 eryue0220 commented Mar 31, 2026

Summary

Update eslint to v10

Checklist

Copilot AI review requested due to automatic review settings March 31, 2026 12:10
Copy link
Copy Markdown
Contributor

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 updates ESLint from v9 to v10 as a maintenance update for the project's development dependencies. The upgrade includes version bumps to ESLint and related packages, cleanup of transitive dependencies in the lock file, removal of version constraints that were preventing the v10 upgrade, and an improvement to error handling in the Node.js stream utility by adding error cause chaining for better debugging.

Changes:

  • Update ESLint from v9.39.4 to v10.1.0 and @eslint/js from v9.39.4 to v10.0.1
  • Enhance error handling in stream.ts by adding error cause chaining to preserve original error context
  • Remove dependabot ignore rules for ESLint v10 versions

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
package.json Updated eslint and @eslint/js to v10
package-lock.json Updated all dependencies and removed transitive packages no longer needed in v10
.github/dependabot.yml Removed version constraints that were blocking ESLint v10 updates
packages/client-node/src/utils/stream.ts Added error cause property when re-throwing RangeError to improve debugging

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

Comment thread package.json Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copilot AI review requested due to automatic review settings April 7, 2026 13:27
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.


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

Comment thread packages/client-node/src/utils/stream.ts
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

Comment thread package.json
Comment on lines 64 to 67
"@vitest/coverage-v8": "^4.1.0",
"apache-arrow": "^21.0.0",
"eslint": "^9.39.4",
"eslint": "^10.2.0",
"eslint-config-prettier": "^10.1.8",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback in a new PR

@peter-leonov-ch peter-leonov-ch merged commit df37f5e into ClickHouse:main May 9, 2026
52 of 61 checks passed
peter-leonov-ch added a commit that referenced this pull request May 9, 2026
## Summary

Applies review feedback from [#643
(discussion_r3213961603)](#643 (comment)):
ESLint v10 requires Node `^20.19.0`, but the root `engines.node` still
advertises `>=20`, allowing 20.0–20.18 where ESLint v10 may not run
reliably.

- Bump root `engines.node` from `>=20` to `>=20.19.0` in `package.json`.

Other `package.json` files in the repo are unaffected —
`examples/{node,web}` and `tests/clickhouse-test-runner` pin ESLint v9,
and `tests/clickhouse-test-runner` already declares `>=20.19.0`.

## Checklist

- [x] A human-readable description of the changes was provided to
include in CHANGELOG

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: peter-leonov-ch <209667683+peter-leonov-ch@users.noreply.github.com>
Co-authored-by: Peter Leonov <peter.leonov@clickhouse.com>
@eryue0220 eryue0220 deleted the feat/upgrade-to-eslint-10 branch May 11, 2026 05:53
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.

3 participants