import/default
If a default import is requested, this rule will report if there is no default export in the imported module.
For ES7, reports if a default is named and exported but is not found in the referenced module.
Note: for packages, the plugin will find exported names from jsnext:main, if present in package.json. Redux's npm module includes this key, and thereby is lintable, for example.
A module path that is ignored or not unambiguously an ES module will not be reported when imported.
Rule Details
Given:
The following is considered valid:
...and the following cases are reported:
When Not To Use It
If you are using CommonJS and/or modifying the exported namespace of any module at runtime, you will likely see false positives with this rule.
This rule currently does not interpret module.exports = ... as a default export, either, so such a situation will be reported in the importing module.
Further Reading
Lee Byron's ES7 export proposal
import/ignoresettingjsnext:main(Rollup)