小编Ama*_*Lnd的帖子

Eslint Vue 3 解析错误:'>' expected.eslint

将 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)

谢谢 !

eslint vue.js vuejs3

4
推荐指数
1
解决办法
907
查看次数

标签 统计

eslint ×1

vue.js ×1

vuejs3 ×1