Skip to content

feat(infra): update to eslint v10#643

Open
eryue0220 wants to merge 3 commits intoClickHouse:mainfrom
eryue0220:feat/upgrade-to-eslint-10
Open

feat(infra): update to eslint v10#643
eryue0220 wants to merge 3 commits intoClickHouse: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
Comment on lines +50 to +67
@@ -64,7 +64,7 @@
"@vitest/coverage-istanbul": "^4.1.0",
"@vitest/coverage-v8": "^4.1.0",
"apache-arrow": "^21.0.0",
"eslint": "^9.39.4",
"eslint": "^10.1.0",
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

The PR description states that "Unit and integration tests covering the common scenarios were added" but no test files are shown in this diff. Please verify that tests were actually added as part of this PR, or clarify what was meant by the checklist item.

Copilot uses AI. Check for mistakes.
@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 on lines 35 to 38
throw new Error(
`The response length exceeds the maximum allowed size of V8 String: ${MAX_STRING_LENGTH} characters.`,
{ cause: err },
)
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

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

The error chaining change using { cause: err } appears to be unrelated to the ESLint v10 update described in the PR. The PR description only mentions "Update eslint to v10" but this code change in stream.ts is a functional change that improves error diagnostics. Consider either: 1) documenting why this change is necessary for ESLint v10 compatibility, or 2) splitting this into a separate PR for better change tracking. This helps maintain clear commit history and makes it easier to understand the rationale for each change.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

update: remove this will emit a lint error

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.

2 participants