chore: move husky to sgh

This commit is contained in:
鲁树人
2024-12-15 03:57:08 +09:00
parent 82dbfc2d1f
commit ddc073fbcc
4 changed files with 17 additions and 5 deletions

View File

@@ -14,7 +14,7 @@
"test:coverage": "vitest run --coverage",
"preview": "vite preview",
"preview:coverage": "vite preview --outDir coverage --port 5175",
"prepare": "husky install"
"prepare": "simple-git-hooks"
},
"dependencies": {
"@chakra-ui/anatomy": "^2.2.2",
@@ -61,6 +61,7 @@
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"rollup": "^4.22.4",
"simple-git-hooks": "^2.11.1",
"terser": "^5.33.0",
"typescript": "^5.6.2",
"vite": "^5.4.7",
@@ -74,6 +75,10 @@
"*": "prettier --write --ignore-unknown",
"*.{js,jsx,ts,tsx}": "eslint --fix --report-unused-disable-directives --max-warnings 0"
},
"simple-git-hooks": {
"pre-commit": "pnpm exec lint-staged",
"pre-push": "pnpm test"
},
"prettier": {
"singleQuote": true,
"printWidth": 120,