小编emy*_*y96的帖子

html 文件中的 eslint 错误:解析错误:意外的标记 <

为什么 eslint 给我这个错误 Parsing error: Unexpected token < in html file? 我该如何解决这个错误?我的 .eslint.json 配置:

{
    "env": {
        "browser": true,
        "commonjs": true,
        "es2021": true
        },
    "extends": [
        "airbnb-base"
    ],
    "parserOptions": {
        "ecmaVersion": 12
    },
    "rules": {
        "strict": "off"
    }
}
Run Code Online (Sandbox Code Playgroud)

html eslint

12
推荐指数
2
解决办法
7948
查看次数

标签 统计

eslint ×1

html ×1