Linter warnings should fail pre-commit hook

This commit is contained in:
squidfunk 2017-01-28 23:51:34 +01:00
parent 17808d964d
commit ef7b07a90e

View File

@ -28,7 +28,7 @@ if [[ ! -d `npm bin` ]]; then
fi
# Run ESLint
`npm bin`/eslint .
`npm bin`/eslint --max-warnings 0 .
ESLINT=$?
# Run Stylelint