Files
classroomio/lefthook.yml
T

18 lines
613 B
YAML
Raw Normal View History

2025-12-25 09:01:51 +00:00
# Lefthook configuration
# https://github.com/evilmartians/lefthook
pre-commit:
parallel: true
commands:
prettier:
run: pnpm format:check
fail_text: |
❌ Prettier formatting check failed!
Please run 'pnpm format:changed' or 'pnpm format' to fix formatting issues and try again.
ui-prefix:
glob: 'packages/ui/src/**/*.{svelte,ts,tsx,js,jsx}'
run: pnpm --filter @cio/ui prefix:check:staged
fail_text: |
❌ packages/ui Tailwind classes must use the ui: prefix.
Run 'pnpm --filter @cio/ui prefix' to fix staged UI files, then commit again.