From f00abc0a83a4f085575abce68edaae8536fa5057 Mon Sep 17 00:00:00 2001 From: a flying potato <80830782+a-flying-potato@users.noreply.github.com> Date: Sun, 4 Sep 2022 08:37:23 +0200 Subject: [PATCH] :robot: config(git-hooks): Setup husky. These changes were automatically generated by a transform whose code can be found at: - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/b30cf223897adb74ca4a854799d50b21d7e1959d/src/transforms/husky:configure.js Please contact the author of the transform if you believe there was an error. --- .husky/.gitignore | 1 + package.json | 6 ++++++ yarn.lock | 16 +++++++++++++--- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .husky/.gitignore diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 0000000..31354ec --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/package.json b/package.json index 6f8ba7a..75d78de 100644 --- a/package.json +++ b/package.json @@ -30,10 +30,14 @@ "build-gh-pages": "npm run build-docs", "cover": "c8 --all --src src --reporter=lcov npm test", "dev": "npm run lint -- --fix && npm run cover -- -- -st --fail-fast", + "install-hooks": "husky install", "lint": "true", "lint-config": "fixpack --dryRun", "lint-config-and-fix": "fixpack || fixpack", + "postinstall": "npm run install-hooks", + "postpublish": "pinst --enable", "prepare": "npm run build", + "prepublishOnly": "pinst --disable", "release": "np", "test": "ava", "travis": "npm run lint && npm run cover" @@ -57,7 +61,9 @@ "esdoc-inject-style-plugin": "1.0.0", "esdoc-standard-plugin": "1.0.0", "fixpack": "4.0.0", + "husky": "8.0.1", "np": "7.4.0", + "pinst": "3.0.0", "power-assert": "1.6.1", "regenerator-runtime": "0.13.7", "xo": "0.52.3" diff --git a/yarn.lock b/yarn.lock index dded252..53a1268 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1271,7 +1271,7 @@ dependencies: "@types/node" "*" -"@typescript-eslint/eslint-plugin@*": +"@typescript-eslint/eslint-plugin@^5.35.1": version "5.36.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.36.1.tgz#471f64dc53600025e470dad2ca4a9f2864139019" integrity sha512-iC40UK8q1tMepSDwiLbTbMXKDxzNy+4TfPWgIL661Ym0sD42vRcQU93IsZIrmi+x292DBr60UI/gSwfdVYexCA== @@ -1286,7 +1286,7 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@*": +"@typescript-eslint/parser@^5.35.1": version "5.36.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.36.1.tgz#931c22c7bacefd17e29734628cdec8b2acdcf1ce" integrity sha512-/IsgNGOkBi7CuDfUbwt1eOqUXF9WGVBW9dwEe1pi+L32XrTsZIgmDFIi2RxjzsvB/8i+MIf5JIoTEH8LOZ368A== @@ -3309,7 +3309,7 @@ eslint-config-prettier@^8.5.0: resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz#5a81680ec934beca02c7b1a61cf8ca34b66feab1" integrity sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q== -eslint-config-xo-typescript@*: +eslint-config-xo-typescript@^0.53.0: version "0.53.0" resolved "https://registry.yarnpkg.com/eslint-config-xo-typescript/-/eslint-config-xo-typescript-0.53.0.tgz#702be21ea0dfcb124903c5f723d023b1fdeb0da2" integrity sha512-IJ1n70egMPTou/41HoGGFbLf/2WCsVW5lSUxOSklrR8T1221fMRPVJxIVZ3evr8R+N5wR6uzg/0uzSymwWA5Bg== @@ -4421,6 +4421,11 @@ human-signals@^2.1.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== +husky@8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.1.tgz#511cb3e57de3e3190514ae49ed50f6bc3f50b3e9" + integrity sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw== + ice-cap@0.0.4: version "0.0.4" resolved "https://registry.yarnpkg.com/ice-cap/-/ice-cap-0.0.4.tgz#8a6d31ab4cac8d4b56de4fa946df3352561b6e18" @@ -6529,6 +6534,11 @@ pify@^4.0.1: resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== +pinst@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pinst/-/pinst-3.0.0.tgz#80dec0a85f1f993c6084172020f3dbf512897eec" + integrity sha512-cengSmBxtCyaJqtRSvJorIIZXMXg+lJ3sIljGmtBGUVonMnMsVJbnzl6jGN1HkOWwxNuJynCJ2hXxxqCQrFDdw== + pirates@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87"