Commit 8760601b authored by Illya Klymov's avatar Illya Klymov

Merge branch 'vs-fix-eslint-null-filename' into 'master'

Guard against nullable filename in is_eslint

See merge request gitlab-org/gitlab!40239
parents 2905eac5 02e173d8
...@@ -5,7 +5,7 @@ const isESLint = mod => { ...@@ -5,7 +5,7 @@ const isESLint = mod => {
let parent = mod.parent; let parent = mod.parent;
while (parent) { while (parent) {
if (parent.filename.includes('/eslint')) { if (parent.filename && parent.filename.includes('/eslint')) {
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment