mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Linter warnings should fail pre-commit hook
This commit is contained in:
@@ -28,7 +28,7 @@ if [[ ! -d `npm bin` ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Run ESLint
|
# Run ESLint
|
||||||
`npm bin`/eslint .
|
`npm bin`/eslint --max-warnings 0 .
|
||||||
ESLINT=$?
|
ESLINT=$?
|
||||||
|
|
||||||
# Run Stylelint
|
# Run Stylelint
|
||||||
|
|||||||
Reference in New Issue
Block a user