Expected indentation of 0 spaces but found 2

﹏ヽ暗。殇╰゛Y 2022-03-15 14:22 387阅读 0赞

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

![Image 1][]

image.png

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

使用npm run dev编译才能生效

[Image 1]:

发表评论

表情:
评论列表 (有 0 条评论,387人围观)

还没有评论,来说两句吧...

相关阅读