运行lint-fix后, 这几类没有自动修复,请问这几种有方法解决吗?

来源:2-4 安装使用eslint和editorconfig以及precommit

Mr_xwl

2020-09-18

error Expected ‘=’ and instead saw '’;
‘setCookie’ is defined but never used;
error Unexpected tab character no-tab;
Unnecessary escape character: \s;
Do not access Object.prototype method ‘hasOwnProperty’ from target object;

写回答

1回答

Jokcy

2020-09-18

不能,这不仅仅是风格问题,这些代码自动给你删除的话,可能会出现一些意料之外的错误,所以eslint不给你自动修复

0
1
Mr_xwl
好的,非常感谢?
2020-09-18
共1条回复

Vue核心技术 Vue+Vue-Router+Vuex+SSR实战精讲

深入讲解Vue核心技术,展示Vue应用开发中的各种问题和解决方案

3168 学习 · 853 问题

查看课程