Skip to content

解决 ESLint 提示“Parsing error: Unexpected token <”的问题 ​

参考资料 ​

解决方法 ​

修改 ESLint 配置文件(.eslintrc.js):

json
"parserOptions": {
    "ecmaFeatures": {
        "jsx": true,
        "modules": true
    }
}

‍