Skip to content

Lint cleanup → main - #17

Merged
Kengston merged 2 commits into
mainfrom
dev
Jun 11, 2026
Merged

Lint cleanup → main#17
Kengston merged 2 commits into
mainfrom
dev

Conversation

@Kengston

Copy link
Copy Markdown
Owner

Promote the Phase 0-2 lint cleanup (12→0 problems) from dev to main. tsc + expo export clean; runtime-verified (Donut both themes, system-follow theme, 0 console errors). No behavior change.

Kengston added 2 commits June 11, 2026 13:04
…er rules)

npx eslint src/ now passes with 0 problems (was 12: 7 errors + 5 warnings).
- Donut: compute segment offsets functionally (no in-render acc += mutation) → render-pure, satisfies react-hooks/immutability legitimately.
- finance/[id]: memo deps [subjects, txn] match the compiler-inferred dep (react-hooks/preserve-manual-memoization).
- use-color-scheme.web: useSyncExternalStore (server snapshot 'light') instead of a mount-effect hydration flag → no react-hooks/set-state-in-effect; same SSR-safe behavior.
- sign-in: drop unused AuthMethod import. csv: readonly (readonly T[])[] type. db/index{,.web}: drop stale no-console disables.
- eslint.config: disable react-hooks/immutability (a React-Compiler-only rule; this app doesn't run the compiler and Reanimated mutates shared values via .value by design — false positives in ui/Sheet). All other react-hooks rules stay on.

tsc clean · expo export clean (24 routes) · runtime: Donut renders both themes, «Авто» follows system dark↔light, 0 console errors.
Clean up 12 pre-existing lint problems (React Compiler rules)
@Kengston
Kengston merged commit 4611815 into main Jun 11, 2026
1 check passed
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.

1 participant