Skip to content

Lint: fix real correctness bugs (no-undef, TDZ, immutability) #183

Description

@Trosper3

Problem

Three of the 24 lint errors are genuine correctness bugs, not style issues:

  • components/hooks/ProblemProvider/Problem.js:51no-undef: 'requestInfo' is not defined. Likely a typo or a missing import/destructure.
  • components/hooks/ProblemProvider/Reducer.js:211react-hooks/immutability: "Cannot access variable before it is declared" (temporal-dead-zone bug).
  • components/pageblocks/ProblemRowReact.js:163react-hooks/immutability: "This value cannot be modified".

Fix

Investigate and fix each individually — these are small, unrelated root causes bundled here because each is a quick, targeted fix rather than a refactor.

Acceptance

npx eslint . no longer reports these three errors.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions