Welcome to mirror list, hosted at ThFree Co, Russian Federation.

run-eslint.sh - github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 50548f1079824cce73a0bcb971dbf9768e8a6f54 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -e

ESLINT=$(which eslint || true)
if [ -z "$ESLINT" ]; then
    echo "Can't find command \"eslint\" in $PATH"
    exit 1
fi

echo Checking scripts with $ESLINT ...
find -name "*.js" -print0 | xargs -0 $ESLINT