Skip to content

Commit c69e666

Browse files
committed
feat(commitlint.config.js, package.json,package-lock.json commit-msg): add cli-commit tooling
Set up Commitizen for standardized commit messages, integrated Commitlint to enforce conventional commit rules, and added Husky Git hooks to automatically validate messages on each commit. This improves collaboration and ensures consistency across commits. "fix PSMRI#65"
1 parent 94284be commit c69e666

5 files changed

Lines changed: 5242 additions & 15113 deletions

File tree

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
commitlint --edit ./.git/COMMIT_EDITMSG

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
4-
npx lint-staged
1+
# This file is managed by Husky. Do not edit this file directly.
52
npx lint-staged

commitlint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
};
4+

0 commit comments

Comments
 (0)