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=ierror Expected indentation of 2 spaces but found 4 indent

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

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

重新启动项目即可

error Expected indentation of 2 spaces but found 4 indent

相关文章:

  • 2022-12-23
  • 2021-07-29
  • 2021-12-28
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2021-04-08
猜你喜欢
  • 2022-01-19
  • 2021-09-02
  • 2021-09-17
  • 2021-04-22
  • 2022-01-03
  • 2021-10-21
  • 2021-10-18
相关资源
相似解决方案