import-js/eslint-plugin-import

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

Aperta

#1147 aperta il 30 lug 2018

 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (1549 fork)batch import
help wanted

Metriche repository

Star
 (5940 stelle)
Metriche merge PR
 (Merge medio 138g 22h) (3 PR mergiate in 30 g)

Descrizione

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?

Guida contributor