summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Zhou <taoalpha@google.com>2019-12-13 12:56:51 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-12-13 12:56:51 +0000
commit435ce63655319e91219705b6e8ca9462bd154574 (patch)
treef3dd3ee1633cc48f7c00daaf83ed87cc754458bc
parente4df020755950fa3a720e8bb49bfd881e8b27d57 (diff)
parent609c50862383f8cd4a99520884cb37addaa7b9f5 (diff)
Merge "Link global eslint packages to local project" into stable-2.16
-rwxr-xr-xpolygerrit-ui/app/lint_test.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/polygerrit-ui/app/lint_test.sh b/polygerrit-ui/app/lint_test.sh
index 35939ba174..f9459c340b 100755
--- a/polygerrit-ui/app/lint_test.sh
+++ b/polygerrit-ui/app/lint_test.sh
@@ -19,4 +19,8 @@ if [ -z "$eslint_bin" ] || [ "$eslint_config" -eq "0" ] || [ "$eslint_plugin" -e
exit 1
fi
-${eslint_bin} --ignore-pattern 'bower_components/' --ignore-pattern 'gr-linked-text' --ignore-pattern 'scripts/vendor' --ext .html,.js .
+# Linking global eslint packages to the local project. Required to use eslint plugins with a global
+# eslint installation.
+npm link eslint eslint-config-google eslint-plugin-html
+
+${eslint_bin} --ignore-pattern 'node_modules/' --ignore-pattern 'bower_components/' --ignore-pattern 'gr-linked-text' --ignore-pattern 'scripts/vendor' --ext .html,.js .