Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/eslint-plugin-vuekit. Modern ESLint plugin for Vue 3 eslint-plugin-vuekit.sxzz.dev
eslint plugin vue
Something went wrong. Try again.
1.2 kB · 53 lines
Markdown
at main
pageClass: rule-details sidebarDepth: 0 title: vue/valid-template-root description: enforce valid template root since: v3.11.0 #
vue/valid-template-root #
enforce valid template root
- ⚙️ This rule is included in the following preset configs:
*.configs.essential*.configs["strongly-recommended"]*.configs.recommended
This rule checks whether every template root is valid.
📖 Rule Details #
This rule reports the template root in the following cases:
<!-- There is no root element -->
<template></template>
<!-- The root with src attribute is not empty -->
<template src="foo.html"><div></div></template>
🔧 Options #
Nothing.
🚀 Version #
This rule was introduced in eslint-plugin-vue v3.11.0