From 15de74f81b55406add663022e94d62c1970c07bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Quixada=CC=81?= Date: Fri, 19 Mar 2021 13:19:08 -0400 Subject: [PATCH] chore: added commitlint task --- package.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package.json b/package.json index b7a2099a..064c8852 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ }, "husky": { "hooks": { + "commit-msg": "commitlint --edit $1", "pre-commit": "make build && lint-staged", "pre-push": "make" } @@ -46,6 +47,11 @@ "nyc": { "temp-dir": ".reports/.coverage" }, + "commitlint": { + "extends": [ + "@commitlint/config-conventional" + ] + }, "repository": { "type": "git", "url": "https://github.com/lquixada/cross-fetch.git" @@ -59,6 +65,8 @@ "node-fetch": "2.6.1" }, "devDependencies": { + "@commitlint/cli": "12.0.1", + "@commitlint/config-conventional": "12.0.1", "body-parser": "1.19.0", "chai": "4.3.4", "codecov": "3.8.1",