chore: add husky pre-commit and pre-push hooks
Some checks failed
Build and Deploy / quality (push) Failing after 1m53s
Build and Deploy / build-and-deploy (push) Failing after 1m3s

This commit is contained in:
lila 2026-04-30 01:15:14 +02:00
parent 4d64d50598
commit 35e54014b3
5 changed files with 304 additions and 33 deletions

View file

@ -6,11 +6,22 @@
"scripts": {
"build": "pnpm --filter @lila/shared build && pnpm --filter @lila/db build && pnpm --filter @lila/api build",
"dev": "concurrently --names \"api,web\" -c \"magenta.bold,green.bold\" \"pnpm --filter @lila/api dev\" \"pnpm --filter @lila/web dev\"",
"prepare": "husky",
"test": "vitest",
"test:run": "vitest run",
"lint": "eslint .",
"format": "prettier --write .",
"format:check": "prettier --check ."
"format:check": "prettier --check .",
"typecheck": "tsc --build --noEmit"
},
"lint-staged": {
"**/*.{ts,tsx}": [
"prettier --write",
"eslint --fix"
],
"**/*.{js,mjs,json,md,css,html}": [
"prettier --write"
]
},
"packageManager": "pnpm@10.33.1",
"devDependencies": {
@ -22,6 +33,8 @@
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.5.2",
"husky": "^9.1.7",
"lint-staged": "^16.4.0",
"prettier": "^3.8.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.57.1",