Vize

vapor/no-inline-template

Disallow deprecated inline-template attribute.

Default severity Presets Automatic fix Options
error nuxt, opinionated No None

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

Bad

LegacyCard uses the inline-template attribute for its child markup.

<template>
  <LegacyCard inline-template>
    <p>Profile</p>
  </LegacyCard>
</template>

Good

The markup is passed through the default slot instead of an inline template.

<template>
  <LegacyCard>
    <template #default>
      <p>Profile</p>
    </template>
  </LegacyCard>
</template>

Configuration (Vite+)

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

export default defineConfig({}).withVue({
  linter: {
    "preset": "incremental",
    "rules": {
      "vapor/no-inline-template": "error"
    }
  },
});

Then run vp run lint.