Skip to content

Commit

Permalink
ci: add lint to commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecesr committed Oct 21, 2024
1 parent 753f8c5 commit 2cfbb07
Show file tree
Hide file tree
Showing 4 changed files with 653 additions and 15 deletions.
6 changes: 6 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: [
"@commitlint/config-conventional",
"@commitlint/config-lerna-scopes",
],
};
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
commitlint --edit $1
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@
"packages/*"
],
"scripts": {
"release": "lerna publish --yes"
"release": "lerna publish --yes",
"prepare": "husky"
},
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/config-lerna-scopes": "^19.5.0",
"husky": "^9.1.6",
"lerna": "^8.1.8"
}
}
Loading

0 comments on commit 2cfbb07

Please sign in to comment.