Browse Source

refactor(musare.sh): Disable pseudo-tty for eslint commands

Owen Diffey 2 years ago
parent
commit
105a0adcd6
2 changed files with 6 additions and 6 deletions
  1. 2 2
      .github/workflows/build-eslint.yml
  2. 4 4
      musare.sh

+ 2 - 2
.github/workflows/build-eslint.yml

@@ -37,6 +37,6 @@ jobs:
             - name: Start Musare
               run: ./musare.sh start
             - name: ESlint Backend
-              run: docker-compose exec -T backend npx eslint logic
+              run: ./musare.sh eslint backend
             - name: ESLint Frontend
-              run: docker-compose exec -T frontend npx eslint src --ext .js,.vue
+              run: ./musare.sh eslint frontend

+ 4 - 4
musare.sh

@@ -248,17 +248,17 @@ case $1 in
         fi
         case $2 in
             frontend)
-                ${dockerCompose} exec frontend npx eslint src --ext .js,.vue $fix
+                ${dockerCompose} exec -T frontend npx eslint src --ext .js,.vue $fix
                 exitValue=$?
                 ;;
             backend)
-                ${dockerCompose} exec backend npx eslint logic $fix
+                ${dockerCompose} exec -T backend npx eslint logic $fix
                 exitValue=$?
                 ;;
             ""|fix|--fix)
-                ${dockerCompose} exec frontend npx eslint src --ext .js,.vue $fix
+                ${dockerCompose} exec -T frontend npx eslint src --ext .js,.vue $fix
                 frontendExitValue=$?
-                ${dockerCompose} exec backend npx eslint logic $fix
+                ${dockerCompose} exec -T backend npx eslint logic $fix
                 backendExitValue=$?
                 if [[ ${frontendExitValue} -gt 0 || ${backendExitValue} -gt 0 ]]; then
                     exitValue=1