在webstrom中寫代碼以后使用ctrl+alt+l規范了代碼
但是還是報Expected indentation of 0 spaces but found 2
這些錯誤
如何解決呢
在
文件中加入
"indent": ["off", 2]
就可以了
當修改了.eslintrc.js文件后
使用npm run dev編譯才能生效
在webstrom中寫代碼以后使用ctrl+alt+l規范了代碼
但是還是報Expected indentation of 0 spaces but found 2
這些錯誤
如何解決呢
在
文件中加入
"indent": ["off", 2]
就可以了
當修改了.eslintrc.js文件后
使用npm run dev編譯才能生效
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。