mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-31 01:48:20 -04:00
Replaced SASS Lint with Stylelint
This commit is contained in:
@@ -31,12 +31,12 @@ fi
|
||||
`npm bin`/eslint .
|
||||
ESLINT=$?
|
||||
|
||||
# Run Sass-Lint
|
||||
`npm bin`/sass-lint -c .sass-lint.yml -vq
|
||||
SASSLINT=$?
|
||||
# Run Stylelint
|
||||
`npm bin`/stylelint `find src/assets -name *.scss`
|
||||
STYLELINT=$?
|
||||
|
||||
# If one command failed, exit with error
|
||||
if [ $ESLINT == 1 ] || [ $SASSLINT == 1 ]; then
|
||||
if [ $ESLINT -gt 0 ] || [ $STYLELINT -gt 0 ]; then
|
||||
exit 1
|
||||
fi;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user