DEV Community

Discussion on: Enforce Husky Pre-Commit With ESLint & Prettier In Monorepo

Collapse
 
leelhn2345 profile image
Nelson Lee

Under the scripts section, rather than "prepare": "cd .. && husky install frontend/.husky", what works for me is "prepare": "cd && husky install .husky".

The former setup another git hook in my frontend folder, while the latter set up the git hook in the root folder.