Skip to content

Commit

Permalink
rename the pre-commint log file
Browse files Browse the repository at this point in the history
Signed-off-by: Spolti <[email protected]>
  • Loading branch information
spolti committed Nov 28, 2023
1 parent cd9b8dd commit dd53c5f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.DS_Store
Dockerfile
temp
.pre-commit.log
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
*.iml

public/

.pre-commit.log
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ repos:
rev: v2.4.1
hooks:
- id: prettier
log_file: /tmp/pre-commit.log
log_file: .pre-commit.log
4 changes: 2 additions & 2 deletions scripts/fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pre-commit run --all-files
RETURN_CODE=$?

# cat this file for helping on identifying the root cause when some issue happens
if [ -f /tmp/pre-commit.log ]; then
cat /tmp/pre-commit.log
if [ -f .pre-commit.log ]; then
cat .pre-commit.log
fi

function echoError() {
Expand Down

0 comments on commit dd53c5f

Please sign in to comment.