From 73fc4df794109e3ce9c46e04c0b5fe020eed4a6e Mon Sep 17 00:00:00 2001 From: ocean-gao Date: Tue, 23 Apr 2024 17:17:06 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20commitlint=20=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commitlint.config.cjs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/commitlint.config.cjs b/commitlint.config.cjs index 422b1944..4735bce3 100644 --- a/commitlint.config.cjs +++ b/commitlint.config.cjs @@ -1 +1,8 @@ -module.exports = { extends: ['@commitlint/config-conventional'] }; +module.exports = { + extends: ['@commitlint/config-conventional'], + rules: { + 'type-enum': [2, 'always', [ + "feat", "fix", "docs", "style", "refactor", "test", "chore", "revert", "release", + ]], + }, +};