Skip to content
代码片段 群组 项目
提交 02e173d8 编辑于 作者: Vitaly Slobodin's avatar Vitaly Slobodin
浏览文件

Guard against nullable filename in is_eslint

上级 f48d8124
No related branches found
No related tags found
无相关合并请求
......@@ -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;
}
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册