Loading core/scripts/dev/commit-code-check.sh +8 −7 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
core/scripts/dev/commit-code-check.sh +8 −7 Original line number Diff line number Diff line Loading @@ -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 Loading