Skip to content

Commit 117bdea

Browse files
committed
add deno git precommit hook
1 parent 980f84b commit 117bdea

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.hooks/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/hook.sh"
3+
4+
deno fmt --check supabase/*
5+
deno lint supabase/*

deno.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"tasks": {
3+
"hook": "deno run --allow-read --allow-run --allow-write https://deno.land/x/[email protected]/mod.ts"
4+
}
5+
}

0 commit comments

Comments
 (0)