Add pre-commit hook
This commit is contained in:
parent
fc984cafa6
commit
9cc50e1894
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npm run lint
|
||||
npm run check
|
|
@ -18,6 +18,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",
|
||||
|
@ -2422,6 +2423,20 @@
|
|||
"uuid": "^8.3.2"
|
||||
}
|
||||
},
|
||||
"node_modules/husky": {
|
||||
"version": "8.0.3",
|
||||
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
|
||||
"integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
|
||||
"bin": {
|
||||
"husky": "lib/bin.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/typicode"
|
||||
}
|
||||
},
|
||||
"node_modules/ieee754": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
|
||||
|
@ -6063,6 +6078,11 @@
|
|||
"uuid": "^8.3.2"
|
||||
}
|
||||
},
|
||||
"husky": {
|
||||
"version": "8.0.3",
|
||||
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
|
||||
"integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg=="
|
||||
},
|
||||
"ieee754": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -99,7 +99,7 @@ const publish = async (relays, event) => {
|
|||
}
|
||||
|
||||
const describeFilter = ({kinds = [], ...filter}) => {
|
||||
let parts = []
|
||||
const parts = []
|
||||
|
||||
parts.push(kinds.join(','))
|
||||
|
||||
|
|
Loading…
Reference in New Issue