import-js/eslint-plugin-import
`import/extensions` flagging when default package export is a json file
Ouverte
#759 ouverte le 1 mars 2017
bughelp wanted
Métriques du dépôt
- Stars
- (5 938 étoiles)
- Métriques de merge PR
- (Merge moyen 138j 22h) (3 PRs mergées en 30 j)
Description
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