> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getlaunch.it/llms.txt
> Use this file to discover all available pages before exploring further.

# 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

1. Add Husky to your workspace root:

```bash theme={null}
pnpm add -Dw husky@latest
```

2. Initialize Husky:

```bash theme={null}
pnpm dlx husky init
```

3. Create the pre-commit hook:

```bash theme={null}
echo "cd web && pnpm run fix:all" > .husky/pre-commit
```

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:

```bash theme={null}
git commit -m "your message" --no-verify
```

<Warning>
  Skipping pre-commit hooks should be done with caution as it bypasses quality checks.
</Warning>

## Manual Quality Checks

You can also run the quality checks manually:

```bash theme={null}
cd app
pnpm run fix:all # Runs all checks and fixes
pnpm run lint # Only ESLint
pnpm run format # Only Prettier
pnpm run typecheck # Only TypeScript
```
