Closed koshuang closed 3 years ago
希望能在 commit 時,順便做 eslint 檢查且自動 fix,以避免到時候在 CI 上才發現 linting 的錯誤。
postinstall
commitlint
Issue
希望能在 commit 時,順便做 eslint 檢查且自動 fix,以避免到時候在 CI 上才發現 linting 的錯誤。
Solution
postinstall
讓他永遠去裝 husky 並去新增對應的 git hookcommitlint
package,讓 pre-commit hook 也可以順便檢查 commit message 是否有符合我們制定的標準。Implement
Document