diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 00000000..524f353b --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,5 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm run lint +npm run check diff --git a/package-lock.json b/package-lock.json index e79124de..c6ffb56a 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index ada718bb..4f5b0f30 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "extract-urls": "^1.3.2", "fuse.js": "^6.6.2", "hurdak": "github:ConsignCloud/hurdak", + "husky": "^8.0.3", "nostr-tools": "^1.2.1", "ramda": "^0.28.0", "svelte-check": "^3.0.3", diff --git a/src/agent/pool.ts b/src/agent/pool.ts index 1a741667..75bea6ac 100644 --- a/src/agent/pool.ts +++ b/src/agent/pool.ts @@ -99,7 +99,7 @@ const publish = async (relays, event) => { } const describeFilter = ({kinds = [], ...filter}) => { - let parts = [] + const parts = [] parts.push(kinds.join(','))