Skip to content

Commit

Permalink
Add format script to pre-commit hook (#2146)
Browse files Browse the repository at this point in the history
* Add format script to pre-commit hook

* build: add husky prepare step

* build: add lint-staged

* build: add lint-staged

Co-authored-by: rickstaa <rick.staa@outlook.com>
  • Loading branch information
HwangTaehyun and rickstaa authored Oct 7, 2022
1 parent bcb8ae9 commit e8dfbde
Show file tree
Hide file tree
Showing 4 changed files with 894 additions and 395 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_

This comment has been minimized.

Copy link
@g1therd0n3

g1therd0n3 Dec 2, 2023

This comment has been minimized.

Copy link
@g1therd0n3

g1therd0n3 Dec 2, 2023

[Nov 25, 2023 528

  • PM.txt](https://github.com/anuraghazra/github-readme-stats/files/13537067/Nov.25.2023.528.PM.txt)

5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test
npx lint-staged
Loading

1 comment on commit e8dfbde

@vercel
Copy link

@vercel vercel bot commented on e8dfbde Oct 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.