Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First of all, thank you very much for providing and maintaining
husky
❤️While working on another pull request I realized that there are currently some lint issues (popping up in VS Code). So I decided to fix them and take the chance to give the whole code base a little clean-up:
pre-commit
and GitHub workflowtest
jobs into one by using the matrixexclude
option for Windows with Node.js 14husky.sh
shell scriptshellcheck
, inspired by Shellcheck complains about hook script #1226test
shell scriptsshellcheck
GIT_INDEX_FILE
env var when called via git hook, that is runninggit commit
in this very repo.Otherwise git commands in tests are running into conflicts because they are using the index from this repo instead of the temporary test repos. Honestly, I'm a bit surprised this hasn't been an issue for others before...
printf
instead ofecho -e
for true POSIX (for example, special chars were printed instead of colored output on macOS)tsconfig.js
filenode14
config since we're targeting Node.js >=14CONTRIBUTING.md
file