import-js/eslint-plugin-import
`import/extensions` flagging when default package export is a json file
Aperta
#759 aperta il 1 mar 2017
bughelp wanted
Metriche repository
- Star
- (5940 stelle)
- Metriche merge PR
- (Merge medio 138g 22h) (3 PR mergiate in 30 g)
Descrizione
I have a package with a default export of index.json instead of index.js. When I try to import this package:
import foo from 'json-package';
import/extensions complains about the lack of an extensions. This doesn't seem like desired behavior.
fyi: @ljharb