Skip to content

chore(deps): bump eslint to v10 (+ react-hooks 7, react-refresh 0.5)#58

Merged
alex-clickhouse merged 1 commit into
mainfrom
chore/eslint-10
Jun 16, 2026
Merged

chore(deps): bump eslint to v10 (+ react-hooks 7, react-refresh 0.5)#58
alex-clickhouse merged 1 commit into
mainfrom
chore/eslint-10

Conversation

@alex-clickhouse

Copy link
Copy Markdown
Collaborator

Dependabot's eslint 10 / @eslint/js 10 PRs failed npm ci because eslint-plugin-react-hooks@5 and eslint-plugin-react-refresh@0.4 only peer-support eslint <=9. Bump all four together so they resolve:

  • eslint ^9.17.0 -> ^10.4.1
  • @eslint/js ^9.17.0 -> ^10.0.1
  • eslint-plugin-react-hooks ^5.0.0 -> ^7.1.1
  • eslint-plugin-react-refresh ^0.4.16 -> ^0.5.3

eslint 10 enables two new recommended rules that flagged pre-existing issues (the build runs eslint . first, so these block CI):

  • preserve-caught-error: attach cause when rethrowing the timeout error in ClickHouseClient (adds ES2022.Error to tsconfig lib so the Error cause option typechecks; compile target stays ES2020).
  • no-useless-assignment: drop the redundant parsed initializer and remove ~300 lines of unreachable legacy code in decodeJSONColumn (the version dispatch returns unconditionally before it).

Full suite (983 tests), lint, web + electron builds all pass.

Dependabot's eslint 10 / @eslint/js 10 PRs failed `npm ci` because
eslint-plugin-react-hooks@5 and eslint-plugin-react-refresh@0.4 only
peer-support eslint <=9. Bump all four together so they resolve:

- eslint            ^9.17.0 -> ^10.4.1
- @eslint/js        ^9.17.0 -> ^10.0.1
- eslint-plugin-react-hooks   ^5.0.0  -> ^7.1.1
- eslint-plugin-react-refresh ^0.4.16 -> ^0.5.3

eslint 10 enables two new recommended rules that flagged pre-existing
issues (the build runs `eslint .` first, so these block CI):

- preserve-caught-error: attach `cause` when rethrowing the timeout
  error in ClickHouseClient (adds ES2022.Error to tsconfig lib so the
  Error cause option typechecks; compile target stays ES2020).
- no-useless-assignment: drop the redundant `parsed` initializer and
  remove ~300 lines of unreachable legacy code in decodeJSONColumn
  (the version dispatch returns unconditionally before it).

Full suite (983 tests), lint, web + electron builds all pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@alex-clickhouse
alex-clickhouse merged commit 75377fd into main Jun 16, 2026
1 check passed
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