Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🔧 Add pre-commit hook with Biome linting via husky and lint-staged (#2228)
Luke Vella13ced05f9cff
diff --git a/.husky/pre-commit b/.husky/pre-commitnew file mode 100644index 000000000..cb2c84d5c--- /dev/null+++ b/.husky/pre-commit@@ -0,0 +1 @@+pnpm lint-stageddiff --git a/package.json b/package.jsonindex 64bdc11ef..78770317a 100644--- a/package.json+++ b/package.json@@ -29,18 +29,24 @@"release": "./scripts/create-release.sh","screenshots": "pnpm --filter @rallly/screenshots capture","sherif": "pnpx sherif@latest",- "sherif:fix": "pnpx sherif@latest --fix"+ "sherif:fix": "pnpx sherif@latest --fix",+ "prepare": "husky"},"devDependencies": {"@biomejs/biome": "^2.3.11","@playwright/test": "^1.57.0","dotenv-cli": "^8.0.0",+ "husky": "^9.1.7",+ "lint-staged": "^16.2.7","prettier": "^3.5.3","prisma": "^7.3.0","turbo": "^2.6.3","typescript": "^5.8.2","vitest": "^4.0.16"},+ "lint-staged": {+ "*.{js,ts,jsx,tsx,json,css}": "biome check --write --no-errors-on-unmatched"+ },"engines": {"node": "24"},diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 5ab969af4..3d489910c 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -17,6 +17,12 @@ importers:dotenv-cli:specifier: ^8.0.0version: 8.0.0+ husky:+ specifier: ^9.1.7+ version: 9.1.7+ lint-staged:+ specifier: ^16.2.7+ version: 16.2.7prettier:specifier: ^3.5.3version: 3.8.1@@ -83,7 +89,7 @@ importers:version: 8.1.0([email protected])'@vercel/analytics':specifier: ^1.5.0- version: 1.6.1([email protected](@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])+ version: 1.6.1([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])dayjs:specifier: ^1.11.13version: 1.11.19@@ -122,7 +128,7 @@ importers:version: 6.0.0(@types/[email protected])([email protected])next-seo:specifier: ^6.1.0- version: 6.8.0([email protected](@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ version: 6.8.0([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])pg:specifier: ^8.17.1version: 8.18.0@@ -5996,6 +6002,10 @@ packages:resolution: {integrity: sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==}engines: {node: '>=18'}+ resolution: {integrity: sha512-SroPvNHxUnk+vIW/dOSfNqdy1sPEFkrTk6TUtqLCnBlo3N7TNYYkzzN7uSD6+jVjrdO4+p8nH7JzH6cIvUem6A==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==}engines: {node: '>= 12'}@@ -6071,6 +6081,10 @@ packages:resolution: {integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==}engines: {node: '>=18'}+ resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}@@ -6694,6 +6708,9 @@ packages:resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==}engines: {node: '>=6'}+ resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==}+resolution: {integrity: sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==}@@ -6939,6 +6956,10 @@ packages:resolution: {integrity: sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q==}engines: {node: '>=18'}+ resolution: {integrity: sha512-CQ+bEO+Tva/qlmw24dCejulK5pMzVnUOFOijVogd3KQs07HnRIgp8TGipvCCRT06xeYEbpbgwaCxglFyiuIcmA==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}engines: {node: '>= 0.4'}@@ -7237,6 +7258,11 @@ packages:resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}engines: {node: '>= 14'}+ resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}+ engines: {node: '>=18'}+ hasBin: true+resolution: {integrity: sha512-WDC/ui2VVRrz3jOVi+XtjqkDjiVjTtFaAGiW37k6b+ohyQ5wYDOGkvCZa8+H0nx3gyvv0+BST9xuOgIyGQ00gw==}@@ -7843,6 +7869,15 @@ packages:resolution: {integrity: sha512-NT1CJtq3hHIreOianA8aSXn6Cw0JzYOuDQbOrSPe7gqFnCpKP++MQe3ODgO3oh2GJFORkAAdqredOa60z63GbA==}+ resolution: {integrity: sha512-lDIj4RnYmK7/kXMya+qJsmkRFkGolciXjrsZ6PC25GdTfWOAWetR0ZbsNXRAj1EHHImRSalc+whZFg56F5DVow==}+ engines: {node: '>=20.17'}+ hasBin: true++ resolution: {integrity: sha512-ME4Fb83LgEgwNw96RKNvKV4VTLuXfoKudAmm2lP8Kk87KaMK0/Xrx/aAkMWmT8mDb+3MlFDspfbCs7adjRxA2g==}+ engines: {node: '>=20.0.0'}+resolution: {integrity: sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q==}engines: {node: '>=6.11.5'}@@ -7874,6 +7909,10 @@ packages:resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==}engines: {node: '>=18'}+ resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==}@@ -8307,6 +8346,10 @@ packages:react: '*'react-dom: '*'+ resolution: {integrity: sha512-tacvGzUY5o2D8CBh2rrwxyNojUsZNU2zjNTzKQrkgGJQTbGAfArVWXSKMBokBeeg6C7OLRGUEyoFlYbfeWQIqw==}+ engines: {node: '>=20.17'}+resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==}engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}@@ -8743,6 +8786,11 @@ packages:resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}engines: {node: '>=12'}+ resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==}+ engines: {node: '>=0.10'}+ hasBin: true+resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==}engines: {node: '>=0.10.0'}@@ -9371,6 +9419,9 @@ packages:resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==}engines: {iojs: '>=1.0.0', node: '>=0.10.0'}+ resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==}+resolution: {integrity: sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==}hasBin: true@@ -9723,6 +9774,10 @@ packages:resolution: {integrity: sha512-kn+e44esVfn2Fa/O0CPFcex27fjIL6MkVae0Mm6q+E6f0hWv578YCERbv+4m02cjxvDsPKLnmxral/rR6lBMAg==}+ resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==}+ engines: {node: '>=0.6.19'}+resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}engines: {node: '>=8'}@@ -9735,6 +9790,10 @@ packages:resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==}engines: {node: '>=18'}+ resolution: {integrity: sha512-6hJPQ8N0V0P3SNmP6h2J99RLuzrWz2gvT7VnK5tKvrNqJoyS9W4/Fb8mo31UiPvy00z7DQXkP2hnKBVav76thw==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==}engines: {node: '>= 0.4'}@@ -16005,7 +16064,7 @@ snapshots:dependencies:uncrypto: 0.1.3- '@vercel/[email protected]([email protected](@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])':+ '@vercel/[email protected]([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected])':optionalDependencies:next: 16.1.6(@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected])react: 19.2.4@@ -16765,6 +16824,11 @@ snapshots:slice-ansi: 5.0.0string-width: 7.2.0+ dependencies:+ slice-ansi: 7.1.2+ string-width: 8.2.0+@@ -16835,6 +16899,8 @@ snapshots:+ [email protected]: {}+@@ -17527,6 +17593,8 @@ snapshots:+ [email protected]: {}+dependencies:bare-events: 2.8.2@@ -17803,6 +17871,8 @@ snapshots:+ [email protected]: {}+dependencies:call-bind-apply-helpers: 1.0.2@@ -18299,6 +18369,8 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected]: {}+@@ -18915,6 +18987,25 @@ snapshots:+ dependencies:+ commander: 14.0.3+ listr2: 9.0.5+ micromatch: 4.0.8+ nano-spawn: 2.0.0+ pidtree: 0.6.0+ string-argv: 0.3.2+ yaml: 2.8.2++ dependencies:+ cli-truncate: 5.1.1+ colorette: 2.0.20+ eventemitter3: 5.0.4+ log-update: 6.1.0+ rfdc: 1.4.1+ wrap-ansi: 9.0.2+@@ -18941,6 +19032,14 @@ snapshots:is-unicode-supported: 2.1.0yoctocolors: 2.1.2+ dependencies:+ ansi-escapes: 7.3.0+ cli-cursor: 5.0.0+ slice-ansi: 7.1.2+ strip-ansi: 7.1.2+ wrap-ansi: 9.0.2+@@ -19675,6 +19774,8 @@ snapshots:stacktrace-js: 2.0.2stylis: 4.3.6+ [email protected]: {}+@@ -19733,7 +19834,7 @@ snapshots:react: 19.2.4react-dom: 19.2.4([email protected])- [email protected]([email protected](@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ [email protected]([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):dependencies:next: 16.1.6(@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected]([email protected]))([email protected])react: 19.2.4@@ -20112,6 +20213,8 @@ snapshots:+ [email protected]: {}+@@ -20960,6 +21063,8 @@ snapshots:+ [email protected]: {}+dependencies:glob: 10.5.0@@ -21448,6 +21553,8 @@ snapshots:- bare-abort-controller- react-native-b4a+ [email protected]: {}+dependencies:emoji-regex: 8.0.0@@ -21466,6 +21573,11 @@ snapshots:get-east-asian-width: 1.4.0strip-ansi: 7.1.2+ dependencies:+ get-east-asian-width: 1.5.0+ strip-ansi: 7.1.2+dependencies:call-bind: 1.0.8