Skip to content

Commit 17a2283

Browse files
test commit
1 parent 1e30d84 commit 17a2283

3 files changed

Lines changed: 212 additions & 1 deletion

File tree

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint",
10-
"format": "prettier --write ."
10+
"format": "prettier --write .",
11+
"prepare": "husky"
12+
},
13+
"lint-staged": {
14+
"*.{js,jsx,ts,tsx,css,md,json}": "prettier --write"
1115
},
1216
"dependencies": {
1317
"@auth/mongodb-adapter": "^3.9.1",
@@ -38,6 +42,8 @@
3842
"@types/react-dom": "^19",
3943
"eslint": "^9",
4044
"eslint-config-next": "15.3.2",
45+
"husky": "^9.1.7",
46+
"lint-staged": "^16.2.3",
4147
"prettier": "^3.6.2",
4248
"tailwindcss": "^4",
4349
"tw-animate-css": "^1.2.9",

0 commit comments

Comments
 (0)