關於編輯器Extra semicolon和Expected indentation of 4 spaces導致編輯器一片黃線警告的解決辦法(快應用編輯器爲例)

如圖所示,雖然不影響運行效果,但是視覺效果不好,很難受,下面就說一下如何修改 Extra semicolon 全局搜索semi,找到'semi': ["error", "always"],將這個改爲'semi': 0即可 Expected indentation of 4 spaces but found 2 tabs.hap-eslint(indent) 全局搜索indent,改爲"indent
相關文章
相關標籤/搜索