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,940 顆星)
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?

貢獻者指南