From 55cb92b3b83ad7af2906b050132f57197e446372 Mon Sep 17 00:00:00 2001 From: a flying potato <80830782+a-flying-potato@users.noreply.github.com> Date: Sat, 10 Sep 2022 20:08: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/d09fbf6436be892b61bbe02454e1d7d7229c50d8/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 8b62a1b..cead061 100644 --- a/package.json +++ b/package.json @@ -35,10 +35,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" @@ -60,7 +64,9 @@ "esdoc-inject-style-plugin": "1.0.0", "esdoc-standard-plugin": "1.0.0", "fixpack": "4.0.0", + "husky": "8.0.1", "np": "7.6.2", + "pinst": "3.0.0", "power-assert": "1.6.1", "regenerator-runtime": "0.13.9", "xo": "0.52.3" diff --git a/yarn.lock b/yarn.lock index 0303303..88203dd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1165,7 +1165,7 @@ dependencies: "@types/node" "*" -"@typescript-eslint/eslint-plugin@*": +"@typescript-eslint/eslint-plugin@^5.35.1": version "5.36.2" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.36.2.tgz#6df092a20e0f9ec748b27f293a12cb39d0c1fe4d" integrity sha512-OwwR8LRwSnI98tdc2z7mJYgY60gf7I9ZfGjN5EjCwwns9bdTuQfAXcsjSB2wSQ/TVNYSGKf4kzVXbNGaZvwiXw== @@ -1180,7 +1180,7 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@*": +"@typescript-eslint/parser@^5.35.1": version "5.36.2" resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.36.2.tgz#3ddf323d3ac85a25295a55fcb9c7a49ab4680ddd" integrity sha512-qS/Kb0yzy8sR0idFspI9Z6+t7mqk/oRjnAYfewG+VN73opAUvmYL3oPIMmgOX6CnQS6gmVIXGshlb5RY/R22pA== @@ -2965,7 +2965,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== @@ -3916,6 +3916,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" @@ -5712,6 +5717,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.5: version "4.0.5" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b"