# no-deprecated-inline-template

Rule `vue/no-deprecated-inline-template`. Disallow using deprecated `inline-template` attribute (in Vue.js 3.0.0+)

- Source: vue
- Technologies: Vue
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 42.4M weekly downloads of presets that enable it
- Trend: +88.4% last quarter
- Rank: #346 by reach, #338 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-deprecated-inline-template` | yes | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-deprecated-inline-template.html) |
| Biome | `nursery/noVueDeprecatedInlineTemplate` | yes | no | group nursery, since 2.6.5 | [docs](https://biomejs.dev/linter/rules/no-vue-deprecated-inline-template/) |

## Code examples

### Incorrect: the rule reports this

```vue
  <my-component inline-template>
    <div>
      <p>These are compiled as the component's own template.</p>
      <p>Not parent's transclusion content.</p>
    </div>
  </my-component>
</template>
```

### Correct: the rule accepts this

```vue
<my-comnponent />
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import vue from "eslint-plugin-vue";

export default [
  {
    plugins: { vue },
    rules: {
      "vue/no-deprecated-inline-template": "error",
    },
  },
];
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noVueDeprecatedInlineTemplate": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Vue recommended](https://lintradar.dev/presets/vue-recommended.md) | ESLint | `eslint-plugin-vue` | 118 | 9.5M | +46.6% |
| [Vue essential](https://lintradar.dev/presets/vue-essential.md) | ESLint | `eslint-plugin-vue` | 85 | 9.5M | +46.6% |
| [Vue strongly recommended](https://lintradar.dev/presets/vue-strongly-recommended.md) | ESLint | `eslint-plugin-vue` | 110 | 9.5M | +46.6% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |
| [Nuxt](https://lintradar.dev/presets/nuxt.md) | ESLint | `@nuxt/eslint-config` | 188 | 1.5M | +72.8% |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |

## Related rules

- [vue/no-deprecated-html-element-is](https://lintradar.dev/rules/vue/no-deprecated-html-element-is.md): Disallow using deprecated the `is` attribute on HTML elements (in Vue.js 3.0.0+)
- [vue/no-deprecated-router-link-tag-prop](https://lintradar.dev/rules/vue/no-deprecated-router-link-tag-prop.md): Disallow using deprecated `tag` property on `RouterLink` (in Vue.js 3.0.0+)
- [vue/no-deprecated-functional-template](https://lintradar.dev/rules/vue/no-deprecated-functional-template.md): Disallow using deprecated the `functional` template (in Vue.js 3.0.0+)
- [vue/no-deprecated-scope-attribute](https://lintradar.dev/rules/vue/no-deprecated-scope-attribute.md): Disallow deprecated `scope` attribute (in Vue.js 2.5.0+)
- [vue/no-deprecated-filter](https://lintradar.dev/rules/vue/no-deprecated-filter.md): Disallow using deprecated filters syntax (in Vue.js 3.0.0+)
- [vue/no-deprecated-slot-attribute](https://lintradar.dev/rules/vue/no-deprecated-slot-attribute.md): Disallow deprecated `slot` attribute (in Vue.js 2.6.0+)

---

Web page: https://lintradar.dev/rules/vue/no-deprecated-inline-template. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
