Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,14 @@ pre-commit:
jobs:
- name: 🚫 Prevent main branch commits
run: exit 1

# Mirror the CI code-quality check locally so unformatted / lint-failing pushes
# are caught before they hit the PR. Note: GitButler uses its own git
# implementation and only runs hooks when "Run hooks" is enabled in its
# settings - with that off, this protects plain `git push` only.
pre-push:
jobs:
- name: format
run: pnpm exec oxfmt --check .
- name: lint
run: pnpm exec oxlint .