Add husky for on-commit prettier and configure in package
This commit is contained in:
parent
010117bed2
commit
62584138dc
3 changed files with 125 additions and 5 deletions
14
package.json
14
package.json
|
|
@ -22,7 +22,8 @@
|
|||
"check": "tsc -b --emitDeclarationOnly",
|
||||
"dev": "tsc -b --watch",
|
||||
"dev:client": "node scripts/build-client.mjs --watch",
|
||||
"start": "node dist/server/index.js"
|
||||
"start": "node dist/server/index.js",
|
||||
"prepare": "husky"
|
||||
},
|
||||
"dependencies": {
|
||||
"express": "^5.3.0",
|
||||
|
|
@ -33,6 +34,15 @@
|
|||
"@types/express": "^5.0.6",
|
||||
"@types/node": "^26.6.6",
|
||||
"@types/three": "^0.187.0",
|
||||
"esbuild": "^0.28.2"
|
||||
"esbuild": "^0.28.2",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^17.6.1",
|
||||
"prettier": "^3.10.1"
|
||||
},
|
||||
"allowScripts": {
|
||||
"esbuild@0.28.2": true
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js,jsx,ts,tsx,json,css,md}": "prettier --write"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue