Skip to content

Commit

Permalink
chore: setup lefthook
Browse files Browse the repository at this point in the history
  • Loading branch information
tfkhdyt committed Sep 27, 2023
1 parent 2ea587c commit a8e9642
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pre-push:
parallel: true
commands:
lint:
glob: '**/*.ts'
run: bun run lint
taze:
run: bunx taze --failOnOutdated

pre-commit:
commands:
format:
glob: '**/*.ts'
run: bun run format
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"type": "module",
"scripts": {
"dev": "bun run --watch ./src/main.ts",
"format": "prettier -w ./src/",
"lint": "tsc --noEmit && eslint --fix src/",
"format": "prettier -w ./src",
"lint": "tsc --noEmit && eslint --fix ./src",
"build": "tsc",
"generate": "drizzle-kit generate:sqlite",
"migrate": "bun run ./src/db/postgres/migrate.ts",
Expand Down

0 comments on commit a8e9642

Please sign in to comment.