eslint 检查.vue文件都报错 [eslint] Parsing error: Unexpected token <
这是我的.eslintrc.js文件
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"globals": {
"CryptoAgent": true,
},
"rules": {
"no-console": 0,
"indent": [
1,
"tab",
{
"SwitchCase": 1
}
],
"linebreak-style": [
2,
"windows"
],
"quotes": [
2,
"single"
],
"semi": [
2,
"never"
]
}
};
貌似是你的 vue 文件多敲了一个'<'哦