-
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.
chore: Upgrade husky, Add lint-staged
- Loading branch information
1 parent
24aac98
commit 5517246
Showing
3 changed files
with
714 additions
and
53 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,45 +1 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
echo ' | ||
💅🛠️ Formatting and testing project before committing... | ||
' | ||
|
||
# Check tsconfig standards | ||
npm run check-types || | ||
( | ||
echo ' | ||
TypeScript Check Failed. ❌ | ||
Make the required changes listed above, add changes and try to commit again. | ||
' | ||
false; | ||
) | ||
|
||
|
||
# Check ESLint Standards | ||
npm run check-lint || | ||
( | ||
echo ' | ||
ESLint Check Failed. ❌ | ||
Make the required changes listed above, add changes and try to commit again. | ||
' | ||
false; | ||
) | ||
|
||
|
||
# Check Prettier standards | ||
npm run check-format-client || | ||
( | ||
echo ' | ||
Prettier Check Failed. ❌ | ||
Run npm run format, add changes and try commit again.'; | ||
false; | ||
) | ||
|
||
npm run check-format-server || | ||
( | ||
echo ' | ||
Prettier Check Failed. ❌ | ||
Run npm run format, add changes and try commit again.'; | ||
false; | ||
) | ||
npx lint-staged |
Oops, something went wrong.