import-js/eslint-plugin-import

import/default failing on import of json file

Open

#429 opened on 2016年7月9日

GitHub で見る
 (5 comments) (0 reactions) (0 assignees)JavaScript (1,540 forks)batch import
acceptedenhancementhelp wantedsemver-minor

Repository metrics

Stars
 (4,946 stars)
PR merge metrics
 (平均マージ 138d 22h) (30d で 3 merged PRs)

説明

Code:

import data from './data'

Relevant config:

"import/default": 2,

Error:

error  No default export found in module

I'm not 100% certain, but I believe that node will allow importing of json files when the new module syntax is implemented. So this appears to be an error.

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