在webstrom中写代码以后使用ctrl+alt+l规范了代码
但是还是报Expected indentation of 0 spaces but found 2
这些错误
如何解决呢

 

 
总是报Expected indentation of 0 spaces but found 2如何解决
image.png


文件中加入
"indent": ["off", 2]
就可以了
当修改了.eslintrc.js文件后

使用npm run dev编译才能生效

 

=========

转载自:https://www.jianshu.com/p/a76f74feff49

相关文章:

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