Merge pull request #15 from github/fixit

Fixit
This commit is contained in:
Lukas Gravley 2019-11-07 10:29:51 -06:00 committed by GitHub
commit d5a9e48631
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 6 deletions

View file

@ -26,7 +26,6 @@ globals:
parser: '@typescript-eslint/parser' parser: '@typescript-eslint/parser'
parserOptions: parserOptions:
ecmaVersion: 2018 ecmaVersion: 2018
sourceType: module
########### ###########
# Plugins # # Plugins #

View file

@ -31,19 +31,33 @@ RUN apk add --no-cache \
##################### #####################
# Run Pip3 Installs # # Run Pip3 Installs #
##################### #####################
RUN pip3 install --upgrade --no-cache-dir \ RUN pip3 --no-cache-dir install --upgrade --no-cache-dir \
yamllint pylint yamllint pylint
#################### ####################
# Run NPM Installs # # Run NPM Installs #
#################### ####################
RUN npm -g install \ RUN npm -g --no-cache install \
markdownlint-cli \ markdownlint-cli \
jsonlint prettyjson \ jsonlint prettyjson \
coffeelint \ coffeelint \
typescript eslint standard \ typescript eslint \
standard \
babel-eslint \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser \
&& npm --no-cache install \
markdownlint-cli \
jsonlint prettyjson \
coffeelint \
typescript eslint \
standard \
babel-eslint \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser @typescript-eslint/parser
# I think we could fix this with path but not sure the language...
# https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md
#################### ####################
# Run GEM installs # # Run GEM installs #
#################### ####################
@ -86,6 +100,7 @@ COPY TEMPLATES /action/lib/.automation
###################### ######################
# Set the entrypoint # # Set the entrypoint #
###################### ######################
#RUN find / -name node_modules
ENTRYPOINT ["/action/lib/linter.sh"] ENTRYPOINT ["/action/lib/linter.sh"]
#CMD tail -f /dev/null #CMD tail -f /dev/null

View file

@ -26,7 +26,6 @@ globals:
parser: '@typescript-eslint/parser' parser: '@typescript-eslint/parser'
parserOptions: parserOptions:
ecmaVersion: 2018 ecmaVersion: 2018
sourceType: module
########### ###########
# Plugins # # Plugins #

View file

@ -1493,7 +1493,7 @@ Eslint()
################################ ################################
# Lint the file with the rules # # Lint the file with the rules #
################################ ################################
LINT_CMD=$(cd "$GITHUB_WORKSPACE" || exit; eslint -c "$JAVASCRIPT_LINTER_RULES" "$FILE" 2>&1) LINT_CMD=$(eslint -c "$JAVASCRIPT_LINTER_RULES" "$FILE" 2>&1)
####################### #######################
# Load the error code # # Load the error code #