Setup Pre-Commit Hooks What This Sets Up - Husky pre-commit hook - lint-staged running Prettier on all staged files - Prettier config (if missing) - typecheck and test scripts in the pre-commit hook Steps 1. Detect package manager Check for (npm), (pnpm), (yarn), (bun). Use whichever is present. Default to npm if unclear. 2. Install dependencies Install as devDependencies: 3. Initialize Husky This creates dir and adds to package.json. 4. Create Write this file (no shebang needed for Husky v9+): Adapt : Replace with detected package manager. If repo has no or script in package.json, omit those…