From 02e173d82cea95ca50939652069de87ea4f98195 Mon Sep 17 00:00:00 2001
From: Vitaly Slobodin <vslobodin@gitlab.com>
Date: Mon, 24 Aug 2020 11:54:12 +0300
Subject: [PATCH] Guard against nullable filename in is_eslint

---
 config/helpers/is_eslint.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/helpers/is_eslint.js b/config/helpers/is_eslint.js
index 5dfb7e533e4d7..55ec42e68c1d3 100644
--- a/config/helpers/is_eslint.js
+++ b/config/helpers/is_eslint.js
@@ -5,7 +5,7 @@ const isESLint = mod => {
   let parent = mod.parent;
 
   while (parent) {
-    if (parent.filename.includes('/eslint')) {
+    if (parent.filename && parent.filename.includes('/eslint')) {
       return true;
     }
 
-- 
GitLab