I work in a bunch of different projects, some of which are updated to the latest version of husky, and some which are not yet. In order to accommodate this, I have a ~/.config/husky/init.sh, and I made .huskyrc a symlink to it. This way both new and old husky versions are able to load the init script properly. This all works, but every time I run husky it complains that '~/.huskyrc' is DEPRECATED. I would expect this warning to not appear if ~/.config/husky/init.sh exists.
Specifically I would expect the flow for modern husky to be (in pseudocode):
if exists(~/.config/husky/init.sh):
run ~/.config/husky/init.sh
else if exists (~/.huskyrc):
print deprecation warning
run ~/.huskyrc
else
// do nothing
end