Prettier precommit hook
This commit is contained in:
parent
9cc9df985c
commit
1149c12df1
4
.husky/pre-commit
Normal file
4
.husky/pre-commit
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npx pretty-quick --staged
|
||||||
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -3,6 +3,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "A Fosscord server written in Node.js",
|
"description": "A Fosscord server written in Node.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"prepare": "husky install",
|
||||||
"postinstall": "npx patch-package",
|
"postinstall": "npx patch-package",
|
||||||
"start": "node dist/bundle/start.js",
|
"start": "node dist/bundle/start.js",
|
||||||
"start:api": "node dist/api/start.js",
|
"start:api": "node dist/api/start.js",
|
||||||
@ -51,7 +52,9 @@
|
|||||||
"@types/sharp": "^0.31.0",
|
"@types/sharp": "^0.31.0",
|
||||||
"@types/ws": "^8.5.3",
|
"@types/ws": "^8.5.3",
|
||||||
"express": "^4.18.1",
|
"express": "^4.18.1",
|
||||||
|
"husky": "^8.0.0",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
|
"pretty-quick": "^3.1.3",
|
||||||
"typescript": "^4.8.3"
|
"typescript": "^4.8.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user