Skip to content

Commit

Permalink
Add format script to pre-commit hook (anuraghazra#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
2 people authored and SousaPedro11 committed Oct 13, 2022
1 parent 11841c1 commit 8e54aa1
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 @@
_
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

0 comments on commit 8e54aa1

Please sign in to comment.