# san/no-lone-template
disallow unnecessary
<template>
- ⚙️ This rule is included in
"plugin:san/recommended"
.
# 📖 Rule Details
This rule aims to eliminate unnecessary and potentially confusing <template>
.
<template>
<!-- ✓ GOOD -->
<template s-if="foo">...</template>
<template s-else-if="bar">...</template>
<template s-else>...</template>
<template s-for="e in list">...</template>
<template s-slot>...</template>
<!-- ✗ BAD -->
<template>...</template>
<template/>
</template>
# 🔧 Options
Nothing.