Skip to content

Making ExportMap available in eslint-module-utils? #3030

Open
@adamhamlin

Description

@adamhamlin

The ExportMap generally makes possible lint rules which evaluate metadata in files/nodes imported by the "current" file. For example, the import/no-deprecated rule uses it to check for @deprecated doc tags for any imported items.

This is a powerful utility, and could be used to condition other custom rules--e.g., perhaps by looking at different doc tags, or looking at other node metadata entirely.

Would you be open to a PR that exposes ExportMap/ExportMapBuilder in the eslint-module-utils package like is done for the moduleVisitor utility?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions