Skip to content

import/default failing on import of json file #429

Open
@kentcdodds

Description

@kentcdodds

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions