将 Eslint 添加到我的项目后,我在模板部分的 .vue 文件中收到此错误
Parsing error: '>' expected.eslint
Run Code Online (Sandbox Code Playgroud)
在这个代码块中
Parsing error: '>' expected.eslint
Run Code Online (Sandbox Code Playgroud)
基本上,向任何 HTML 标签添加属性都会引发此错误,
我使用的是带有“vue-ts”Vite 模板的 Vue 3。
VSCode 是我的编辑器,我显然是 ESlint 插件 :)
这是我的 .eslintrc 配置
<template>
<div class="flex justify-center h-40">
<div class="bg-blue-500 w-40 h-full"></div>
</div>
</template>
Run Code Online (Sandbox Code Playgroud)
谢谢 !