Scratch space for learning atproto app development

tidy + remove husky

dholms 96050afb ef772a14

Changed files
+9 -29
.husky
src
common
-4
.husky/pre-commit
···
-
#!/usr/bin/env sh
-
. "$(dirname -- "$0")/_/husky.sh"
-
-
npx lint-staged
···
-5
.husky/pre-push
···
-
#!/bin/sh
-
. "$(dirname "$0")/_/husky.sh"
-
-
npm run build
-
npm run test
···
+9 -5
package.json
···
"lint": "biome check src/",
"lint:fix": "biome check src/ --fix",
"format": "biome format src/",
-
"test": "vitest run",
-
"prepare": "husky"
},
"dependencies": {
"@atproto/repo": "^0.4.1",
···
"@biomejs/biome": "1.8.3",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
-
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"pino-pretty": "^11.0.0",
"rimraf": "^5.0.0",
···
"vitest": "^2.0.0"
},
"lint-staged": {
-
"*.{js,ts,cjs,mjs,d.cts,d.mts,json,jsonc}": ["biome check --apply --no-errors-on-unmatched"]
},
"tsup": {
-
"entry": ["src", "!src/**/__tests__/**", "!src/**/*.test.*"],
"splitting": false,
"sourcemap": true,
"clean": true
···
"lint": "biome check src/",
"lint:fix": "biome check src/ --fix",
"format": "biome format src/",
+
"test": "vitest run"
},
"dependencies": {
"@atproto/repo": "^0.4.1",
···
"@biomejs/biome": "1.8.3",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"lint-staged": "^15.2.2",
"pino-pretty": "^11.0.0",
"rimraf": "^5.0.0",
···
"vitest": "^2.0.0"
},
"lint-staged": {
+
"*.{js,ts,cjs,mjs,d.cts,d.mts,json,jsonc}": [
+
"biome check --apply --no-errors-on-unmatched"
+
]
},
"tsup": {
+
"entry": [
+
"src",
+
"!src/**/__tests__/**",
+
"!src/**/*.test.*"
+
],
"splitting": false,
"sourcemap": true,
"clean": true
-10
src/common/utils/commonValidation.ts
···
-
import { z } from "zod";
-
-
export const commonValidations = {
-
id: z
-
.string()
-
.refine((data) => !Number.isNaN(Number(data)), "ID must be a numeric value")
-
.transform(Number)
-
.refine((num) => num > 0, "ID must be a positive number"),
-
// ... other common validations
-
};
···
-5
yarn.lock
···
dependencies:
ms "^2.0.0"
-
husky@^9.0.11:
-
version "9.1.4"
-
resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.4.tgz#926fd19c18d345add5eab0a42b2b6d9a80259b34"
-
integrity sha512-bho94YyReb4JV7LYWRWxZ/xr6TtOTt8cMfmQ39MQYJ7f/YE268s3GdghGwi+y4zAeqewE5zYLvuhV0M0ijsDEA==
-
iconv-lite@0.4.24:
version "0.4.24"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
···
dependencies:
ms "^2.0.0"
iconv-lite@0.4.24:
version "0.4.24"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"