|
1 | 1 | module.exports = { |
2 | | - extends: ['@commitlint/config-conventional'], |
| 2 | + extends: ["@commitlint/config-conventional"], |
3 | 3 | prompt: { |
4 | | - alias: { fd: 'docs: fix typos' }, |
| 4 | + alias: { fd: "docs: fix typos" }, |
5 | 5 | messages: { |
6 | | - type: '选择你要提交的类型 :', |
7 | | - scope: '选择一个提交范围(可选):', |
8 | | - customScope: '请输入自定义的提交范围 :', |
9 | | - subject: '填写简短精炼的变更描述 :\n', |
| 6 | + type: "选择你要提交的类型 :", |
| 7 | + scope: "选择一个提交范围(可选):", |
| 8 | + customScope: "请输入自定义的提交范围 :", |
| 9 | + subject: "填写简短精炼的变更描述 :\n", |
10 | 10 | body: '填写更加详细的变更描述(可选)。使用 "|" 换行 :\n', |
11 | 11 | breaking: '列举非兼容性重大的变更(可选)。使用 "|" 换行 :\n', |
12 | | - footerPrefixsSelect: '选择关联issue前缀(可选):', |
13 | | - customFooterPrefixs: '输入自定义issue前缀 :', |
14 | | - footer: '列举关联issue (可选) 例如: #31, #I3244 :\n', |
15 | | - confirmCommit: '是否提交或修改commit ?' |
| 12 | + footerPrefixsSelect: "选择关联issue前缀(可选):", |
| 13 | + customFooterPrefixs: "输入自定义issue前缀 :", |
| 14 | + footer: "列举关联issue (可选) 例如: #31, #I3244 :\n", |
| 15 | + confirmCommit: "是否提交或修改commit ?", |
16 | 16 | }, |
17 | 17 | types: [ |
18 | | - { value: 'feat', name: 'feat: 新增功能 | A new feature' }, |
19 | | - { value: 'fix', name: 'fix: 修复缺陷 | A bug fix' }, |
| 18 | + { value: "feat", name: "feat: 新增功能 | A new feature" }, |
| 19 | + { value: "fix", name: "fix: 修复缺陷 | A bug fix" }, |
20 | 20 | { |
21 | | - value: 'docs', |
22 | | - name: 'docs: 文档更新 | Documentation only changes' |
| 21 | + value: "docs", |
| 22 | + name: "docs: 文档更新 | Documentation only changes", |
23 | 23 | }, |
24 | 24 | { |
25 | | - value: 'style', |
26 | | - name: 'style: 代码格式 | Changes that do not affect the meaning of the code' |
| 25 | + value: "style", |
| 26 | + name: "style: 代码格式 | Changes that do not affect the meaning of the code", |
27 | 27 | }, |
28 | 28 | { |
29 | | - value: 'refactor', |
30 | | - name: 'refactor: 代码重构 | A code change that neither fixes a bug nor adds a feature' |
| 29 | + value: "refactor", |
| 30 | + name: "refactor: 代码重构 | A code change that neither fixes a bug nor adds a feature", |
31 | 31 | }, |
32 | 32 | { |
33 | | - value: 'perf', |
34 | | - name: 'perf: 性能提升 | A code change that improves performance' |
| 33 | + value: "perf", |
| 34 | + name: "perf: 性能提升 | A code change that improves performance", |
35 | 35 | }, |
36 | 36 | { |
37 | | - value: 'test', |
38 | | - name: 'test: 测试相关 | Adding missing tests or correcting existing tests' |
| 37 | + value: "test", |
| 38 | + name: "test: 测试相关 | Adding missing tests or correcting existing tests", |
39 | 39 | }, |
40 | 40 | { |
41 | | - value: 'build', |
42 | | - name: 'build: 构建相关 | Changes that affect the build system or external dependencies' |
| 41 | + value: "build", |
| 42 | + name: "build: 构建相关 | Changes that affect the build system or external dependencies", |
43 | 43 | }, |
44 | 44 | { |
45 | | - value: 'ci', |
46 | | - name: 'ci: 持续集成 | Changes to our CI configuration files and scripts' |
| 45 | + value: "ci", |
| 46 | + name: "ci: 持续集成 | Changes to our CI configuration files and scripts", |
47 | 47 | }, |
48 | | - { value: 'revert', name: 'revert: 回退代码 | Revert to a commit' }, |
| 48 | + { value: "revert", name: "revert: 回退代码 | Revert to a commit" }, |
49 | 49 | { |
50 | | - value: 'chore', |
51 | | - name: 'chore: 其他修改 | Other changes that do not modify src or test files' |
52 | | - } |
| 50 | + value: "chore", |
| 51 | + name: "chore: 其他修改 | Other changes that do not modify src or test files", |
| 52 | + }, |
53 | 53 | ], |
54 | 54 | useEmoji: false, |
55 | | - emojiAlign: 'center', |
56 | | - themeColorCode: '', |
| 55 | + emojiAlign: "center", |
| 56 | + themeColorCode: "", |
57 | 57 | scopes: [], |
58 | 58 | allowCustomScopes: true, |
59 | 59 | allowEmptyScopes: true, |
60 | | - customScopesAlign: 'bottom', |
61 | | - customScopesAlias: 'custom', |
62 | | - emptyScopesAlias: 'empty', |
| 60 | + customScopesAlign: "bottom", |
| 61 | + customScopesAlias: "custom", |
| 62 | + emptyScopesAlias: "empty", |
63 | 63 | upperCaseSubject: false, |
64 | 64 | markBreakingChangeMode: false, |
65 | | - allowBreakingChanges: ['feat', 'fix'], |
| 65 | + allowBreakingChanges: ["feat", "fix"], |
66 | 66 | breaklineNumber: 100, |
67 | | - breaklineChar: '|', |
| 67 | + breaklineChar: "|", |
68 | 68 | skipQuestions: [], |
69 | 69 | issuePrefixs: [ |
70 | 70 | // 如果使用 gitee 作为开发管理 |
71 | | - { value: 'link', name: 'link: 链接 ISSUES 进行中' }, |
72 | | - { value: 'closed', name: 'closed: 标记 ISSUES 已完成' } |
| 71 | + { value: "link", name: "link: 链接 ISSUES 进行中" }, |
| 72 | + { value: "closed", name: "closed: 标记 ISSUES 已完成" }, |
73 | 73 | ], |
74 | | - customIssuePrefixsAlign: 'top', |
75 | | - emptyIssuePrefixsAlias: 'skip', |
76 | | - customIssuePrefixsAlias: 'custom', |
| 74 | + customIssuePrefixsAlign: "top", |
| 75 | + emptyIssuePrefixsAlias: "skip", |
| 76 | + customIssuePrefixsAlias: "custom", |
77 | 77 | allowCustomIssuePrefixs: true, |
78 | 78 | allowEmptyIssuePrefixs: true, |
79 | 79 | confirmColorize: true, |
80 | 80 | maxHeaderLength: Infinity, |
81 | 81 | maxSubjectLength: Infinity, |
82 | 82 | minSubjectLength: 0, |
83 | 83 | scopeOverrides: undefined, |
84 | | - defaultBody: '', |
85 | | - defaultIssues: '', |
86 | | - defaultScope: '', |
87 | | - defaultSubject: '' |
88 | | - } |
| 84 | + defaultBody: "", |
| 85 | + defaultIssues: "", |
| 86 | + defaultScope: "", |
| 87 | + defaultSubject: "", |
| 88 | + }, |
89 | 89 | }; |
0 commit comments