ESLint: parsing error: unexpected token.txt

ESLint: parsing error: unexpected token <

参考:https://segmentfault.com/q/1010000014502279
下边,作者:丹Daniella
1.vue-2.0-simple-routing-example 项目下,执行命令:
cnpm install eslint-plugin-vue
2.在项目下,修改.eslintrc.js 文件,
加一个字段
"parser": "vue-eslint-parser",
搞定!
发布了197 篇原创文章 · 获赞 61 · 访问量 11万+

猜你喜欢

转载自blog.csdn.net/weixin_42193179/article/details/104907345