chore(deps): upgrade eslint to v10#47
Merged
Merged
Conversation
- eslint ^9.39.4 -> ^10.4.0, @eslint/js -> ^10.0.1 - eslint-plugin-react-hooks ^7.0.1 -> ^7.1.1 (eslint 10 peer requirement) - declare globals explicitly: eslint 10 no longer pulls it transitively, fixing a phantom import in eslint.config.mjs Resolve 11 issues surfaced by eslint 10 / react-hooks 7.1.1 new rules: - 2x no-useless-assignment: drop dead initial assignment in Font/Theme switchers - 1x DashboardPage: move setLoading(true) into async IIFE (behavior-equivalent) - 8x justified eslint-disable for legitimate React patterns (latest-ref, ref-as-cache, reset-on-prop, mount-fetch); renderer has no component-test harness, so avoid risky refactors of working code Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
摘要
升級 eslint v9 → v10 生態,Renovate 第二波第二輪的綠燈項目之一。
改動
eslint^9.39.4 → ^10.4.0、@eslint/js→ ^10.0.1eslint-plugin-react-hooks^7.0.1 → ^7.1.1(eslint 10 peer 要求,連帶升避免 peer conflict)globals:eslint 10 不再 transitive 帶入,修正 eslint.config.mjs 的 phantom importeslint 10 / react-hooks 7.1.1 新規則處置(11 處)
逐處讀懂脈絡後分類:
let nextIndex = currentIndex是 dead code(switch 各 case 覆寫、default return),改let nextIndex: numbersetLoading(true)移進 async IIFE,行為等價、規避 set-state-in-effect驗證
🤖 Generated with Claude Code