SKILL.md
唯讀
名稱
fix
描述
當出現 lint 錯誤、格式問題,或要在 commit 程式碼前確保能順利通過 CI 時使用。
修正 Lint 與格式問題
操作步驟
- 執行
yarn prettier來修復格式問題 - 執行
yarn linc檢查剩餘的 lint 問題 - 回報任何需要手動修復的項目
常見錯誤
- 對錯誤的檔案執行 prettier -
yarn prettier只會格式化有變更的檔案 - 忽略 linc 錯誤 - 這會導致 CI 失敗,請在 commit 前完成修復
當出現 lint 錯誤、格式問題,或要在 commit 程式碼前確保能順利通過 CI 時使用。
yarn prettier 來修復格式問題yarn linc 檢查剩餘的 lint 問題yarn prettier 只會格式化有變更的檔案