From dd8465efc58f7d72e6254363c1ac31f08319a920 Mon Sep 17 00:00:00 2001 From: erezrokah Date: Wed, 16 Dec 2020 19:19:35 +0100 Subject: [PATCH] chore: add commit linting --- commitlint.config.js | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 commitlint.config.js diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..4fedde6 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1 @@ +module.exports = { extends: ['@commitlint/config-conventional'] } diff --git a/package.json b/package.json index 0d2c592..d340d2b 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ }, "husky": { "hooks": { + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", "pre-push": "npm run format" } }, @@ -92,7 +93,7 @@ "@babel/plugin-transform-runtime": "^7.9.0", "@babel/preset-env": "^7.9.0", "@babel/runtime": "^7.9.2", - "@netlify/eslint-config-node": "^2.0.1", + "@netlify/eslint-config-node": "^2.1.0", "auto-changelog": "^2.0.0", "ava": "^2.4.0", "babel-loader": "^8.1.0",