Add lint-staged
This prevents unstaged files and unstaged changes to staged files from being checked.
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user