husky(7.0.1)配置

350 阅读1分钟

commitlint

1,echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js

如果是用powershell文件会用utf-16le编码导致之后运行报错

解法:手动创建commitlint.config.js文件然后把module.exports = {extends: ['@commitlint/config-conventional']};粘贴进去