# san/no-multiple-template-root
disallow adding multiple root nodes to the template
- ⚙️ This rule is included in all of
"plugin:san/essential"
,"plugin:san/strongly-recommended"
and"plugin:san/recommended"
.
# 📖 Rule Details
This rule checks whether template contains single root element valid for San.
<!-- The root is text -->
<template>Lorem ipsum</template>
<!-- There are multiple root elements -->
<template>
<div>hello</div>
<div>hello</div>
</template>
<!-- The root element has `s-for` directives -->
<template>
<div s-for="item in items"/>
</template>
<!-- The root element is `<template>` or `<slot>` -->
<template>
<slot />
</template>
# 🔧 Options
Nothing.