Add format script to pre-commit hook (#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 <rick.staa@outlook.com>
This commit is contained in:
Taehyun Hwangandrickstaa authored and GitHub committed 2022-10-07 12:33:54 +02:00
1 parent bcb8ae9281
commit e8dfbde7bb
4 files changed
+889 -390

No files matched your search

+1
View File
@@ -0,0 +1 @@
_
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm test
npx lint-staged