diff options
author | thursday <xthursdayx@mailbox.org> | 2021-11-16 03:11:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 03:11:29 -0500 |
commit | 7962660cc2c07e6c3bfa74faf7d8ba429546ea73 (patch) | |
tree | ff385e1590b875bf4799f275b393bc9053d94e02 /.husky | |
parent | Update entrypoint.sh (diff) | |
parent | Merge branch 'master' into master (diff) | |
download | ferdium-server-7962660cc2c07e6c3bfa74faf7d8ba429546ea73.tar.gz ferdium-server-7962660cc2c07e6c3bfa74faf7d8ba429546ea73.tar.zst ferdium-server-7962660cc2c07e6c3bfa74faf7d8ba429546ea73.zip |
Merge pull request #2 from getferdi/master
Update to head
Diffstat (limited to '.husky')
-rwxr-xr-x | .husky/pre-commit | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.husky/pre-commit b/.husky/pre-commit index 20d0d06..1a92cb3 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit | |||
@@ -1,4 +1,9 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | . "$(dirname "$0")/_/husky.sh" | ||
3 | 2 | ||
4 | npm run lint | 3 | FILE_NAME="$(dirname "$0")/_/husky.sh" |
4 | |||
5 | # Conditionally invoke so as to avoid running npm commands if this is a clean checkout (ie before installing npm modules) | ||
6 | if [ -f $FILE_NAME ]; then | ||
7 | . $FILE_NAME | ||
8 | npm run lint | ||
9 | fi | ||