import-js/eslint-plugin-import
`import/extensions` flagging when default package export is a json file
Aberta
#759 aberto em 1 de mar. de 2017
bughelp wanted
Métricas do repositório
- Stars
- (5.938 estrelas)
- Métricas de merge de PR
- (Mesclagem média 138d 22h) (3 fundiu PRs em 30d)
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