JS.VUE.VALID.TEMPLATE.ROOT
Enforce valid template root
This rule checks whether every template root is valid.
Rule Details
This rule reports the template root in the following cases:
{'vue/valid-template-root': ['error']}
Copy
<!-- There is no root element -->
<template></template>
{'vue/valid-template-root': ['error']}
Copy
<!-- The root with src attribute is not empty -->
<template src="foo.html"><div></div></template>
Options
Nothing.