1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-22 09:13:35 +01:00

add husky

This commit is contained in:
Matthias Kretschmann 2023-10-03 22:31:58 +01:00
parent 6b792212ed
commit ab582a5093
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 24 additions and 1 deletions

4
.config/husky/pre-commit Executable file
View File

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

16
package-lock.json generated
View File

@ -53,6 +53,7 @@
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-testing-library": "^6.0.1",
"hast-util-to-html": "^9.0.0",
"husky": "^8.0.0",
"identity-obj-proxy": "^3.0.0",
"jsdom": "^22.1.0",
"markdownlint-cli": "^0.37.0",
@ -8628,6 +8629,21 @@
"ms": "^2.0.0"
}
},
"node_modules/husky": {
"version": "8.0.3",
"resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz",
"integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==",
"dev": true,
"bin": {
"husky": "lib/bin.js"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/sponsors/typicode"
}
},
"node_modules/ico-endec": {
"version": "0.1.6",
"resolved": "https://registry.npmjs.org/ico-endec/-/ico-endec-0.1.6.tgz",

View File

@ -26,7 +26,9 @@
"create:icons": "ts-node --esm scripts/create-icons/index.ts",
"create:redirects": "ts-node --esm scripts/redirect-from.ts",
"create:symlinks": "./scripts/create-symlinks.sh",
"move:downloads": "ts-node --esm scripts/move-downloads.ts"
"move:downloads": "ts-node --esm scripts/move-downloads.ts",
"prepare": "husky install .config/husky",
"validate": "run-p --silent typecheck lint"
},
"dependencies": {
"@astrojs/check": "^0.2.0",
@ -73,6 +75,7 @@
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-testing-library": "^6.0.1",
"hast-util-to-html": "^9.0.0",
"husky": "^8.0.0",
"identity-obj-proxy": "^3.0.0",
"jsdom": "^22.1.0",
"markdownlint-cli": "^0.37.0",