chore: add lint-staged + husky

This commit is contained in:
Sebastian Rindom
2021-10-12 22:09:46 +02:00
parent f02cb638db
commit 30b6a793f1
6 changed files with 643 additions and 23 deletions

4
.husky/pre-commit Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
lint-staged || node scripts/on-lint-error.js