Some project support loading environment variables from .env files to allow permanent variables to be committed and shared among project members. Examples include create-react-app and Docker Compose. I think it would be great if yarnhook did as well. That way, a project team could share a variable such as YARNHOOK_DRYRUN=true without requiring each member to set it in a global .bashrc file.
Though this may seem to limit individual preference in environment variables, yarnhook could also recognize .env.local, which overrides .env and is usually listed in .gitignore