From 1db7729133fc621aecdcec299b11acbddd1c0fd6 Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Fri, 26 Jan 2024 13:16:47 +0800 Subject: [PATCH] build: update commitlint --- .commitlintrc.cjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.commitlintrc.cjs b/.commitlintrc.cjs index 66130dc183..2ec0c0f2c9 100644 --- a/.commitlintrc.cjs +++ b/.commitlintrc.cjs @@ -8,11 +8,16 @@ const getSubDirectories = (dir) => const pluginPackages = getSubDirectories(path.resolve(__dirname, 'plugins')) const themePackages = getSubDirectories(path.resolve(__dirname, 'themes')) +const toolsPackages = getSubDirectories(path.resolve(__dirname, 'tools')) module.exports = { extends: ['@commitlint/config-conventional'], rules: { - 'scope-enum': [2, 'always', ['e2e', ...pluginPackages, ...themePackages]], + 'scope-enum': [ + 2, + 'always', + ['e2e', ...pluginPackages, ...themePackages, ...toolsPackages], + ], 'footer-max-line-length': [0], }, }