Vize

vue/no-deprecated-functional-template

Disallow the functional attribute on the SFC <template>.

Default severity Presets Automatic fix Options
error essential, happy-path, nuxt, ecosystem, opinionated No None

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

Bad

The SFC template has the removed functional attribute and reads the old props context.

<template functional>
  <div>{{ props.msg }}</div>
</template>

Good

The ordinary template omits functional and reads the component binding msg directly.

<template>
  <div>{{ msg }}</div>
</template>

Configuration (Vite+)

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

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

Then run vp run lint.