@itcase/config 1.0.67 → 1.0.69
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 +68 -0
- package/package.json +6 -6
- package/postcss/require.cjs +12 -5
|
@@ -0,0 +1,68 @@
|
|
|
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', ['other', 'ci', 'docs', 'fix']],
|
|
9
|
+
|
|
10
|
+
'body-empty': [1, 'always'],
|
|
11
|
+
'body-leading-blank': [1, 'always'],
|
|
12
|
+
'body-max-line-length': [2, 'always', 100],
|
|
13
|
+
|
|
14
|
+
'subject-case': [
|
|
15
|
+
2,
|
|
16
|
+
'never',
|
|
17
|
+
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
|
|
18
|
+
],
|
|
19
|
+
'subject-empty': [0, 'always'],
|
|
20
|
+
'subject-full-stop': [0, 'never', '.'],
|
|
21
|
+
'footer-leading-blank': [0, 'always'],
|
|
22
|
+
'footer-max-line-length': [0, 'always', 100],
|
|
23
|
+
'scope-empty': [2, 'never'],
|
|
24
|
+
'scope-enum': [2, 'always', ['report', 'map', 'tasks', 'users']],
|
|
25
|
+
},
|
|
26
|
+
prompt: {
|
|
27
|
+
settings: {
|
|
28
|
+
enableMultipleScopes: true,
|
|
29
|
+
},
|
|
30
|
+
questions: {
|
|
31
|
+
type: {
|
|
32
|
+
description:
|
|
33
|
+
"Sesdfgsdfgdfgdfglect the type of change that you're committing",
|
|
34
|
+
enum: {
|
|
35
|
+
ci: {
|
|
36
|
+
title: 'Continuous Integrations',
|
|
37
|
+
description: 'Changes to our CI configuration files and scripts',
|
|
38
|
+
emoji: '⚙️',
|
|
39
|
+
},
|
|
40
|
+
docs: {
|
|
41
|
+
title: 'Documentation',
|
|
42
|
+
description: 'Documentation only changes',
|
|
43
|
+
emoji: '📚',
|
|
44
|
+
},
|
|
45
|
+
fix: {
|
|
46
|
+
title: 'Bug Fixes',
|
|
47
|
+
description: 'A bug fix',
|
|
48
|
+
emoji: '🐛',
|
|
49
|
+
},
|
|
50
|
+
other: {
|
|
51
|
+
title: 'Other',
|
|
52
|
+
description: "Other changes that don't modify src or test files",
|
|
53
|
+
emoji: '♻️',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
body: {
|
|
58
|
+
description: '333333body',
|
|
59
|
+
},
|
|
60
|
+
scope: {
|
|
61
|
+
description: '111111scope',
|
|
62
|
+
},
|
|
63
|
+
subject: {
|
|
64
|
+
description: '222222subject',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.69",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Config",
|
|
6
6
|
"engines": {
|
|
@@ -61,23 +61,23 @@
|
|
|
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
|
-
"@
|
|
69
|
-
"@commitlint/config-conventional": "^20.0.0",
|
|
70
|
-
"@itcase/lint": "^1.1.68",
|
|
70
|
+
"@itcase/lint": "^1.1.69",
|
|
71
71
|
"@semantic-release/changelog": "^6.0.3",
|
|
72
72
|
"@semantic-release/git": "^10.0.1",
|
|
73
73
|
"@semantic-release/release-notes-generator": "14.1.0",
|
|
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
|
}
|
package/postcss/require.cjs
CHANGED
|
@@ -35,11 +35,18 @@ module.exports = {
|
|
|
35
35
|
stage: 2,
|
|
36
36
|
}),
|
|
37
37
|
require('postcss-mixins'),
|
|
38
|
-
require('postcss-url')(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
require('postcss-url')(
|
|
39
|
+
{
|
|
40
|
+
maxSize: 256,
|
|
41
|
+
url: 'inline',
|
|
42
|
+
filter: /\.(svg|png)$/,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
maxSize: 2048,
|
|
46
|
+
url: 'inline',
|
|
47
|
+
filter: /\.(eot|woff|woff2|ttf)$/,
|
|
48
|
+
},
|
|
49
|
+
),
|
|
43
50
|
require('postcss-nested-ancestors'),
|
|
44
51
|
require('postcss-nested'),
|
|
45
52
|
require('postcss-hexrgba'),
|