summaryrefslogtreecommitdiffstats
path: root/run-stylelint.sh
blob: 0b4344a34cdac4c9afab7334a85e6a8f049a9be0 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/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 ...
$STYLELINT -f verbose css