Commit b4ae731
Bundled together, not sequential: react-hooks 5.2.0 only peer-supports
eslint up to ^9.0.0, so eslint 10 required react-hooks 7.1.1 in the
same migration (confirmed via npm view peerDependencies before
starting, per Dependabot #4/#7 both being red).
react-hooks 6.x/7.x folded the React Compiler's lint rules into
`recommended`, surfacing real new violations, triaged rule-by-rule:
- preserve-caught-error (new eslint 10 core rule): two e2e fixture
throws now attach `cause` to the original error.
- no-useless-assignment (new eslint 10 core rule): a genuinely dead
initializer in SchemaIntake's detect().
- react-hooks/immutability: QuickPanel's refreshFrecency/openMain
moved above the effects that reference them (order-only, same
runtime closures).
- react-hooks/refs, react-hooks/purity: two legitimate false
positives (a headless-hook ref-spread idiom in Tabs.tsx, an
intentional Date.now() read in a relative-time badge) documented
with disable-line comments.
- react-hooks/set-state-in-effect: tuned off project-wide in
eslint.config.js -- flags an established, deliberate 15-instance
reset-state-on-id-change idiom across the codebase; rewriting all
15 call sites is real behavioral refactor work well beyond this
bump's scope, so this follows .golangci.yml's own "tune when
defaults fight house style" precedent instead of scattering 15
disable-line comments or silently regressing behavior.
Also bumped @eslint/js to match eslint 10's flat-config recommended
preset. typescript-eslint (8.66+) and eslint-plugin-react-refresh
(0.5.3) already peer-support eslint 10, so neither needed a bump.
Full local suite green: eslint, tsc, boundaries, vitest (227/227),
frontend build, go vet, go build (desktop+server), file-loc-limit,
rules-frontmatter, root-file-naming.
Claude-Session: https://claude.ai/code/session_01FYwojT8GdUbYSoggbvEFft
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 3357b22 commit b4ae731
9 files changed
Lines changed: 666 additions & 292 deletions
File tree
- frontend
- e2e/fixtures
- src
- app
- configure
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
22 | 37 | | |
23 | 38 | | |
24 | 39 | | |
| |||
0 commit comments