Vize

ecosystem/nuxt-prefer-nuxt-link

Prefer NuxtLink for internal application links.

Default severity Presets Automatic fix Options
warning nuxt No None

Applies to: Vue SFC templates and blocks, with script context where the rule requires it.

Bad

The internal settings destination uses a plain anchor in a Nuxt application.

<template>
  <a href="/settings">Settings</a>
</template>

Good

NuxtLink handles the same internal destination through the Nuxt router.

<template>
  <NuxtLink to="/settings">Settings</NuxtLink>
</template>

Configuration (Vite+)

import { defineConfig } from "@vizejs/vite-plugin/vite-plus";

export default defineConfig({}).withVue({
  linter: {
    "preset": "incremental",
    "rules": {
      "ecosystem/nuxt-prefer-nuxt-link": "warn"
    }
  },
});

Then run vp run lint.