Skip to content

fix(#253): resolve all 8 ESLint warnings#260

Merged
ChristopherRotnes merged 1 commit into
masterfrom
fix/253-resolve-eslint-warnings
May 17, 2026
Merged

fix(#253): resolve all 8 ESLint warnings#260
ChristopherRotnes merged 1 commit into
masterfrom
fix/253-resolve-eslint-warnings

Conversation

@ChristopherRotnes
Copy link
Copy Markdown
Owner

@ChristopherRotnes ChristopherRotnes commented May 17, 2026

Summary

  • Splits bodymap.jsx into bodymap.js (constants/utils) and bodymap.jsx (components only) — fixes 5 fast-refresh warnings across 20 import sites
  • Moves useTheme + ThemeCtx from theme.jsx to hooks.js; theme.jsx now exports only ThemeProvider — fixes 1 fast-refresh warning
  • Moves useNavHints from PageShell.jsx to hooks.js — fixes 1 fast-refresh warning
  • Replaces the standalone useEffect in App.jsx that called setIntroOpen synchronously with inline checks in the existing Supabase auth handlers — fixes 1 set-state-in-effect warning

No logic changes. No runtime impact — bundle output is identical, context object identity is preserved.

Test plan

  • npm run lint0 problems (0 errors, 0 warnings)
  • npm test → 92 tests passing
  • Manual smoke: body map renders, theme toggle works, nav hints toggle works, intro modal shows on first login

Closes #253

🤖 Generated with Claude Code

- Split bodymap.jsx → bodymap.js (constants/utils) + bodymap.jsx (components only)
  to fix 5 fast-refresh warnings; updated all 20 import sites
- Moved useTheme + ThemeCtx from theme.jsx to hooks.js; theme.jsx now only
  exports ThemeProvider (1 fast-refresh warning)
- Moved useNavHints from PageShell.jsx to hooks.js (1 fast-refresh warning)
- Replaced standalone setState-in-effect useEffect in App.jsx with inline
  checks inside the existing Supabase auth event handlers (1 warning)
- Bumped version to 1.5.14

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://white-island-090dfd003-260.westeurope.7.azurestaticapps.net

@ChristopherRotnes ChristopherRotnes merged commit 60c239d into master May 17, 2026
2 checks passed
@ChristopherRotnes ChristopherRotnes deleted the fix/253-resolve-eslint-warnings branch May 17, 2026 16:57
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.

As a developer I want all ESLint warnings resolved so I can have a clean lint output and full hot-reload in dev

1 participant