Skip to content

[Bug] Does not work ES2022 arbitrary module namespace identifiers #5

@wallzero

Description

@wallzero

This code:

export { index as default, index as "module.exports" };

Throws the following error:

Require error message:
        ./node_modules/@stylistic/eslint-plugin/dist/index.js:108
      export { index as default, index as "module.exports" };
                                          ^
      
      SyntaxError: Invalid or unexpected token

See:

tc39/ecma262#2154
https://nodejs.org/api/modules.html

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