Skip to content

Upgrade ESLint v9 to v10 and bump dependencies#814

Merged
EhabY merged 3 commits intomainfrom
update-dependencies
Mar 2, 2026
Merged

Upgrade ESLint v9 to v10 and bump dependencies#814
EhabY merged 3 commits intomainfrom
update-dependencies

Conversation

@EhabY
Copy link
Collaborator

@EhabY EhabY commented Mar 2, 2026

Summary

  • Bump runtime and dev dependencies (axios, electron, typescript-eslint, etc.)
  • Upgrade ESLint from v9 to v10 and @eslint/js to v10
  • Replace eslint-plugin-react + eslint-plugin-react-hooks with @eslint-react/eslint-plugin (4-7x faster, ESLint v10 compatible, type-checked rules)

ESLint changes

  • Use globalIgnores() for idiomatic v10 ignore patterns
  • Replace two React config blocks (hooks + JSX) with a single recommended-type-checked config
  • Fix preserve-caught-error violations (new v10 recommended rule) by adding { cause } to re-thrown errors
  • Fix @eslint-react naming convention warnings: refs use Ref suffix, useState destructuring matches convention
  • Give LogEntry objects stable IDs so WorkspaceLogs avoids array-index keys; derive ActionMenu keys in a pre-processing step
  • Scope package-json rule overrides to root only so workspace packages are fully linted

EhabY added 3 commits March 2, 2026 13:20
Update axios 1.13.5→1.13.6, find-process 2.0→2.1, strip-ansi 7.1→7.2, electron 40.4→40.6, typescript-eslint 8.56.0→8.56.1, eslint-plugin-package-json 0.88→0.89, jsonc-eslint-parser 2.4→3.1, globals 17.3→17.4, and pnpm 10.29→10.30.
- Bump eslint to ^10.0.2 and @eslint/js to ^10.0.1
- Replace eslint-plugin-react + eslint-plugin-react-hooks with
  @eslint-react/eslint-plugin (recommended-type-checked config)
- Use globalIgnores() for idiomatic v10 global ignore patterns
- Fix preserve-caught-error violations (new v10 recommended rule)
  by adding { cause } to re-thrown errors in catch blocks
- Fix @eslint-react naming-convention warnings: rename refs to
  use Ref suffix, rename useState destructuring to match convention
- Give LogEntry objects stable IDs so WorkspaceLogs avoids
  array-index-key; derive ActionMenu keys in a pre-processing step
- Disable package-json rules that don't apply to VS Code extensions
  (scoped to root only so workspace packages are fully linted)
@EhabY EhabY self-assigned this Mar 2, 2026
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

LGTM!

@EhabY EhabY merged commit 57fa4c2 into main Mar 2, 2026
6 checks passed
@EhabY EhabY deleted the update-dependencies branch March 2, 2026 13:05
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