Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adamhamlin opened this issue Jul 28, 2024 · 0 comments
Open

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

adamhamlin opened this issue Jul 28, 2024 · 0 comments

Comments

@adamhamlin
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant