当你使用vue/cli3.0的时,有可能出现雁阵规则

 ESLint: Expected indentation of 2 spaces but found 4. (indent)

 

解决方法

1、在vue.config.js中 添加     lintOnSave: false,  false不能加引号

解决vue/cli3.0 语法验证规则  ESLint: Expected indentation of 2 spaces but found 4. (indent)

 

 

 

然后新建 .eslintignore    在根目录下

添加   然后重新启动

*.vue
*.js
解决vue/cli3.0 语法验证规则  ESLint: Expected indentation of 2 spaces but found 4. (indent)

 

 

参考地址有

https://blog.csdn.net/weixin_44678104/article/details/100094937  解决了VScode格式报错

https://www.cnblogs.com/sjie/p/9884362.html  解决了控制台报错格式错误

 

相关文章:

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