原文:總是報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