From 0dc974f8518d13fc10ff59a666ccb6b208654d75 Mon Sep 17 00:00:00 2001 From: Hidetaka Okamoto Date: Tue, 29 Jun 2021 18:10:53 +0900 Subject: [PATCH] chore: husky config --- .husky/commit-msg | 1 + .husky/pre-commit | 1 + .huskyrc.js | 9 --------- 3 files changed, 2 insertions(+), 9 deletions(-) create mode 100644 .husky/commit-msg create mode 100644 .husky/pre-commit delete mode 100644 .huskyrc.js diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 0000000..95d97a1 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +yarn commitlint -e $1 \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..1a1f1f0 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +yarn lint-staged \ No newline at end of file diff --git a/.huskyrc.js b/.huskyrc.js deleted file mode 100644 index c278465..0000000 --- a/.huskyrc.js +++ /dev/null @@ -1,9 +0,0 @@ -const tasks = arr => arr.join(' && ') -module.exports = { - 'hooks': { - 'pre-commit': tasks([ - "lint-staged", - ]), - "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS" - } -} \ No newline at end of file