Skip to content

[import/extensions] Should detect if a relative import is from an ESM before error #2104

Open
@klarkc

Description

@klarkc

According node documentation, in ESM, file extensions are mandatory, with default value for this rule, it breaks Node native behavior.

There is in the same documentation a detailed explanation of how to detect if a module is CJS or ESM.

Originally posted by @klarkc in #928 (comment)

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