Skip to content

Commit e8dfbde

Browse files
Add format script to pre-commit hook (anuraghazra#2146)
* Add format script to pre-commit hook * build: add husky prepare step * build: add lint-staged * build: add lint-staged Co-authored-by: rickstaa <[email protected]>
1 parent bcb8ae9 commit e8dfbde

File tree

4 files changed

+894
-395
lines changed

4 files changed

+894
-395
lines changed

Diff for: .husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

Diff for: .husky/pre-commit

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm test
5+
npx lint-staged

0 commit comments

Comments
 (0)