setup lint-staged and husky

Co-Authored-By: Yash Singh <saiansh2525@gmail.com>
This commit is contained in:
Matthieu MOREL
2021-11-29 18:32:35 +01:00
committed by Matthieu Morel
parent f887420818
commit 27027d003b
12 changed files with 173 additions and 33 deletions

4
.husky/pre-commit Normal file
View File

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

4
.husky/pre-push Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn test