commitlint-plugin-function-rules 4.1.1 → 4.2.1
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/README.md +1 -0
- package/dist/rules.js +1 -0
- package/package.json +26 -148
package/README.md
CHANGED
|
@@ -63,6 +63,7 @@ Please [create an issue](https://github.com/vidavidorra/commitlint-plugin-functi
|
|
|
63
63
|
Refer to the [contributing guide](https://github.com/vidavidorra/.github/blob/main/CONTRIBUTING.md) for detailed information about other contributions, like pull requests.
|
|
64
64
|
|
|
65
65
|
[](https://conventionalcommits.org)
|
|
66
|
+
[](https://eslint.org/)
|
|
66
67
|
[](https://github.com/xojs/xo)
|
|
67
68
|
[](https://github.com/prettier/prettier)
|
|
68
69
|
|
package/dist/rules.js
CHANGED
|
@@ -7,6 +7,7 @@ const rules = {
|
|
|
7
7
|
'function-rules/body-max-length': functionRule,
|
|
8
8
|
'function-rules/body-max-line-length': functionRule,
|
|
9
9
|
'function-rules/body-min-length': functionRule,
|
|
10
|
+
'function-rules/breaking-change-exclamation-mark': functionRule,
|
|
10
11
|
'function-rules/footer-empty': functionRule,
|
|
11
12
|
'function-rules/footer-leading-blank': functionRule,
|
|
12
13
|
'function-rules/footer-max-length': functionRule,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "commitlint-plugin-function-rules",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "commitlint plugin to use functions as rule value",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"commitlint",
|
|
@@ -28,138 +28,14 @@
|
|
|
28
28
|
"build": "tsc",
|
|
29
29
|
"format": "prettier --ignore-path .gitignore --write \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --log-level warn",
|
|
30
30
|
"format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --log-level warn",
|
|
31
|
-
"lint": "npm run format:check &&
|
|
32
|
-
"lint:fix": "npm run format &&
|
|
31
|
+
"lint": "npm run format:check && eslint",
|
|
32
|
+
"lint:fix": "npm run format && eslint --fix",
|
|
33
33
|
"prepare": "husky .github/husky",
|
|
34
34
|
"test": "c8 ava"
|
|
35
35
|
},
|
|
36
|
-
"
|
|
37
|
-
"prettier": true,
|
|
38
|
-
"space": true
|
|
39
|
-
},
|
|
40
|
-
"prettier": {
|
|
41
|
-
"singleQuote": true
|
|
42
|
-
},
|
|
36
|
+
"prettier": "@vidavidorra/prettier-config",
|
|
43
37
|
"release": {
|
|
44
|
-
"
|
|
45
|
-
"main",
|
|
46
|
-
{
|
|
47
|
-
"name": "beta",
|
|
48
|
-
"prerelease": true
|
|
49
|
-
}
|
|
50
|
-
],
|
|
51
|
-
"plugins": [
|
|
52
|
-
[
|
|
53
|
-
"@semantic-release/commit-analyzer",
|
|
54
|
-
{
|
|
55
|
-
"releaseRules": [
|
|
56
|
-
{
|
|
57
|
-
"type": "perf",
|
|
58
|
-
"release": "patch"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"type": "revert",
|
|
62
|
-
"release": "patch"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"type": "docs",
|
|
66
|
-
"release": "patch"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"type": "chore",
|
|
70
|
-
"release": false
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"type": "refactor",
|
|
74
|
-
"release": "patch"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"type": "test",
|
|
78
|
-
"release": "patch"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"type": "build",
|
|
82
|
-
"release": "patch"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"type": "ci",
|
|
86
|
-
"release": "patch"
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"@semantic-release/release-notes-generator",
|
|
92
|
-
"@semantic-release/changelog",
|
|
93
|
-
[
|
|
94
|
-
"@semantic-release/exec",
|
|
95
|
-
{
|
|
96
|
-
"prepareCmd": "prettier --write CHANGELOG.md"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
[
|
|
100
|
-
"@semantic-release/npm",
|
|
101
|
-
{
|
|
102
|
-
"tarballDir": "dist"
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
"@semantic-release/git",
|
|
106
|
-
[
|
|
107
|
-
"@semantic-release/github",
|
|
108
|
-
{
|
|
109
|
-
"assets": "dist/*.tgz"
|
|
110
|
-
}
|
|
111
|
-
]
|
|
112
|
-
],
|
|
113
|
-
"preset": "conventionalcommits",
|
|
114
|
-
"presetConfig": {
|
|
115
|
-
"types": [
|
|
116
|
-
{
|
|
117
|
-
"type": "feat",
|
|
118
|
-
"section": "Features"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"type": "fix",
|
|
122
|
-
"section": "Bug Fixes"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"type": "perf",
|
|
126
|
-
"section": "Performance Improvements"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"type": "revert",
|
|
130
|
-
"section": "Reverts"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"type": "docs",
|
|
134
|
-
"section": "Documentation"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"type": "style",
|
|
138
|
-
"section": "Styles"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"type": "chore",
|
|
142
|
-
"section": "Miscellaneous Chores",
|
|
143
|
-
"hidden": true
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"type": "refactor",
|
|
147
|
-
"section": "Code Refactoring"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"type": "test",
|
|
151
|
-
"section": "Tests"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"type": "build",
|
|
155
|
-
"section": "Build System"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"type": "ci",
|
|
159
|
-
"section": "Continuous Integration"
|
|
160
|
-
}
|
|
161
|
-
]
|
|
162
|
-
}
|
|
38
|
+
"extends": "@vidavidorra/semantic-release-config"
|
|
163
39
|
},
|
|
164
40
|
"ava": {
|
|
165
41
|
"files": [
|
|
@@ -184,37 +60,39 @@
|
|
|
184
60
|
"text-summary"
|
|
185
61
|
]
|
|
186
62
|
},
|
|
63
|
+
"overrides": {
|
|
64
|
+
"@commitlint/config-conventional": {
|
|
65
|
+
"conventional-changelog-conventionalcommits": ">=9.0.0"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
187
68
|
"devDependencies": {
|
|
188
69
|
"@ava/typescript": "6.0.0",
|
|
189
|
-
"@commitlint/cli": "20.
|
|
190
|
-
"@commitlint/config-conventional": "20.
|
|
70
|
+
"@commitlint/cli": "20.2.0",
|
|
71
|
+
"@commitlint/config-conventional": "20.2.0",
|
|
191
72
|
"@commitlint/lint-19.x": "npm:@commitlint/lint@19.8.1",
|
|
73
|
+
"@commitlint/lint-20.x": "npm:@commitlint/lint@20.2.0",
|
|
192
74
|
"@commitlint/load-19.x": "npm:@commitlint/load@19.8.1",
|
|
193
|
-
"@commitlint/
|
|
194
|
-
"@commitlint/
|
|
195
|
-
"@commitlint/
|
|
196
|
-
"@
|
|
197
|
-
"@
|
|
198
|
-
"@
|
|
199
|
-
"@semantic-release
|
|
200
|
-
"@types/sinon": "17.0.4",
|
|
75
|
+
"@commitlint/load-20.x": "npm:@commitlint/load@20.2.0",
|
|
76
|
+
"@commitlint/rules": "20.2.0",
|
|
77
|
+
"@commitlint/types": "20.2.0",
|
|
78
|
+
"@types/sinon": "21.0.0",
|
|
79
|
+
"@vidavidorra/eslint-config": "1.0.3",
|
|
80
|
+
"@vidavidorra/prettier-config": "1.0.6",
|
|
81
|
+
"@vidavidorra/semantic-release-config": "1.0.4",
|
|
201
82
|
"ava": "6.4.1",
|
|
202
83
|
"c8": "10.1.3",
|
|
84
|
+
"eslint": "9.39.2",
|
|
203
85
|
"husky": "9.1.7",
|
|
204
|
-
"lint-staged": "16.2.
|
|
205
|
-
"prettier": "3.
|
|
206
|
-
"semantic-release": "25.0.
|
|
207
|
-
"sinon": "21.0.
|
|
208
|
-
"typescript": "5.9.3"
|
|
209
|
-
"xo": "1.2.3"
|
|
86
|
+
"lint-staged": "16.2.7",
|
|
87
|
+
"prettier": "3.7.4",
|
|
88
|
+
"semantic-release": "25.0.2",
|
|
89
|
+
"sinon": "21.0.1",
|
|
90
|
+
"typescript": "5.9.3"
|
|
210
91
|
},
|
|
211
92
|
"peerDependencies": {
|
|
212
93
|
"@commitlint/lint": ">=19 <21"
|
|
213
94
|
},
|
|
214
95
|
"engines": {
|
|
215
96
|
"node": ">=20"
|
|
216
|
-
},
|
|
217
|
-
"overrides": {
|
|
218
|
-
"conventional-changelog-conventionalcommits": ">= 8.0.0"
|
|
219
97
|
}
|
|
220
98
|
}
|