This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(merge): bump all dependencies (#158)
- Loading branch information
Showing
7 changed files
with
946 additions
and
1,357 deletions.
There are no files selected for viewing
Empty file.
Empty file.
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,6 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
[ "$CI" != true ] && yarn commitlint --edit $1 || true | ||
if [ "$CI" != true ]; then | ||
npx --no-install commitlint --edit $1 | ||
fi |
This file was deleted.
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 |
---|---|---|
@@ -1,25 +1,6 @@ | ||
#!/bin/sh | ||
. "$(dirname $0)/_/husky.sh" | ||
|
||
# Check wether the changed files include js/ts | ||
if grep -s -q --include=\*.{js,ts} '' $(git diff --name-only --cached); then | ||
# Stash unstaged changes | ||
git stash -q --keep-index | ||
|
||
# Format files | ||
if ! (yarn lint --quiet $(grep --color=never -l -s --include=\*.{js,ts} '' $(git diff --name-only --cached)) --fix); then | ||
git stash pop -q | ||
exit 1 | ||
fi | ||
|
||
# Mark stashed (for post-commit) | ||
touch ./.husky/_/stashed | ||
|
||
# Stage updated files | ||
git add -u | ||
else | ||
echo "Staged files do not include lintable files, skipping pre-commit formatting..." | ||
exit 0 | ||
if [ "$CI" != true ]; then | ||
yarn lint-staged | ||
fi | ||
|
||
# Re-apply original unstaged changes (happens in post-commit) |
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
Oops, something went wrong.