From 078bfd6a9d834dd98c29ea7238164bcaabdf7c15 Mon Sep 17 00:00:00 2001 From: neilcui Date: Thu, 24 May 2018 12:03:23 +0800 Subject: [PATCH] test commitlint --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 4b8adb5a..96af0a1f 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "scripts": { "lint": "eslint examples bin test --fix", "precommit": "lint-staged", + "commitmsg": "commitlint -e $GIT_PARAMS", "test": "mocha --recursive test/bin", "coverage": "nyc --reporter=lcov --reporter=text npm test && codecov" }, @@ -19,6 +20,8 @@ "memcached": "~0.2.8" }, "devDependencies": { + "@commitlint/cli": "^6.2.0", + "@commitlint/config-conventional": "^6.1.3", "chai": "^4.1.2", "codecov": "^3.0.2", "eslint": "^4.10.0",