vue/no-multiple-template-root | eslint-plugin-vue (original) (raw)

disallow adding multiple root nodes to the template

📖 Rule Details

This rule checks whether template contains single root element valid for Vue 2.

🔧 Options

json

{
  "vue/no-multiple-template-root": ["error", {
    "disallowComments": false
  }]
}

"disallowComments": true

🚀 Version

This rule was introduced in eslint-plugin-vue v7.0.0

🔍 Implementation