-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
31 lines (31 loc) ยท 1.04 KB
/
commitlint.config.js
File metadata and controls
31 lines (31 loc) ยท 1.04 KB
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
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat', // ๊ธฐ๋ฅ ์ถ๊ฐ
'fix', // ๋ฒ๊ทธ ์์
'chore', // ๋น๋ ์ค์ ๋ณ๊ฒฝ, ํจํค์ง ์ค์น, CI/CD ์ค์ ๋ฑ
'style', // ์ฝ๋ ํฌ๋งทํ
๋ฑ ์ฝ๋ ์๋ฏธ์ ์ํฅ์ด ์๋ ๋ณ๊ฒฝ ์ฌํญ
'refactor', // ๊ธฐ๋ฅ ๋ณ๊ฒฝ ์์ด ์ฝ๋ ๋ด๋ถ ๊ตฌ์กฐ, ์ค๊ณ, ์ฑ๋ฅ ๊ฐ์
'docs', // README, ์ฃผ์, ๋ฌธ์ ํ์ผ ์์
'revert', // ์ด์ ์ปค๋ฐ์ผ๋ก ๋ณต๊ตฌ
'test', // ํ
์คํธ ์ฝ๋ ์ถ๊ฐ ๋ฐ ์์
'deploy', // ๋ฐฐํฌ
],
],
'subject-case': [0], // ์ ๋ชฉ ๋์๋ฌธ์ ๊ท์น ๋นํ์ฑํ (ํ๊ตญ์ด ์ง์)
'subject-empty': [2, 'never'],
'subject-full-stop': [0], // ๋ง์นจํ ๊ท์น ๋นํ์ฑํ
'header-max-length': [2, 'always', 100],
'body-max-line-length': [2, 'always', 100],
'footer-max-line-length': [2, 'always', 100],
},
parserPreset: {
parserOpts: {
issuePrefixes: ['#'],
},
},
}