Prettier precommit hook

This commit is contained in:
Madeline 2023-01-05 18:56:39 +11:00
parent 9cc9df985c
commit 1149c12df1
3 changed files with 7 additions and 0 deletions

4
.husky/pre-commit Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx pretty-quick --staged

BIN
package-lock.json generated

Binary file not shown.

View File

@ -3,6 +3,7 @@
"version": "1.0.0",
"description": "A Fosscord server written in Node.js",
"scripts": {
"prepare": "husky install",
"postinstall": "npx patch-package",
"start": "node dist/bundle/start.js",
"start:api": "node dist/api/start.js",
@ -51,7 +52,9 @@
"@types/sharp": "^0.31.0",
"@types/ws": "^8.5.3",
"express": "^4.18.1",
"husky": "^8.0.0",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.3",
"typescript": "^4.8.3"
},
"dependencies": {