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 (4,946 stars) (1,540 forks)batch import
acceptedenhancementhelp wantedsemver-minor

説明

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.

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