I have one repo that contains several React projects in different directories. For the structure
> Repo Root
> .git
> CRA Project1
> CRA Project2
There are git hooks defined in the .git
in the repo root for global things.
But I want to add hooks specifically for each project. Say, running custom linter with pre-commit in CRA Project1
but not in CRA Project2
.
How can I add hooks per project if global hook are already defined?