Skip to content

Commit

Permalink
docs: Improve commit message for development
Browse files Browse the repository at this point in the history
Fixes #17216
  • Loading branch information
mertsincan committed Dec 26, 2024
1 parent 1e99110 commit 7c65361
Show file tree
Hide file tree
Showing 4 changed files with 477 additions and 66 deletions.
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install commitlint --edit $1
13 changes: 13 additions & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'style', 'refactor', 'test', 'chore']],
'subject-case': [2, 'always', ['sentence-case', 'lower-case']],
'references-empty': [1, 'never']
},
parserPreset: {
parserOpts: {
issuePrefixes: ['Fixes #', 'Fixed #']
}
}
};
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
"@angular/platform-browser-dynamic": "catalog:angular19",
"@angular/platform-server": "catalog:angular19",
"@angular/router": "catalog:angular19",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"eslint": "^9.14.0",
"eslint-config-prettier": "^9.1.0",
Expand Down
Loading

0 comments on commit 7c65361

Please sign in to comment.