import-js/eslint-plugin-import
import/named doesn't work when the target has no exports
Offen
#1.147 geöffnet am 30.07.2018
help wanted
Repository-Metriken
- Stars
- (5.940 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 138T 22h) (3 gemergte PRs in 30 T)
Beschreibung
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?