1. 程式人生 > >webstorm配置eslint【標記錯誤,修復錯誤】

webstorm配置eslint【標記錯誤,修復錯誤】

默認 try span mage IT 代碼區域 pro 個人經驗 TP

項目中經常用到eslint語法,結合個人經驗,用webstorm配置eslint

“文件”-》“默認設置”-》“語言&框架”-》“Code Quality Tools”-》“ESLint”

技術分享圖片

如圖片所示操作後,在“項目目錄”“相應的文件上”“代碼區域塊”右鍵可看到“Fix ESLint Problems”點擊即可修復錯誤

可參考鏈接,https://juejin.im/entry/5a9ff...

webstorm配置eslint【標記錯誤,修復錯誤】