Skip to content

Resolve ESLint tech debt: next/image + exhaustive-deps#9

Merged
f1shyfang merged 1 commit into
mainfrom
chore/lint-tech-debt
May 30, 2026
Merged

Resolve ESLint tech debt: next/image + exhaustive-deps#9
f1shyfang merged 1 commit into
mainfrom
chore/lint-tech-debt

Conversation

@f1shyfang
Copy link
Copy Markdown
Owner

Summary

Clears the 12 pre-existing ESLint warnings left after the flat-config migration (#8), via two parallel subagents partitioned by directory.

  • @next/next/no-img-element: all flagged <img> converted to next/image <Image>. Dynamic/blob/remote sources use unoptimized (no next.config remotePatterns change, no runtime host errors); dimensions and layout preserved (explicit width/height or fill on the existing relative parent).
  • react-hooks/exhaustive-deps: fetch/filter callbacks wrapped in useCallback with correct deps and added to the effect dep arrays (no eslint-disable, no infinite-loop risk).

Verification

  • npm run lint0 problems (was 12 warnings).
  • npx tsc --noEmit → 0 errors.

🤖 Generated with Claude Code

Convert all flagged <img> elements to next/image <Image> (unoptimized for
dynamic/blob/remote sources, preserving dimensions and layout), and fix all
react-hooks/exhaustive-deps warnings by wrapping fetch/filter callbacks in
useCallback with correct deps. npm run lint now reports 0 problems.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 30, 2026 09:35
@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lyra-hackathon Ready Ready Preview, Comment May 30, 2026 9:36am

@f1shyfang f1shyfang merged commit 11b27c7 into main May 30, 2026
1 of 3 checks passed
@f1shyfang f1shyfang deleted the chore/lint-tech-debt branch May 30, 2026 09:36
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

2 participants