Skip to content

Commit

Permalink
ci(commit): use commit linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mijailr committed Aug 17, 2020
1 parent a29dab7 commit 5b0d52f
Show file tree
Hide file tree
Showing 4 changed files with 257 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"preset": "conventionalcommits",
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "revert": true, "release": "patch" },
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
"semantic-release": "semantic-release"
},
"devDependencies": {
"@commitlint/cli": "^9.1.2",
"@commitlint/config-conventional": "^9.1.2",
"@pika/pack": "^0.5.0",
"@pika/plugin-build-node": "^0.9.0",
"@pika/plugin-build-web": "^0.9.0",
Expand Down Expand Up @@ -58,6 +60,7 @@
],
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
Expand Down
Loading

0 comments on commit 5b0d52f

Please sign in to comment.