forked from codeit-FE-15-Part4-Team1/RoamReady
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.mjs
More file actions
33 lines (33 loc) · 935 Bytes
/
commitlint.config.mjs
File metadata and controls
33 lines (33 loc) · 935 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
export default {
extends: ['@commitlint/config-conventional'],
parserPreset: {
parserOpts: {
headerPattern: /^\(#(\d+)\)\s(\w+):\s(.*)$/,
headerCorrespondence: ['issueId', 'type', 'subject'],
},
},
rules: {
'type-enum': [
2,
'always',
[
'feat', // 새로운 기능
'fix', // 버그 수정
'docs', // 문서 변경
'style', // 코드 스타일 변경
'refactor', // 리팩토링
'perf', // 성능 개선
'test', // 테스트 추가/수정
'chore', // 기타 변경사항
'ci', // CI 설정 변경
'build', // 빌드 시스템 변경
'revert', // 이전 커밋 되돌리기
],
],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'header-max-length': [2, 'always', 72],
},
};