Skip to content

Commit

Permalink
feat(commitlint): migrate from Angular to Conventional Commits (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamalston authored Dec 7, 2023
1 parent e9719fd commit 3a3cc78
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
9 changes: 8 additions & 1 deletion .commitlintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
module.exports = {
extends: ['@commitlint/config-angular'],
extends: ['@commitlint/config-conventional'],
rules: {
// Sets the maximum length for commit messages. It accounts for a 3-digit PR
// number (e.g., #123), and formatting (space and parentheses) in squash
// merges. Calculation: 72 (GitHub's limit) - 7 (3 digits for PR number +
// space + parentheses + hash symbol) = 65.
'header-max-length': [2, 'always', 65],
},
};
31 changes: 17 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-angular": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^7.2.1",
Expand Down

0 comments on commit 3a3cc78

Please sign in to comment.