项目要使用git进行代码提交时,使用叫pre-commit的git钩子,在调用git commit 命令时 ... 1 "husky": { 2 "hooks": { 3 "pre-commit": "npm run lint-staged" 4 } 5 } ...
確定! 回上一頁