useVueValidTemplateRoot
Esta página aún no está disponible en tu idioma.
Summary
Section titled “Summary”- Diagnostic Category:
lint/nursery/useVueValidTemplateRoot - This rule has an unsafe fix.
- The default severity of this rule is information.
- This rule belongs to the following domains:
- Sources:
- Same as
vue/valid-template-root
- Same as
How to configure
Section titled “How to configure”{ "linter": { "rules": { "nursery": { "useVueValidTemplateRoot": "error" } } }}Description
Section titled “Description”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.
Examples
Section titled “Examples”Invalid
Section titled “Invalid”<template src="./foo.html">content</template><template></template><template>content</template><template src="./foo.html"></template>Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.