diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b6825befe813148b65da970bf1d4f07e4973c10f..43ce8e6332d723f3eb79b024d2c5b95e9e68ba75 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,7 +35,8 @@ eslint:
   script:
     - npm install
     # eslint exits 0 on warnings, this is a workaround to exit 1 when warnings are present.
-    - '! npm run lint | tee "$(tty)" | grep -qE ''✖ [0-9]+ problem'''
+    - '! npm run lint | tee lint.log'
+    - "grep -qE '✖ [0-9]+ problem' lint.log"
   allow_failure: true
   needs: []