import-js/eslint-plugin-import

import/default failing on import of json file

Open

#429 建立於 2016年7月9日

在 GitHub 查看
 (5 留言) (0 反應) (0 負責人)JavaScript (4,946 star) (1,540 fork)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.

貢獻者指南