-
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.
- Loading branch information
Showing
3 changed files
with
16 additions
and
3 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 |
---|---|---|
@@ -1 +1,5 @@ | ||
npx commitlint --edit "$1" | ||
# commit-msg | ||
|
||
# https://commitlint.js.org/guides/local-setup.html | ||
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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
# pre-commit | ||
|
||
echo "node version = $(node -v)" | ||
echo "npm version = $(npm -v)" | ||
|
||
# https://github.com/lint-staged/lint-staged?tab=readme-ov-file#command-line-flags | ||
npx lint-staged --allow-empty | ||
npx tsc --noEmit | ||
|
||
# https://typicode.github.io/husky/get-started.html#scripting | ||
git update-index --again | ||
|
||
# run pre-commit script | ||
npm run lint |
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