import-js/eslint-plugin-import

`import/extensions` flagging when default package export is a json file

オープン

#759 opened on 2017/03/01

 (3 件のコメント) (1 件のリアクション) (0 人の担当者)JavaScript (1,549 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (5,940 個のスター)
PR merge metrics
 (平均マージ 138d 22h) (30d で 3 merged PRs)

説明

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

コントリビューターガイド