import-js/eslint-plugin-import

import/default failing on import of json file

Open

#429 opened on Jul 9, 2016

View on 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
 (Avg merge 138d 22h) (3 merged PRs in 30d)

Description

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.

Contributor guide