Pular para o conteúdo

useVueValidTemplateRoot

Este conteúdo não está disponível em sua língua ainda.

biome.json
{
"linter": {
"rules": {
"nursery": {
"useVueValidTemplateRoot": "error"
}
}
}
}

Enforce valid Vue <template> root usage.

This rule reports only root-level <template> elements. If the <template> has a src attribute, the element must be empty. Otherwise, the element must contain content.

<template src="./foo.html">content</template>
<template></template>
<template>content</template>
<template src="./foo.html"></template>