import-js/eslint-plugin-import

import/named doesn't work when the target has no exports

开放

#1,147 创建于 2018年7月30日

 (2 条评论) (0 个反应) (0 位负责人)JavaScript (1,549 个派生)batch import
help wanted

仓库指标

星标
 (5,938 个星标)
PR 合并指标
 (平均合并 138天 22小时) (30 天内合并 3 个 PR)

描述

Given:

// a.js
console.log('This file has no exports')

// b.js
import { doesntExist } from './a'

I'd expect the import/named rule to show an error for doesntExist. It doesn't. What am I missing? Is there a way to check for this type of error?

贡献者指南