the statusphere demo reworked into a vite/react app in a monorepo

tidy + remove husky

dholms 96050afb ef772a14

+9 -29
-4
.husky/pre-commit
··· 1 - #!/usr/bin/env sh 2 - . "$(dirname -- "$0")/_/husky.sh" 3 - 4 - npx lint-staged
-5
.husky/pre-push
··· 1 - #!/bin/sh 2 - . "$(dirname "$0")/_/husky.sh" 3 - 4 - npm run build 5 - npm run test
+9 -5
package.json
··· 14 14 "lint": "biome check src/", 15 15 "lint:fix": "biome check src/ --fix", 16 16 "format": "biome format src/", 17 - "test": "vitest run", 18 - "prepare": "husky" 17 + "test": "vitest run" 19 18 }, 20 19 "dependencies": { 21 20 "@atproto/repo": "^0.4.1", ··· 36 35 "@biomejs/biome": "1.8.3", 37 36 "@types/cors": "^2.8.17", 38 37 "@types/express": "^4.17.21", 39 - "husky": "^9.0.11", 40 38 "lint-staged": "^15.2.2", 41 39 "pino-pretty": "^11.0.0", 42 40 "rimraf": "^5.0.0", ··· 48 46 "vitest": "^2.0.0" 49 47 }, 50 48 "lint-staged": { 51 - "*.{js,ts,cjs,mjs,d.cts,d.mts,json,jsonc}": ["biome check --apply --no-errors-on-unmatched"] 49 + "*.{js,ts,cjs,mjs,d.cts,d.mts,json,jsonc}": [ 50 + "biome check --apply --no-errors-on-unmatched" 51 + ] 52 52 }, 53 53 "tsup": { 54 - "entry": ["src", "!src/**/__tests__/**", "!src/**/*.test.*"], 54 + "entry": [ 55 + "src", 56 + "!src/**/__tests__/**", 57 + "!src/**/*.test.*" 58 + ], 55 59 "splitting": false, 56 60 "sourcemap": true, 57 61 "clean": true
-10
src/common/utils/commonValidation.ts
··· 1 - import { z } from "zod"; 2 - 3 - export const commonValidations = { 4 - id: z 5 - .string() 6 - .refine((data) => !Number.isNaN(Number(data)), "ID must be a numeric value") 7 - .transform(Number) 8 - .refine((num) => num > 0, "ID must be a positive number"), 9 - // ... other common validations 10 - };
-5
yarn.lock
··· 1930 1930 dependencies: 1931 1931 ms "^2.0.0" 1932 1932 1933 - husky@^9.0.11: 1934 - version "9.1.4" 1935 - resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.4.tgz#926fd19c18d345add5eab0a42b2b6d9a80259b34" 1936 - integrity sha512-bho94YyReb4JV7LYWRWxZ/xr6TtOTt8cMfmQ39MQYJ7f/YE268s3GdghGwi+y4zAeqewE5zYLvuhV0M0ijsDEA== 1937 - 1938 1933 iconv-lite@0.4.24: 1939 1934 version "0.4.24" 1940 1935 resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"