-
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.
- Loading branch information
1 parent
34acb6a
commit 5602a8a
Showing
5 changed files
with
38 additions
and
5 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 |
---|---|---|
|
@@ -8,5 +8,7 @@ cleanup() { | |
|
||
cleanup | ||
|
||
npm run build | ||
bun run build | ||
bun run lint:fix | ||
|
||
git add . |
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
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,29 @@ | ||
#!/bin/bash | ||
|
||
output="" | ||
|
||
|
||
lint() { | ||
if [[ $1 == '--fix' ]]; then | ||
echo 'Fixing all fixable linting issues...' | ||
echo | ||
|
||
eslint ./src --fix & output=$(eslint ./src --fix) | ||
else | ||
echo 'Checking code for linting issues...' | ||
echo | ||
|
||
eslint ./src & output=$(eslint ./src) | ||
fi | ||
} | ||
|
||
|
||
lint $1 | ||
|
||
if [ -n "$output" ]; then | ||
echo 'Linting check failed.' | ||
exit 1 | ||
else | ||
echo 'Linting check passed!' | ||
exit 0 | ||
fi |
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
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