Skip to content

Lint: fix 2 pre-existing eslint problems (NutritionTimeline, App) #20

Description

@KrishP147

Pre-existing on main (ef30a38), found during #3 verification. npx eslint src/App.jsx src/pages/Profile.jsx src/components/charts/NutritionTimeline.jsx:

  1. frontend/src/components/charts/NutritionTimeline.jsx:91:41 — error no-unused-vars: 'Icon' is defined but never used.
  2. frontend/src/App.jsx:188:6 — warning react-hooks/exhaustive-deps: useEffect missing dep isPasswordRecovery. (Not Small fixes: Profile delete ReferenceError in finally, dead 'Remember me', undefined Tailwind classes, light-theme ChangePassword #9's App.jsx L192 loading-class item.)

Out of scope (already in #9 item 1): frontend/src/pages/Profile.jsx:325:12 — error no-undef: 'error' is not defined (finally block).

Acceptance: npm run lint clean once #9 also lands; no behavior change in App auth effect (verify recovery flow if dep added, or justify eslint-disable).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions