Add lint-staged

This prevents unstaged files and unstaged changes to staged files from being checked.
This commit is contained in:
Henrik Hüttemann
2023-05-23 13:40:40 +02:00
parent 18985caab8
commit e241fa7491
3 changed files with 1238 additions and 4 deletions
+1 -3
View File
@@ -1,9 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run format
npm run lint
# THIS PART is generated by pre-commit: https://pre-commit.com
# start templated
@@ -24,5 +21,6 @@ else
fi
### End of pre-commit py part
npx lint-staged
npm test
npm run compile