From 427da7dd7a737b0a449aba80bc3a6801df532297 Mon Sep 17 00:00:00 2001 From: Thijs Louisse Date: Mon, 9 May 2022 14:51:11 +0200 Subject: [PATCH] chore: format and lint --- .husky/_/husky.sh | 30 ++++++++++++++++++++++++++++++ tsconfig.json | 3 ++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .husky/_/husky.sh diff --git a/.husky/_/husky.sh b/.husky/_/husky.sh new file mode 100644 index 000000000..ca2720e08 --- /dev/null +++ b/.husky/_/husky.sh @@ -0,0 +1,30 @@ +#!/bin/sh +if [ -z "$husky_skip_init" ]; then + debug () { + [ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1" + } + + readonly hook_name="$(basename "$0")" + debug "starting $hook_name..." + + if [ "$HUSKY" = "0" ]; then + debug "HUSKY env variable is set to 0, skipping hook" + exit 0 + fi + + if [ -f ~/.huskyrc ]; then + debug "sourcing ~/.huskyrc" + . ~/.huskyrc + fi + + export readonly husky_skip_init=1 + sh -e "$0" "$@" + exitCode="$?" + + if [ $exitCode != 0 ]; then + echo "husky - $hook_name hook exited with code $exitCode (error)" + exit $exitCode + fi + + exit 0 +fi diff --git a/tsconfig.json b/tsconfig.json index 16c6d5b9f..b643c93a1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,8 @@ "alwaysStrict": true, "types": ["node", "mocha", "sinon"], "esModuleInterop": true, - "suppressImplicitAnyIndexErrors": true + "suppressImplicitAnyIndexErrors": true, + "skipLibCheck": true }, "include": ["packages/**/*.js", "packages-node/**/*.js"], "exclude": [