We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 790d0e7 commit 40102feCopy full SHA for 40102fe
scripts/format.sh
@@ -12,6 +12,7 @@ find . -name "*.ts" \
12
find syntaxes/ -name "*.json" \
13
-exec yarn prettier --write {} +
14
15
-if [[ ! -z "${CI_MODE}" ]]; then
16
- git diff --diff-filter=ACMRT --exit-code || (echo "Files not formatted; please run 'yarn format'." && exit 1)
+if [[ -n "$(git status --porcelain)" ]]; then
+ echo "Files not formatted; please run 'yarn format'."
17
+ exit 1
18
fi
0 commit comments