blob: 5fbea51da1e890ea5fee70ef898426ef5c30a5ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
set -e
STYLELINT=$(which stylelint || true)
if [ -z "$STYLELINT" ]; then
echo "Can't find command \"stylelint\" in $PATH"
exit 1
fi
echo Checking stylesheets with $STYLELINT ...
find css/ -name "*.css" -print0 | xargs -0 $STYLELINT
find css/ -name "*.scss" -print0 | xargs -0 $STYLELINT
|