以下内容亲测好用,就在搬到这里方便以后学习了。
1、Expected indentation of 14 spaces but found 16 ?
原因:缩进未按照 Eslint 代码规范
解决方法:(1)找到项目下的 .eslintrc.js
文件 (2)对应位置添加 'indent': ['off', 2],
参考:
解决报错 Vue Expected indentation of x spaces but found x
以下内容亲测好用,就在搬到这里方便以后学习了。
原因:缩进未按照 Eslint 代码规范
解决方法:(1)找到项目下的 .eslintrc.js
文件 (2)对应位置添加 'indent': ['off', 2],
参考:
解决报错 Vue Expected indentation of x spaces but found x