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