Skip to content

no-deprecated-functional-template

Reports <template functional>.

Vue 3 removed functional single file templates, so the component does not work.

To fix, write a function component.

Reported
<template>
...
<template scope="p" slot-scope="q" functional></template>
<tr is="vue:row" v-model:title="t" @keyup.enter="k"></tr>
</template>
angular:
lint:
rules:
no-deprecated-functional-template: warn # off, warn (default), error
html:
lint:
rules:
no-deprecated-functional-template: warn # off, warn (default), error
svelte:
lint:
rules:
no-deprecated-functional-template: warn # off, warn (default), error
vue:
lint:
rules:
no-deprecated-functional-template: warn # off, warn (default), error

Enabled by the presets: html/eslint-plugin-vue-recommended.

Suppress one line with sudsy-disable-next-line no-deprecated-functional-template in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
eslint-plugin-vue no-deprecated-functional-template full