Skip to content

no-deprecated-inline-template

Reports the inline-template attribute.

Vue 3 removed it, so the content of the tag is not used as the template of the component.

To fix, use a slot.

Reported
<template>
<C :title.sync="t" @click.native="go" @keyup.13="k" inline-template v-is="c" />
...
<tr is="vue:row" v-model:title="t" @keyup.enter="k"></tr>
...
angular:
lint:
rules:
no-deprecated-inline-template: warn # off, warn (default), error
html:
lint:
rules:
no-deprecated-inline-template: warn # off, warn (default), error
svelte:
lint:
rules:
no-deprecated-inline-template: warn # off, warn (default), error
vue:
lint:
rules:
no-deprecated-inline-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-inline-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-inline-template full