-
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.
Followed: https://github.com/conventional-changelog/commitlint#getting-started for new way of install and configuring husky with commitlint
- Loading branch information
1 parent
04f2c9f
commit 8eb7898
Showing
3 changed files
with
11 additions
and
120 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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit "$1" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,7 +8,8 @@ | |
"test": "echo \"Error: no test specified\" && exit 1", | ||
"lint:code": "eslint --ignore-path .gitignore .", | ||
"compile": "tsc", | ||
"lint:commits:branch": "commitlint --from origin/HEAD --to HEAD --verbose" | ||
"lint:commits:branch": "commitlint --from origin/HEAD --to HEAD --verbose", | ||
"prepare": "husky install" | ||
}, | ||
"author": "Marketplacer <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -25,7 +26,7 @@ | |
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-standard": "^5.0.0", | ||
"husky": "^4.3.8", | ||
"husky": "^7.0.4", | ||
"typescript": "^4.5.5" | ||
}, | ||
"dependencies": { | ||
|