Merge "Add a deprecation message to lint_test.sh and lint_test rule"
				
					
				
			This commit is contained in:
		@@ -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",
 | 
			
		||||
 
 | 
			
		||||
@@ -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."
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user