🧹 [コードヘルス] BusinessCardコンポーネントのimgタグをnext/imageに移行#73
Conversation
Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
🎯 What:
src/components/BusinessCard.tsx内の無効化されていた Next.js Image lint ルールを解決し、標準の<img>タグをnext/imageの<Image>コンポーネントに置き換えました。💡 Why: Next.js の
<Image>を使用することで、画像の自動最適化が有効になり、パフォーマンスと保守性が向上します。また、不要な eslint-disable コメントを削除することでコードがクリーンになります。✅ Verification:
next.config.tsでavatars.githubusercontent.comのドメインが許可されていることを確認しました。width={160}とheight={160}を明示的に指定し、既存のスタイリング (h-40 w-40) に合わせました。crossOrigin="anonymous"属性を保持しました。npm run lintを実行し、該当ファイルの警告が解消されたことを確認しました。npm run test -- --runおよびnpm run buildが正常に通過することを確認しました。✨ Result: lint の警告が解消され、Next.js の推奨する最適な画像レンダリング方法に準拠するようになりました。
PR created automatically by Jules for task 4260618201021424436 started by @is0692vs