.. | ||
clean.sh | ||
folderize-components.sh | ||
hooks-logger.js | ||
README.md | ||
setup-component-structure.js |
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:
- Linting - Checks and fixes code style issues
- Formatting - Ensures consistent code formatting
- 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
.