Tweak .husky/pre-commit
This commit is contained in:
parent
479106b13a
commit
d38cdee8da
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ pattern=".ts|.tsx|.js$"
|
|||
files=$(git --no-pager diff --cached --name-only | grep -E -e "${pattern}")
|
||||
if [ "$?" = "0" ]; then
|
||||
npm run prettier -- -c ${files} || exit 1
|
||||
npm run eslint -- ${files} || exit 1
|
||||
npm run eslint -- --exit-on-fatal-error ${files} || exit 1
|
||||
git add "${files}"
|
||||
exit 0
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue