Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b8f4497

Browse files
committedJun 23, 2024·
remving pre-push hook and adding lint to the pre-commit hook
1 parent 5c25bdb commit b8f4497

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed
 

‎lefthook.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
pre-commit:
66
commands:
77
lint:
8-
glob: "*.tsx"
8+
glob: "*.{tsx|ts}"
99
# Format code and then `git add` modified files from formatter.
10-
run: yarn format && git add {staged_files}
11-
12-
# Commands to run before pushing code
13-
pre-push:
14-
commands:
15-
lint:
16-
# Run linter giving you errors to fix.
17-
run: yarn lint
10+
run: yarn lint --fix format && git add {staged_files}

0 commit comments

Comments
 (0)
Please sign in to comment.