Merge "Add a deprecation message to lint_test.sh and lint_test rule"

This commit is contained in:
Ben Rohlfs
2019-12-16 13:03:38 +00:00
committed by Gerrit Code Review
2 changed files with 8 additions and 0 deletions

View File

@@ -104,6 +104,7 @@ sh_test(
],
)
# TODO(taoalpha): alias to `npm run eslint` or just remove once CI moved to npm
sh_test(
name = "lint_test",
size = "large",

View File

@@ -1,7 +1,14 @@
#!/bin/sh
# DEPRECATED: This file is only used by Gerrit CI for now
# To run eslint test on FE code, run `npm run eslint` instead.
# `bazel run lint_test` will be changed to be an alias to
# `npm run eslint` soon.
set -ex
echo "DEPRECATED: please run `npm run eslint` instead.";
npm_bin=$(which npm) && true
if [ -z "$npm_bin" ]; then
echo "NPM must be on the path."