Skip to content

vue/no-parsing-error

禁止在<template>中出现解析错误

为什么

这条规则用于报告<template>中的语法错误,例如指令中的脚本语法错误、插值中的脚本语法错误、HTML语法错误等。

建议

修复<template>中的语法错误。

错误示例

vue
<template>
  {{ . }}
</template>
<template>
  {{ . }}
</template>

正确示例

vue
<template>
  {{ foo }}
</template>
<template>
  {{ foo }}
</template>

参考