[Bug]: Replace <img> tags with next/image to satisfy Next.js lint warnings
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
Summary
The project currently triggers @next/next/no-img-element lint warnings because raw <img> tags are used in a few components. These should be reviewed and replaced with Image from next/image where appropriate.
Page
N/A
Details
Running the lint command reports @next/next/no-img-element warnings in the following files:
src/components/Layout/HomeContent.jssrc/components/MDX/MDXComponents.tsx
Warning count:
HomeContent.js: 4 occurrencesMDXComponents.tsx: 3 occurrences
Using raw <img> elements in a Next.js app bypasses built-in image optimization and triggers lint warnings. Replacing them with Image from next/image would align the codebase with Next.js best practices.
Note:
Some usages, especially in MDX-related rendering, may require additional handling and should be updated carefully rather than through a blind replacement.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
src/components/Layout/HomeContent.js と src/components/MDX/MDXComponents.tsx を調査し、その後 lint コマンドを実行して、報告された 7 件の出現箇所を確認します。適切な raw img 要素を next/image に置き換え、MDX のレンダリングを慎重に扱ったうえで、@next/next/no-img-element の警告が解消されたことを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, next.js
- 領域
- documentation, frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 68/100