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:
parent
27fd2b7a14
commit
a4d998665b
3 changed files with 6 additions and 1 deletions
2
.husky/pre-commit
Normal file
2
.husky/pre-commit
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
bunx prettier . --write
|
||||
bunx eslint_d $(git diff --name-only HEAD | grep -E '\.(*)$' | xargs)
|
||||
Loading…
Add table
Add a link
Reference in a new issue