Pre-commit Hooks
LaunchIt uses Husky to manage Git hooks, ensuring code quality standards are maintained before each commit.Installation
- Add Husky to your workspace root:
- Initialize Husky:
- Create the pre-commit hook:
- 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.