老师, 我想问一下, 我的前端代码在subfoler里面, 怎么配置husky hook?
来源:2-2 配置 eslint、 prettier 和 commitlint 规范工程

qq_skywalker_23855555
2021-03-11
“husky”: "^5.1.3"
项目结构为:
`-project
–.git
–frontend
—src
—package.json
–server
`
当我安装玩husky, 运行 npx husky add .husky/pre-commit “yarn lint-staged”,
错误:can’t create hook, .husky directory doesn’t exist
写回答
1回答
-
Nolan
2021-03-11
应该不行吧,或者查一下husky文档,看看能不能指定文件
012021-03-11
相似问题