From 05abea1ebc7204d7ebc98059482669bfbe9bca7f Mon Sep 17 00:00:00 2001 From: hansputera Date: Sat, 5 Mar 2022 21:10:29 +0700 Subject: [PATCH] chore: add husky Signed-off-by: hansputera --- .husky/pre-commit | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 9dcd433..4329676 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,3 +2,4 @@ . "$(dirname "$0")/_/husky.sh" yarn lint +npm run lint diff --git a/package.json b/package.json index 98cc96b..36087c3 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "scripts": { "build": "turbo run build", "dev": "turbo run dev --parallel", - "lint": "turbo run lint" + "lint": "turbo run lint", + "prepare": "husky install" }, "packageManager": "yarn@3.2.0" }