Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: SB-815 husky with pre-commit hook
- Loading branch information
1 parent
a3bae58
commit f5d46ad
Showing
6 changed files
with
149 additions
and
285 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
[ -n "$CI" ] && exit 0 | ||
|
||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
echo "🚀 Running pre-commit tasks 🚀" | ||
npx lint-staged --allow-empty | ||
echo "🏁 Finished pre-commit tasks 🏁" |
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,4 @@ | ||
{ | ||
"*.{ts,tsx}": "eslint --fix", | ||
"*.{json,md,html}": "prettier --write" | ||
} |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.