From 5b44f78be25150b99ea75663c463283a5e0eb649 Mon Sep 17 00:00:00 2001 From: Julien Le Coupanec Date: Fri, 15 Apr 2022 22:01:00 +0200 Subject: [PATCH] build: set up commitlint --- .husky/commit-msg | 4 ++++ commitlint.config.js | 1 + 2 files changed, 5 insertions(+) create mode 100755 .husky/commit-msg create mode 100644 commitlint.config.js diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 0000000..fa859b0 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx --no -- commitlint --edit "" diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..28fe5c5 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1 @@ +module.exports = {extends: ['@commitlint/config-conventional']}