chore(husky): add pre-commit

It triggers lint-staged via package manager
This commit is contained in:
Helder Burato Berto 2021-02-11 15:45:35 +00:00
parent dd74f53217
commit 8718bdd2a2
2 changed files with 5 additions and 0 deletions

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install lint-staged