From 04ef1b9b791cd121211f5c479a7825ce7a4499f2 Mon Sep 17 00:00:00 2001 From: bathini79 Date: Mon, 6 Nov 2023 02:47:57 +0530 Subject: [PATCH] feat:common-configuration-#85-Husky --- .husky/pre-commit | 4 ++++ package.json | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 00000000..d2902b1c --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +pnpm pre-commit diff --git a/package.json b/package.json index 105b5ff6..40402156 100644 --- a/package.json +++ b/package.json @@ -21,11 +21,6 @@ "preinstall": "npx only-allow pnpm", "prepare": "husky install" }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, "lint-staged": { "**/*.ts": [ "pnpm prettify",