build(lint): add lint-staged and husky git hooks to automatically lint on commit

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-05-26 17:36:56 +02:00
parent 98e8546c9a
commit 54f656d239
3 changed files with 327 additions and 4 deletions

4
.husky/pre-commit Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
cd js
yarn run lint-staged