-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(commitlint, husky): enabled commitlint with husky
- Loading branch information
sumitm001
committed
Aug 16, 2024
1 parent
4e8b7cc
commit 561dd15
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npx --no -- commitlint --edit ${1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import type { UserConfig } from "@commitlint/types"; | ||
|
||
const Configuration: UserConfig = { | ||
extends: ["@commitlint/config-conventional"], | ||
rules: { | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'feat', // New features | ||
'fix', // Bug fixes | ||
'chore', // Maintenance tasks | ||
'ci', // CI configuration changes | ||
'docs', // Documentation updates | ||
'perf', // Performance improvements | ||
'refactor', // Code refactoring | ||
'revert', // Revert to previous commit | ||
'style', // Code style changes | ||
'test', // Adding or updating tests | ||
], | ||
], | ||
} | ||
}; | ||
|
||
module.exports = Configuration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters