From c62ed180d50897630d0e4fdb3a31678a1bbf1614 Mon Sep 17 00:00:00 2001 From: "zhouxiao.shaw" Date: Fri, 15 Dec 2023 16:07:46 +0800 Subject: [PATCH] chore(workflow): modify commitlint scope rules --- .husky/pre-commit | 2 ++ commitlint.config.js | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.husky/pre-commit b/.husky/pre-commit index 3ebb0cf578f..7a13136e997 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,3 +2,5 @@ . "$(dirname -- "$0")/_/husky.sh" npm run lint-fix + +git add . \ No newline at end of file diff --git a/commitlint.config.js b/commitlint.config.js index 62f9a8a948e..8b329cbd8d6 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,3 +1,6 @@ module.exports = { extends: ['@commitlint/config-conventional', '@commitlint/config-nx-scopes'], + rules: { + 'scope-enum': [2, 'always', ['release', 'docs', 'workflow']], + }, };