Customization
Code Quality
Maintain high code quality standards with automated pre-commit hooks
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:
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: