Complete the code to install Husky in your project.
npm install [1] --save-devHusky is installed as a development dependency using npm install husky --save-dev.
Complete the command to initialize Husky in your project.
npx husky [1]Use npx husky install to set up Husky hooks in your project.
Fix the error in the command to add a pre-commit hook that runs tests.
npx husky add .husky/pre-commit "[1]"
The pre-commit hook should run tests, so the command is npm test.
Fill both blanks to add a pre-push hook that runs lint and format checks.
npx husky add .husky/pre-push "[1] && [2]"
The pre-push hook runs lint and format checks using npm run lint and npm run format.
Fill all three blanks to add a prepare script in package.json that installs Husky and sets up Git hooks.
"prepare": "npm [1] husky && npx husky [2] && npx husky [3]"
The prepare script installs Husky, runs husky install, and adds a pre-commit hook to run tests.
