1
+ // .commitlintrc.js
2
+ /** @type {import('cz-git').UserConfig } */
3
+ module . exports = {
4
+ rules : {
5
+ // @see : https://commitlint.js.org/#/reference-rules
6
+ } ,
7
+ prompt : {
8
+ alias : { fd : "docs: fix typos" } ,
9
+ messages : {
10
+ type : "Select the type of change that you're committing:" ,
11
+ scope : "Denote the SCOPE of this change (optional):" ,
12
+ customScope : "Denote the SCOPE of this change:" ,
13
+ subject : "Write a SHORT, IMPERATIVE tense description of the change:\n" ,
14
+ body : 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n' ,
15
+ breaking : 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n' ,
16
+ footerPrefixesSelect : "Select the ISSUES type of changeList by this change (optional):" ,
17
+ customFooterPrefix : "Input ISSUES prefix:" ,
18
+ footer : "List any ISSUES by this change. E.g.: #31, #34:\n" ,
19
+ generatingByAI : 'Generating your AI commit subject...' ,
20
+ generatedSelectByAI : 'Select suitable subject by AI generated:' ,
21
+ confirmCommit : "Are you sure you want to proceed with the commit above?"
22
+ } ,
23
+ types : [
24
+ { value : "feat" , name : "feat: ✨ A new feature" , emoji : ":sparkles:" } ,
25
+ { value : "fix" , name : "fix: 🐛 A bug fix" , emoji : ":bug:" } ,
26
+ { value : "docs" , name : "docs: 📝 Documentation only changes" , emoji : ":memo:" } ,
27
+ { value : "style" , name : "style: 💄 Changes that do not affect the meaning of the code" , emoji : ":lipstick:" } ,
28
+ { value : "refactor" , name : "refactor: ♻️ A code change that neither fixes a bug nor adds a feature" , emoji : ":recycle:" } ,
29
+ { value : "perf" , name : "perf: ⚡️ A code change that improves performance" , emoji : ":zap:" } ,
30
+ { value : "test" , name : "test: ✅ Adding missing tests or correcting existing tests" , emoji : ":white_check_mark:" } ,
31
+ { value : "build" , name : "build: 📦️ Changes that affect the build system or external dependencies" , emoji : ":package:" } ,
32
+ { value : "ci" , name : "ci: 🎡 Changes to our CI configuration files and scripts" , emoji : ":ferris_wheel:" } ,
33
+ { value : "chore" , name : "chore: 🔨 Other changes that don't modify src or test files" , emoji : ":hammer:" } ,
34
+ { value : "revert" , name : "revert: ⏪️ Reverts a previous commit" , emoji : ":rewind:" }
35
+ ] ,
36
+ useEmoji : false ,
37
+ emojiAlign : "center" ,
38
+ useAI : false ,
39
+ aiNumber : 1 ,
40
+ themeColorCode : "" ,
41
+ scopes : [ ] ,
42
+ allowCustomScopes : true ,
43
+ allowEmptyScopes : true ,
44
+ customScopesAlign : "bottom" ,
45
+ customScopesAlias : "custom" ,
46
+ emptyScopesAlias : "empty" ,
47
+ upperCaseSubject : false ,
48
+ markBreakingChangeMode : false ,
49
+ allowBreakingChanges : [ 'feat' , 'fix' ] ,
50
+ breaklineNumber : 100 ,
51
+ breaklineChar : "|" ,
52
+ skipQuestions : [ ] ,
53
+ issuePrefixes : [ { value : "closed" , name : "closed: ISSUES has been processed" } ] ,
54
+ customIssuePrefixAlign : "top" ,
55
+ emptyIssuePrefixAlias : "skip" ,
56
+ customIssuePrefixAlias : "custom" ,
57
+ allowCustomIssuePrefix : true ,
58
+ allowEmptyIssuePrefix : true ,
59
+ confirmColorize : true ,
60
+ scopeOverrides : undefined ,
61
+ defaultBody : "" ,
62
+ defaultIssues : "" ,
63
+ defaultScope : "" ,
64
+ defaultSubject : ""
65
+ }
66
+ } ;
0 commit comments