Skip to content

Commit

Permalink
feat: aggressive pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
andreisito committed Mar 10, 2024
1 parent 3428ba6 commit bbc19c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run prettier
npm run update-types
npm run pre-commit
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "next lint",
"tsc-check": "tsc --noEmit",
"pre-push": "npm run tsc-check && npm run lint && npm run prettier",
"pre-commit": "npm run update-types && (npm run tsc-check || true) && (npm run lint || true) && npm run prettier",
"prettier": "prettier --write .",
"update-types": "npx supabase gen types typescript --project-id 'qkkuacqtcsfjbnzmxmhk' > src/types/supabase.ts"
},
Expand Down

0 comments on commit bbc19c7

Please sign in to comment.