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


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

 

 

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

使用npm run dev编译才能生效


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM