From 191324c06be2123d87c23cf059d479800aa2fbb5 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Fri, 13 Dec 2019 07:42:16 -0600 Subject: [PATCH] adding path --- .github/linters/.eslintrc.yml | 1 + lib/linter.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/linters/.eslintrc.yml b/.github/linters/.eslintrc.yml index a8c4c5df..2bc8d6ee 100644 --- a/.github/linters/.eslintrc.yml +++ b/.github/linters/.eslintrc.yml @@ -12,6 +12,7 @@ env: browser: true es6: true + jest: true ############### # Global Vars # diff --git a/lib/linter.sh b/lib/linter.sh index aa83cc95..f17db183 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1516,7 +1516,7 @@ Eslint() ################################ # Lint the file with the rules # ################################ - LINT_CMD=$(eslint -c "$JAVASCRIPT_LINTER_RULES" "$FILE" 2>&1) + LINT_CMD=$(cd "$GITHUB_WORKSPACE" || exit; eslint -c "$JAVASCRIPT_LINTER_RULES" "$FILE" 2>&1) ####################### # Load the error code # @@ -1615,7 +1615,7 @@ StandardLint() ################################ echo " - Utilizing Env:[$ENV_STRING]" # shellcheck disable=SC2086 - STANDARD_LINT_CMD=$(standard $ENV_STRING "$FILE" 2>&1) + STANDARD_LINT_CMD=$(cd "$GITHUB_WORKSPACE" || exit; standard $ENV_STRING "$FILE" 2>&1) ####################### # Load the error code #