error Expected indentation of 2 spaces but found 4 indent

error Expected indentation of 2 spaces but found 4 indent

如何最简单的解决eslint 语法报错,本方法适用于所有的eslint语法报错

1在点击输出 找到 no-multiple-empty-lines 复制该命令

![里插入图片描述](https://img-blog.csdnimg.cn/20200225225338210.png?x-oss-process=i在这里插入图片描述

2在.eslintrc.js文件中新建该rules规则只需要让该值为0 即可

如 ‘no-multiple-empty-lines’ :0

重新启动项目即可

在这里插入图片描述

发布了5 篇原创文章 · 获赞 0 · 访问量 70

猜你喜欢

转载自blog.csdn.net/qq_37945051/article/details/104507635