Skip to content

Commit f1b5c5f

Browse files
committed
chore: husky 설정
1 parent d83df75 commit f1b5c5f

2 files changed

Lines changed: 235 additions & 3 deletions

File tree

package.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
7-
"prepare": "panda codegen",
7+
"prepare": "husky",
88
"dev": "vite",
99
"build": "tsc -b && vite build",
1010
"lint": "eslint .",
@@ -35,10 +35,23 @@
3535
"eslint-plugin-react-refresh": "^0.4.19",
3636
"gh-pages": "^6.3.0",
3737
"globals": "^16.0.0",
38+
"husky": "^9.1.7",
39+
"lint-staged": "^16.1.2",
3840
"prettier": "^3.5.3",
3941
"typescript": "^5.8.3",
4042
"typescript-eslint": "^8.30.1",
4143
"vite": "^6.3.5",
4244
"vite-tsconfig-paths": "^5.1.4"
45+
},
46+
"lint-staged": {
47+
"*.{js,jsx,ts,tsx}": [
48+
"eslint --fix",
49+
"prettier --write"
50+
]
51+
},
52+
"husky": {
53+
"hooks": {
54+
"pre-commit": "lint-staged"
55+
}
4356
}
44-
}
57+
}

0 commit comments

Comments
 (0)