qwrk-laconic-core/scripts
2025-02-27 10:52:05 -08:00
..
hooks-logger.js chore: update pre-commit hooks to remove staged file references and clean up logger output 2025-02-27 10:52:05 -08:00
README.md Add precommit hook 2025-02-27 10:48:04 -08:00

Scripts and Hooks

This directory contains utility scripts for the project.

Lefthook Configuration

The project uses Lefthook for git hooks to ensure code quality before commits.

Pre-commit Hooks

The pre-commit hooks run:

  1. Linting - Checks and fixes code style issues
  2. Formatting - Ensures consistent code formatting
  3. Type Checking - Verifies TypeScript types

These hooks are configured in lefthook.yaml in the root directory.

Usage

The hooks run automatically when you commit code. You can also run them manually:

# Run all pre-commit hooks
pnpm test:hooks

# Run individual commands
pnpm lint:fix
pnpm format:fix
pnpm check-types
pnpm fix-all

VS Code Integration

TypeScript errors will show up directly in VS Code thanks to the configuration in .vscode/settings.json.