Skip to content

Commit 5b0d52f

Browse files
committed
ci(commit): use commit linter
1 parent a29dab7 commit 5b0d52f

File tree

4 files changed

+257
-17
lines changed

4 files changed

+257
-17
lines changed

.commitlintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.releaserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[
55
"@semantic-release/commit-analyzer",
66
{
7-
"preset": "angular",
7+
"preset": "conventionalcommits",
88
"releaseRules": [
99
{ "breaking": true, "release": "major" },
1010
{ "revert": true, "release": "patch" },

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"semantic-release": "semantic-release"
1818
},
1919
"devDependencies": {
20+
"@commitlint/cli": "^9.1.2",
21+
"@commitlint/config-conventional": "^9.1.2",
2022
"@pika/pack": "^0.5.0",
2123
"@pika/plugin-build-node": "^0.9.0",
2224
"@pika/plugin-build-web": "^0.9.0",
@@ -58,6 +60,7 @@
5860
],
5961
"husky": {
6062
"hooks": {
63+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
6164
"pre-commit": "lint-staged"
6265
}
6366
},

0 commit comments

Comments
 (0)