Skip to main content

Pre-commit Hooks

LaunchIt uses Husky to manage Git hooks, ensuring code quality standards are maintained before each commit.

Installation

  1. Add Husky to your workspace root:
  1. Initialize Husky:
  1. Create the pre-commit hook:
This will run the following checks before each commit:
  • ESLint for code style and potential errors
  • Prettier for consistent formatting
  • TypeScript compilation check
  • Unit tests

Skipping Hooks

In cases where you need to bypass the pre-commit hooks (not recommended), you can use:
Skipping pre-commit hooks should be done with caution as it bypasses quality checks.

Manual Quality Checks

You can also run the quality checks manually: