Skip to content

Disallowing unused values #17

@jugglinmike

Description

@jugglinmike

As far as I know, the following construction, though syntactically valid, would never be used intentionally since ParseJSONModule has no side effects:

import 'data.json' assert { type: 'json' };

In that case, disallowing it could surface programming errors. I'm not sure if the restriction would justify the complexity of another early error, though. Is it better left to linters?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions