@itcase/config 1.0.68 → 1.0.70
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/commitlint/indexProject.js +64 -0
- package/package.json +5 -5
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* eslint-disable perfectionist/sort-objects */
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
parserPreset: 'conventional-changelog-conventionalcommits',
|
|
5
|
+
rules: {
|
|
6
|
+
'type-case': [2, 'always', 'lower-case'],
|
|
7
|
+
'type-empty': [2, 'never'],
|
|
8
|
+
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'ci', 'other']],
|
|
9
|
+
'body-empty': [1, 'always'],
|
|
10
|
+
'subject-case': [
|
|
11
|
+
2,
|
|
12
|
+
'always',
|
|
13
|
+
['lower-case', 'sentence-case', 'start-case'],
|
|
14
|
+
],
|
|
15
|
+
'subject-empty': [2, 'never'],
|
|
16
|
+
'footer-empty': [1, 'always'],
|
|
17
|
+
'scope-empty': [2, 'never'],
|
|
18
|
+
'scope-enum': [2, 'always', ['PLEASE', 'SET', 'SCOPE-ENUM']],
|
|
19
|
+
},
|
|
20
|
+
prompt: {
|
|
21
|
+
settings: {
|
|
22
|
+
enableMultipleScopes: true,
|
|
23
|
+
},
|
|
24
|
+
questions: {
|
|
25
|
+
type: {
|
|
26
|
+
description: "Select the type of change that you're committing",
|
|
27
|
+
enum: {
|
|
28
|
+
feat: {
|
|
29
|
+
description: 'A new feature',
|
|
30
|
+
title: 'Features',
|
|
31
|
+
emoji: '✨',
|
|
32
|
+
},
|
|
33
|
+
fix: {
|
|
34
|
+
title: 'Bug Fixes',
|
|
35
|
+
description: 'A bug fix',
|
|
36
|
+
emoji: '🐛',
|
|
37
|
+
},
|
|
38
|
+
docs: {
|
|
39
|
+
title: 'Documentation',
|
|
40
|
+
description: 'Documentation only changes',
|
|
41
|
+
emoji: '📚',
|
|
42
|
+
},
|
|
43
|
+
ci: {
|
|
44
|
+
title: 'Continuous Integrations',
|
|
45
|
+
description: 'Changes to our CI configuration files and scripts',
|
|
46
|
+
emoji: '⚙️',
|
|
47
|
+
},
|
|
48
|
+
other: {
|
|
49
|
+
title: 'Other',
|
|
50
|
+
description: "Other changes that don't include scope",
|
|
51
|
+
emoji: '♻️',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
scope: {
|
|
56
|
+
description: 'What is the scope of this change',
|
|
57
|
+
},
|
|
58
|
+
subject: {
|
|
59
|
+
description:
|
|
60
|
+
'Write a short, imperative tense description of the change',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.70",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Config",
|
|
6
6
|
"engines": {
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"postcss-preset-env": "^10.4.0",
|
|
62
62
|
"postcss-pxtorem": "^6.1.0",
|
|
63
63
|
"postcss-sort-media-queries": "^5.2.0",
|
|
64
|
+
"@commitlint/cli": "^20.1.0",
|
|
65
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
64
66
|
"postcss-url": "^10.1.3",
|
|
65
67
|
"postcss-urlrewrite": "^0.3.0"
|
|
66
68
|
},
|
|
67
69
|
"devDependencies": {
|
|
68
|
-
"@commitlint/cli": "^20.1.0",
|
|
69
|
-
"@commitlint/config-conventional": "^20.0.0",
|
|
70
70
|
"@itcase/lint": "^1.1.69",
|
|
71
71
|
"@semantic-release/changelog": "^6.0.3",
|
|
72
72
|
"@semantic-release/git": "^10.0.1",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
75
75
|
"eslint": "^9.39.1",
|
|
76
76
|
"husky": "^9.1.7",
|
|
77
|
-
"lint-staged": "^16.2.
|
|
77
|
+
"lint-staged": "^16.2.7",
|
|
78
78
|
"prettier": "^3.6.2",
|
|
79
79
|
"semantic-release": "^24.2.9",
|
|
80
|
-
"stylelint": "^16.
|
|
80
|
+
"stylelint": "^16.26.0",
|
|
81
81
|
"typescript": "^5.9.3"
|
|
82
82
|
}
|
|
83
83
|
}
|