Upgrade ESLint v9 to v10 and bump dependencies#814
Merged
Conversation
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@eslint/jsto v10eslint-plugin-react+eslint-plugin-react-hookswith@eslint-react/eslint-plugin(4-7x faster, ESLint v10 compatible, type-checked rules)ESLint changes
globalIgnores()for idiomatic v10 ignore patternsrecommended-type-checkedconfigpreserve-caught-errorviolations (new v10 recommended rule) by adding{ cause }to re-thrown errors@eslint-reactnaming convention warnings: refs useRefsuffix,useStatedestructuring matches conventionLogEntryobjects stable IDs soWorkspaceLogsavoids array-index keys; deriveActionMenukeys in a pre-processing steppackage-jsonrule overrides to root only so workspace packages are fully linted