# Husky Git Hooks - Optional Activation ## How to Enable Husky Locally ### Option 1: Environment Variable (Session Only) ```bash export HUSKY_ENABLED=1 ``` ### Option 2: Local File (Persistent) ```bash touch .husky-enabled ``` ### Option 3: Global Configuration ```bash git config --global husky.enabled true ``` ## Available Hooks - **pre-commit**: Runs `npm run lint-fix` before commits - **commit-msg**: Validates commit message format ## Disable Hooks ```bash unset HUSKY_ENABLED rm .husky-enabled ``` ## Why This Approach? - Hooks are committed to git for consistency - Hooks don't run unless explicitly enabled - Each developer can choose to use them - No automatic activation on other systems