eslint-plugin-import icon indicating copy to clipboard operation
eslint-plugin-import copied to clipboard

Making `ExportMap` available in `eslint-module-utils`?

Open adamhamlin opened this issue 6 months ago • 0 comments

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!

adamhamlin avatar Jul 28 '24 19:07 adamhamlin