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

在webstrom中写代码以后使用ctrl alt l规范了代码但是还是报Expected indentation of spaces but found 这些错误如何解决呢 在 文件中加入 indent : off , 就可以了当修改了.eslintrc.js文件后 使用npm run dev编译才能生效 ...

2020-06-22 00:35 0 2548 推荐指数:

查看详情

vue,vscode常见:Expected indentation of 10 spaces but found 6.

1、 解决办法一关闭 ESLint 这个检查规则打开 .eslintrc.js 配置文件,加入一行配置 “indent”:[“off”,2]然后我们就可以看到原来的报错没有了 当然,既然我们使用代码规范插件,一般来说我们应当适应这种规范的写法,所以我们也可以将我们的 Tab ...

Fri Jun 25 19:39:00 CST 2021 0 392
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM