chore: add husky git hooks and commitlint

This commit is contained in:
2026-03-13 19:26:17 +01:00
parent 2bc03a037b
commit a9b076a5ec
6 changed files with 245 additions and 3 deletions

View File

@@ -8,7 +8,7 @@
"build": "bun --bun vite build",
"start": "bun ./build/index.js",
"preview": "bun --bun vite preview",
"prepare": "svelte-kit sync || echo ''",
"prepare": "svelte-kit sync || echo '' && husky",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
@@ -23,6 +23,8 @@
"auth:schema": "bun x @better-auth/cli generate --config src/lib/server/auth.ts --output src/lib/server/db/auth.schema.ts --yes"
},
"devDependencies": {
"@commitlint/cli": "^20.4.4",
"@commitlint/config-conventional": "^20.4.4",
"@eslint/compat": "^2.0.2",
"@eslint/js": "^9.39.2",
"@playwright/test": "^1.58.1",
@@ -41,6 +43,8 @@
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-svelte": "^3.14.0",
"globals": "^17.3.0",
"husky": "^9.1.7",
"lint-staged": "^16.3.3",
"playwright": "^1.58.1",
"postgres": "^3.4.8",
"prettier": "^3.8.1",
@@ -56,6 +60,15 @@
"vitest": "^4.1.0",
"vitest-browser-svelte": "^2.1.0"
},
"lint-staged": {
"*.{js,ts,svelte}": [
"prettier --write",
"eslint --fix"
],
"*.{json,css,md,yml,yaml,html}": [
"prettier --write"
]
},
"dependencies": {
"bancho.js": "^0.12.3",
"discord.js": "^14.25.1"