# 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>
Now loading...

# 🔧 Options

Nothing.

# 🔍 Implementation

Last Updated: 10/26/2021, 7:23:11 AM