Commit 02e173d8 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Guard against nullable filename in is_eslint

parent f48d8124
...@@ -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