Skip to content

Commit fdc9eee

Browse files
authored
chore(workflow): modify commitlint scope rules (#1764)
1 parent 22b6dea commit fdc9eee

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.husky/pre-commit

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
. "$(dirname -- "$0")/_/husky.sh"
33

44
npm run lint-fix
5+
6+
git add .

commitlint.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
module.exports = {
22
extends: ['@commitlint/config-conventional', '@commitlint/config-nx-scopes'],
3+
rules: {
4+
'scope-enum': [2, 'always', ['release', 'docs', 'workflow']],
5+
},
36
};

0 commit comments

Comments
 (0)