Skip to content

Commit

Permalink
chore: add commitlint
Browse files Browse the repository at this point in the history
This helps enforcing the new commit message format
  • Loading branch information
AdrianFahrbach committed Dec 7, 2024
1 parent 148f3d6 commit c95a0ae
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "extends": ["@commitlint/config-conventional"] }
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"git": {
"commit": true,
"commitMessage": "🏷 release: v${version}"
"commitMessage": "release: v${version}"
},
"github": {
"release": true
Expand Down
18 changes: 9 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,47 @@
"gitmoji.onlyUseCustomEmoji": true,
"gitmoji.addCustomEmoji": [
{
"emoji": "feat:",
"emoji": "feat:",
"code": ":feat:",
"description": "Introduce new features"
},
{
"emoji": "🐛 fix:",
"emoji": "fix:",
"code": ":fix:",
"description": "Fixes a bug for the user (not build/CI related)"
},
{
"emoji": "💬 content:",
"emoji": "content:",
"code": ":content:",
"description": "Add or update content"
},
{
"emoji": "🧹 chore:",
"emoji": "chore:",
"code": ":chore:",
"description": "Update build system or external dependencies (e.g. gulp tasks)"
},
{
"emoji": "🏗 ci:",
"emoji": "ci:",
"code": ":ci:",
"description": "Add or update CI configuration or scripts"
},
{
"emoji": "📖 docs:",
"emoji": "docs:",
"code": ":docs:",
"description": "Add or update the documentation"
},
{
"emoji": "♻️ refactor:",
"emoji": "refactor:",
"code": ":refactor:",
"description": "Refactor code"
},
{
"emoji": "🧪 test:",
"emoji": "test:",
"code": ":test:",
"description": "Add or update tests"
},
{
"emoji": "🏷 release:",
"emoji": "release:",
"code": ":release:",
"description": "Publish a release"
}
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
"react-native-windows": "0.76.2"
},
"devDependencies": {
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/runtime": "^7.26.0",
Expand Down

0 comments on commit c95a0ae

Please sign in to comment.