From b132da6c5d30675b1169eea3b144eba622350c55 Mon Sep 17 00:00:00 2001 From: ray_wuhao <443547225@qq.com> Date: Fri, 27 Jan 2023 18:14:32 +0800 Subject: [PATCH] add husky --- .husky/commit-msg | 4 ++++ .husky/pre-commit | 4 ++++ 2 files changed, 8 insertions(+) create mode 100755 .husky/commit-msg create mode 100755 .husky/pre-commit diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 00000000..9cdbd7af --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname "$0")/_/husky.sh" + +yarn lint-staged --allow-empty "$1" \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 00000000..9cdbd7af --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env sh +. "$(dirname "$0")/_/husky.sh" + +yarn lint-staged --allow-empty "$1" \ No newline at end of file