mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +08:00
22 lines
522 B
Plaintext
22 lines
522 B
Plaintext
|
#!/bin/sh
|
||
|
#
|
||
|
# generates .eslintignore.errorfiles to list the files which have errors in,
|
||
|
# so that they can be ignored in future automated linting.
|
||
|
|
||
|
out=.eslintignore.errorfiles
|
||
|
|
||
|
cd `dirname $0`/..
|
||
|
|
||
|
echo "generating $out"
|
||
|
|
||
|
{
|
||
|
cat <<EOF
|
||
|
# autogenerated file: run scripts/generate-eslint-error-ignore-file to update.
|
||
|
|
||
|
EOF
|
||
|
|
||
|
./node_modules/.bin/eslint --no-ignore -f json src test |
|
||
|
jq -r '.[] | select((.errorCount + .warningCount) > 0) | .filePath' |
|
||
|
sed -e 's/.*matrix-react-sdk\///';
|
||
|
} > "$out"
|