From 5a620fca7c55caeb5d39552de8dfae34624d46d8 Mon Sep 17 00:00:00 2001 From: pddpd Date: Fri, 28 Apr 2023 12:11:25 +0800 Subject: [PATCH] chore(global): update commit lint rules --- commitlint.config.js | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/commitlint.config.js b/commitlint.config.js index 422b19445..919849bb3 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1,23 @@ -module.exports = { extends: ['@commitlint/config-conventional'] }; +module.exports = { + extends: ['@commitlint/config-conventional'], + rules: { + 'type-enum': [2, 'always', ['chore', 'ci', 'docs', 'feat', 'fix', 'refactor', 'revert', 'style', 'test']], + 'scope-empty': [2, 'never'], + 'scope-enum': [ + 2, + 'always', + [ + 'global', + 'ava', + 'ava/advisor', + 'ava/ckb', + 'ava/data', + 'ava/insight', + 'ava/ntv', + 'ava-react', + 'ava-react/ntv', + 'ava-react/insight-card', + ], + ], + }, +};