standards-cli 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: ChenYu ycyplus@gmail.com
|
|
3
|
+
* @Date: 2026-01-13 23:14:22
|
|
4
|
+
* @LastEditors: ChenYu ycyplus@gmail.com
|
|
5
|
+
* @LastEditTime: 2026-01-13 23:22:25
|
|
6
|
+
* @FilePath: \standards-cli\templates\commitlint\config.cjs
|
|
7
|
+
* @Description:
|
|
8
|
+
* Copyright (c) 2026 by CHENY, All Rights Reserved 😎.
|
|
9
|
+
*/
|
|
1
10
|
module.exports = {
|
|
2
11
|
extends: ["@commitlint/config-conventional"],
|
|
3
12
|
rules: {
|
|
@@ -18,13 +27,15 @@ module.exports = {
|
|
|
18
27
|
"revert",
|
|
19
28
|
],
|
|
20
29
|
],
|
|
30
|
+
"scope-empty": [2, "never"], // 必须填写 scope
|
|
21
31
|
"subject-empty": [2, "never"],
|
|
22
32
|
"subject-max-length": [2, "always", 72],
|
|
33
|
+
"subject-case": [0], // 允许中文,不限制大小写
|
|
23
34
|
},
|
|
24
35
|
prompt: {
|
|
25
36
|
messages: {
|
|
26
37
|
type: "选择你要提交的类型:",
|
|
27
|
-
|
|
38
|
+
scope: "输入 scope (必填,如: login, auth):",
|
|
28
39
|
subject: "输入简短描述:",
|
|
29
40
|
confirmCommit: "确认提交?",
|
|
30
41
|
},
|
|
@@ -43,13 +54,13 @@ module.exports = {
|
|
|
43
54
|
],
|
|
44
55
|
useEmoji: false,
|
|
45
56
|
skipQuestions: [
|
|
46
|
-
"scope",
|
|
47
57
|
"body",
|
|
48
58
|
"breaking",
|
|
49
59
|
"breakingBody",
|
|
50
60
|
"footer",
|
|
51
61
|
"footerPrefix",
|
|
52
62
|
],
|
|
53
|
-
|
|
63
|
+
enableMultipleScopes: false,
|
|
64
|
+
scopeEnumSeparator: ",",
|
|
54
65
|
},
|
|
55
66
|
};
|