From d0798c9c6e70dcaaf6654fba4b94f3809b3939c7 Mon Sep 17 00:00:00 2001 From: Matt Hinchliffe Date: Tue, 9 Jan 2024 19:59:29 +0000 Subject: [PATCH] Clear up unused husky config --- .husky/pre-commit | 2 +- .husky/pre-push | 4 ++++ .huskyrc.js | 5 ----- .npmignore | 1 - 4 files changed, 5 insertions(+), 7 deletions(-) create mode 100755 .husky/pre-push delete mode 100644 .huskyrc.js diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af219..654ca47 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npx lint-staged +npx lint-staged && npm run type-check diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100755 index 0000000..610c2a5 --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +npm test diff --git a/.huskyrc.js b/.huskyrc.js deleted file mode 100644 index def558a..0000000 --- a/.huskyrc.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - hooks: { - 'pre-commit': 'lint-staged && npm run type-check', - }, -} diff --git a/.npmignore b/.npmignore index acd3571..4d6253f 100644 --- a/.npmignore +++ b/.npmignore @@ -8,7 +8,6 @@ src/ .eslintcache .eslintignore .eslintrc.js -.huskyrc.js .lintstagedrc.js .prettierignore .prettierrc.json