We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86235e5 commit d973e3eCopy full SHA for d973e3e
1 file changed
lefthook.yml
@@ -4,3 +4,14 @@ pre-commit:
4
jobs:
5
- name: 🚫 Prevent main branch commits
6
run: exit 1
7
+
8
+# Mirror the CI code-quality check locally so unformatted / lint-failing pushes
9
+# are caught before they hit the PR. Note: GitButler uses its own git
10
+# implementation and only runs hooks when "Run hooks" is enabled in its
11
+# settings - with that off, this protects plain `git push` only.
12
+pre-push:
13
+ jobs:
14
+ - name: format
15
+ run: pnpm exec oxfmt --check .
16
+ - name: lint
17
+ run: pnpm exec oxlint .
0 commit comments