18 pre commit hooks (#40)

* added husky

* added prettier and eslint hooks

* upgraded speeds

* lock

* Update pre-commit

Signed-off-by: DanMihailescu <as42554525@yahoo.ca>

---------

Signed-off-by: DanMihailescu <as42554525@yahoo.ca>
This commit is contained in:
DanMihailescu 2025-01-01 09:19:15 -05:00 committed by GitHub
parent 27fd2b7a14
commit a4d998665b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

2
.husky/pre-commit Normal file
View file

@ -0,0 +1,2 @@
bunx prettier . --write
bunx eslint_d $(git diff --name-only HEAD | grep -E '\.(*)$' | xargs)