Skip to content

why is n/file-extension-in-import a stylic? #39

Closed
@jimmywarting

Description

@jimmywarting

i don't consider file extension as something that is stylic
it's more of a problem if you want to trully run ESM scripts that demands that you use file extension

it will possible only work b/c someone is using a build script anyways.
i think demanding a extension should be a recommended rule.
when using remote path resolver like http import you can't guess what you meant to import cuz you do not have access to the fs

https://nodejs.org/dist/latest-v18.x/docs/api/esm.html#mandatory-file-extensions (<-- mandatory is in the link desc)
standard/standard#1674

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