JS.VUE.NO.DEPRECATED.INLINE.TEMPLATE
Disallow using deprecated 'inline-template' attribute (in Vue.js 3.0.0+)
Rule Details
This rule reports deprecated inline-template
attributes (removed in Vue.js v3.0.0+).
See Migration Guide - Inline Template Attribute (https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html) for more details.
{'vue/no-deprecated-inline-template': ['error']}
Copy
<template>
<!-- GOOD -->
<my-comnponent />
<!-- BAD -->
<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>
Options
Nothing.
Further Reading
- Migration Guide - Inline Template Attribute (https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html)
- Vue RFCs - 0016-remove-inline-templates (https://github.com/vuejs/rfcs/blob/master/active-rfcs/0016-remove-inline-templates.md)