Nuxt · NUXT0036

Use configured Nuxt auto-imports directly

Flags value imports that duplicate the auto-imports enabled for the current Nuxt project and file.
NUXT0036vite-doctor/nuxtimportswarnAuto-fix

Run this rule

pnpm nuxt doctor --rules nuxt/imports/no-explicit-auto-import

Why it matters

Nuxt's resolved import registry already accounts for framework APIs, modules, aliases, and scanned app directories. Reusing that registry keeps imports consistent with the project's active configuration.

Remove the redundant value import. Keep explicit imports when Nuxt auto-importing is disabled or the file is excluded from transformation.

Example

Use configured app utility auto-imports directly

Before

import { formatPrice } from '~/utils/format'

const label = formatPrice(total)

After

const label = formatPrice(total)
Copyright © 2026