Run `prettier` on //scouting
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: Idbb6011040f44d2b6c4158bf4c84a37818f258a5
diff --git a/tools/lint/prettier.sh b/tools/lint/prettier.sh
index dc29522..adea3f2 100755
--- a/tools/lint/prettier.sh
+++ b/tools/lint/prettier.sh
@@ -11,6 +11,10 @@
{ echo>&2 "ERROR: cannot find $f"; exit 1; }; f=; set -e
# --- end runfiles.bash initialization v2 ---
+# The rules_nodejs runfiles discovery needs some help.
+runfiles_export_envvars
+export RUNFILES="${RUNFILES_DIR}"
+
PRETTIER="$(rlocation npm/prettier/bin/prettier.sh)"
PRETTIER="$(readlink -f "${PRETTIER}")"
readonly PRETTIER
diff --git a/tools/lint/run-ci.sh b/tools/lint/run-ci.sh
index 25c6d0c..0576110 100755
--- a/tools/lint/run-ci.sh
+++ b/tools/lint/run-ci.sh
@@ -65,9 +65,7 @@
}
prettier() {
- # TODO(phil): Uncomment this and delete the "true" statement.
- #./tools/lint/prettier
- true
+ ./tools/lint/prettier
}
git_status_is_clean() {