Skip to content

Commit

Permalink
feat: added husky and lint staged for pre commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
JaleelB committed Aug 28, 2024
1 parent eaec015 commit c8745e6
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm exec lint-staged
16 changes: 15 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,18 @@
"db:push": "drizzle-kit push --config=drizzle.config.ts",
"db:migrate": "node -r esbuild-register ./server/db/migrate.ts",
"db:generate": "drizzle-kit generate --config=drizzle.config.ts",
"db:studio": "drizzle-kit studio"
"db:studio": "drizzle-kit studio",
"prepare": "husky"
},
"lint-staged": {
"*.{ts,tsx,md,mdx}": [
"eslint --fix",
"prettier --write",
"tsc-files --noEmit"
],
"*.{js,jsx,json}": [
"prettier --write"
]
},
"dependencies": {
"@hookform/resolvers": "^3.6.0",
Expand Down Expand Up @@ -94,10 +105,13 @@
"drizzle-kit": "^0.22.8",
"eslint": "^8.57.0",
"eslint-config-next": "14.2.4",
"husky": "^9.1.5",
"lint-staged": "^15.2.9",
"postcss": "^8.4.39",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"tailwindcss": "^3.4.4",
"tsc-files": "^1.1.4",
"typescript": "^5.5.2",
"vitest": "^2.0.3"
}
Expand Down
Loading

0 comments on commit c8745e6

Please sign in to comment.