Skip to content

Clean up the 9 outstanding ESLint warnings in web/ #437

Closed

Description

@gkhngyk

Problem

npx eslint src in web/ reports 9 warnings. None break CI today, but they add noise to every lint run and hide new warnings.

Current list:

File Line Warning
src/app/[locale]/(dashboard)/dashboard/citations/page.tsx 965 Unused eslint-disable directive (react-hooks/exhaustive-deps)
src/app/[locale]/(dashboard)/dashboard/competitors/page.tsx 130 VisibilityBar defined but never used
src/app/[locale]/(dashboard)/dashboard/competitors/page.tsx 181 ColHead defined but never used
src/app/[locale]/(dashboard)/dashboard/shopping/page.tsx 693 <img> instead of next/image
src/app/[locale]/(dashboard)/dashboard/traffic/page.tsx 123 isCloud assigned but never used
src/app/opengraph-image.tsx 47 Unused eslint-disable directive (no-img-element)
src/components/ai-provider-avatar.tsx 168 <img> instead of next/image
src/components/auth/sign-in-form.tsx 33 data assigned but never used
src/components/auth/sign-up-form.tsx 6 Link defined but never used

Notes

  • The unused vars/directives are safe deletions.
  • The two <img> warnings need judgment: ai-provider-avatar renders tiny remote favicons and shopping/page.tsx renders product images from arbitrary merchant domains — if switching to next/image isn't practical (remote patterns config), a scoped eslint-disable-next-line with a reason comment is an acceptable resolution. Say which you chose in the PR.

Acceptance criteria

  • npx eslint src in web/ reports 0 warnings.
  • npx tsc --noEmit and npm test still pass; no visual changes.
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

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions