You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./app/page.tsx
6:7 Warning: Image elements must have an alt prop, either with meaningful text, or an empty string for decorative images. jsx-a11y/alt-text
The Images component is not warned, so this looks like the linter is confusing the Image element with Next.js's Image component instead of warning about usage of SVG image (inside the components).
I think the warnings should only be emited on Next.js's Image components (and other intended targets), not on other irrelevant components that are just named as Image.
Provide environment information
'pnpm' は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Home
Available memory (MB): 32512
Available CPU cores: 20
Binaries:
Node: 22.13.1
npm: 11.0.0
Yarn: 1.22.19
pnpm: N/A
Relevant Packages:
next: 15.2.0-canary.33 // Latest available version is detected (15.2.0-canary.33).
eslint-config-next: 15.1.6
react: 19.0.0
react-dom: 19.0.0
typescript: 5.7.3
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Linting
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
No response
The text was updated successfully, but these errors were encountered:
Link to the code that reproduces this issue
https://github.com/mikecat/next-image-false-positive-example
To Reproduce
npm install
npx next lint
Current vs. Expected behavior
npx next lint
outputs this warning forlucide-react
'sImage
component:The
Images
component is not warned, so this looks like the linter is confusing theImage
element with Next.js'sImage
component instead of warning about usage of SVG image (inside the components).I think the warnings should only be emited on Next.js's
Image
components (and other intended targets), not on other irrelevant components that are just named asImage
.Provide environment information
'pnpm' は、内部コマンドまたは外部コマンド、 操作可能なプログラムまたはバッチ ファイルとして認識されていません。 Operating System: Platform: win32 Arch: x64 Version: Windows 11 Home Available memory (MB): 32512 Available CPU cores: 20 Binaries: Node: 22.13.1 npm: 11.0.0 Yarn: 1.22.19 pnpm: N/A Relevant Packages: next: 15.2.0-canary.33 // Latest available version is detected (15.2.0-canary.33). eslint-config-next: 15.1.6 react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Linting
Which stage(s) are affected? (Select all that apply)
next build (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: