deps: bump eslint from 9.39.5 to 10.11.0 in /frontend - #52
Merged
Merged
Conversation
magicapple123
force-pushed
the
deps/eslint-10
branch
from
October 2, 2026 05:37
f3c39f2 to
f19027d
Compare
magicapple123
force-pushed
the
deps/eslint-10
branch
from
October 2, 2026 05:56
f19027d to
8495f3f
Compare
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.
Supersedes #46(Dependabot 只升了 eslint 本体、未配对升级插件链,Install 步骤死于 ERESOLVE;本 PR 做成组升级)。
成组升级清单(npm view peer 实测核对)
^3…^8 || ^9 || ^10✓^9 || ^10✓(已支持)^8.57.0 || ^9.0.0 || ^10.0.0✓(8.71.0 已支持)eslint.config.js 调整(1 处,保持 lint 基线不变)
react-hooks v7 的
configs.recommended默认启用了 Compiler 系新规则(set-state-in-effect / refs / use-memo / immutability / preserve-manual-memoization 等),在现有代码上产生 83 个新 error(70×set-state-in-effect、10×refs、4×use-memo、2×preserve-manual-memoization、1×immutability——npm run lint实测分布)。这批规则对应 React Compiler 的优化前置检查,修复需要重构大量 effect 逻辑,超出依赖升级 PR 的范围。因此本 PR 改为显式声明 v5 recommended 等价的两条经典规则:
react-hooks/rules-of-hooks: "error"react-hooks/exhaustive-deps: "warn"lint 输出与升级前完全一致:0 error / 11 warning(全部为存量)。Compiler 系规则的采用建议另开独立 PR 分批处理。
本地验证(Node 22.22.2,全新 npm install + rebase 后复验)
npm run test:123 files / 801 tests 全绿npm run lint:0 errors(11 条存量 warning)npm run typecheck:通过npm run build(--outDir仓库外):通过