create-neat
create-neat copied to clipboard
在 commitlint 中添加验证本地 git 是否开启大小写敏感的规则
Is your feature request related to a problem? Please describe it
之前在对文件进行大小写的更改的时候,发现提交的时候似乎没有验证文件名大小写变更的规则,之后如果涉及到文件夹大小写的更改,如果没有配置的话git会检测不到大小写的变更,会导致比较繁琐的修复工作
Describe the solution you'd like
在commitlint或者husky的地方添加相关的提交前验证规则即可,具体我还得去调研一下最佳实践
Teachability, documentation, adoption, migration strategy
No response
What is the motivation / use case for changing the behavior?
为了规范代码的提交
在husky中可能会好点,因为有些人可能不使用 commitlint 来提交代码,可能会直接用 git commit,编写个脚本然后再husky中执行