Skip to content

Commit 62b7e77

Browse files
committed
fix: adjust lefthook config
1 parent 8e0e96b commit 62b7e77

File tree

1 file changed

+1
-3
lines changed
  • packages/create-react-native-library/templates/common

1 file changed

+1
-3
lines changed

packages/create-react-native-library/templates/common/lefthook.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ pre-commit:
22
parallel: true
33
commands:
44
lint:
5-
files: git diff --name-only @{push}
65
glob: "*.{js,ts,jsx,tsx}"
7-
run: npx eslint {files}
6+
run: npx eslint {staged_files}
87
types:
9-
files: git diff --name-only @{push}
108
glob: "*.{js,ts, jsx, tsx}"
119
run: npx tsc --noEmit
1210
commit-msg:

0 commit comments

Comments
 (0)