From c58a41ed72759d4605122b6de671e16db7345512 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 8 Nov 2018 11:26:09 -0500 Subject: [PATCH] feat: enabling commitlint --- commitlint.config.js | 3 +++ install/package.json | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 commitlint.config.js diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000000..6b18799869 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,3 @@ +'use strict'; + +module.exports = { extends: ['@commitlint/config-angular'] }; diff --git a/install/package.json b/install/package.json index cbee2dfb0a..5672d0ede0 100644 --- a/install/package.json +++ b/install/package.json @@ -18,7 +18,8 @@ }, "husky": { "hooks": { - "pre-commit": "lint-staged" + "pre-commit": "lint-staged", + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } }, "lint-staged": { @@ -129,6 +130,8 @@ "zxcvbn": "^4.4.2" }, "devDependencies": { + "@commitlint/cli": "^7.2.1", + "@commitlint/config-angular": "^7.1.2", "coveralls": "3.0.2", "eslint": "5.8.0", "eslint-config-airbnb-base": "13.1.0",