Unverified Commit 8221a5f3 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3309807 by nod_: Fix commit eslint checks following removal of es6 files

(cherry picked from commit b5d5cddc)
parent 4d9f5fbe
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -384,14 +384,15 @@
  ### JAVASCRIPT FILES
  ############################################################################
  if [[ -f "$TOP_LEVEL/$FILE" ]] && [[ $FILE =~ \.js$ ]]; then
    cd "$TOP_LEVEL/core"
    # Check the coding standards.
    if [[ -f ".eslintrc.passing.json" ]]; then
    node ./node_modules/eslint/bin/eslint.js --quiet --config=.eslintrc.passing.json "$TOP_LEVEL/$FILE"
      CORRECTJS=$?
      if [ "$CORRECTJS" -ne "0" ]; then
    JSLINT=$?
    if [ "$JSLINT" -ne "0" ]; then
      # No need to write any output the node command will do this for us.
      STATUS=1
      fi
    else
      printf "ESLint: $FILE ${green}passed${reset}\n"
    fi
    cd $TOP_LEVEL
  fi