diff --git a/TEMPLATES/.eslintrc.yml b/TEMPLATES/.eslintrc.yml index 90d06ebc..cab2ef38 100644 --- a/TEMPLATES/.eslintrc.yml +++ b/TEMPLATES/.eslintrc.yml @@ -1,5 +1,5 @@ --- - + ############################# ############################# ## JavaScript Linter rules ## diff --git a/lib/linter.sh b/lib/linter.sh index 5e0fa3de..92134c9f 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1493,7 +1493,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 #