import-js/eslint-plugin-import

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

開放

#759 建立於 2017年3月1日

 (3 則留言) (1 個反應) (0 位負責人)JavaScript (1,549 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (5,940 顆星)
PR 合併指標
 (平均合併 138天 22小時) (30 天內合併 3 個 PR)

描述

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

貢獻者指南