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