Nuxt · NUXT0006

Use NuxtImg for app images

Finds Nuxt project code that should use the supported NuxtImg pattern instead.
NUXT0006vite-doctor/nuxt-imageimagesinfoSuggestion

Run this rule

pnpm nuxt doctor --rules nuxt-image/prefer-nuxtimg

Why it matters

Images affect accessibility, layout stability, and performance. Nuxt Image gives the framework enough information to optimize them.

Use <NuxtImg> with alt text and dimensions for optimized Nuxt images.

Example

Use NuxtImg

Before

<template>
  <img src="/hero.png">
</template>

After

<template>
  <NuxtImg src="/hero.png" alt="Hero" width="1200" height="630" />
</template>
Copyright © 2026