diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 43ce8e6332d723f3eb79b024d2c5b95e9e68ba75..f1b91688290c89ca4760935e6b0820aa07a99b77 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,8 +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 lint.log'
-    - "grep -qE '✖ [0-9]+ problem' lint.log"
+    - 'npm run lint | tee lint.log'
+    - "! grep -qE '✖ [0-9]+ problem' lint.log"
   allow_failure: true
   needs: []