Add pre-commit hook

This commit is contained in:
Jonathan Staab 2023-02-04 14:14:21 -06:00
parent fc984cafa6
commit 9cc50e1894
4 changed files with 7 additions and 1 deletions

5
.husky/pre-commit Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run lint
npm run check

BIN
package-lock.json generated

Binary file not shown.

View File

@ -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",

View File

@ -99,7 +99,7 @@ const publish = async (relays, event) => {
}
const describeFilter = ({kinds = [], ...filter}) => {
let parts = []
const parts = []
parts.push(kinds.join(','))