diff --git a/.huskyrc.js b/.huskyrc.js deleted file mode 100644 index ee1b1391..00000000 --- a/.huskyrc.js +++ /dev/null @@ -1,9 +0,0 @@ -const tasks = arr => arr.join(' && ') -module.exports = { - 'scripts': { - 'pre-commit': tasks([ - "lint-staged", - ]), - "commit-msg": "commitlint -e $HUSKY_GIT_PARAMS" - } -} \ No newline at end of file diff --git a/package.json b/package.json index 4f282346..8d009ea6 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,11 @@ } } }, + "husky": { + "hooks": { + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" + } + }, "devDependencies": { "@commitlint/cli": "^8.3.5", "@commitlint/config-conventional": "^8.3.4",