Skip to content

Verify export = vs export default for CJS #10

@remcohaszing

Description

@remcohaszing

A common mistake people make is to write or emit module.exports = thing in the CJS output, but export default thing in the type definitions. It would be nice if this tool could handle that and provide suggestions how to fix it.

This involves inspecting the actual source code instead of just file resolutions, so I understand if this is a big ask, or even out of scope of this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplannedI'm going to do this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions