-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
42 lines (42 loc) · 916 Bytes
/
commitlint.config.js
File metadata and controls
42 lines (42 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
module.exports = {
extends: ['@commitlint/config-conventional'],
plugins: [
{
rules: {
'subject-korean': ({ subject }) => {
const hasKorean = /[\uAC00-\uD7AF]/.test(subject);
return [hasKorean, '커밋 메시지(subject)에 한글이 포함되어야 합니다'];
},
},
},
],
rules: {
'scope-enum': [
2,
'always',
[
// deploy/skills/
'backlog',
'discussion',
'doc-router',
'pr-comment-write',
'pre-exit',
'scw',
'simplify',
'tech-trends',
'workflow',
'writer',
// deploy/contexts/
'coding-standards',
'writing-guide',
// deploy/rules/
'global',
// deploy/
'settings',
],
],
'scope-empty': [2, 'never'],
'subject-case': [0],
'subject-korean': [2, 'always'],
},
};