uhyo / eslint-plugin-import-access

https://www.npmjs.com/package/eslint-plugin-import-access
MIT License
355 stars 9 forks source link

private:reexport is allowed #11

Closed m-shaka closed 1 year ago

m-shaka commented 1 year ago

Hi. I found that I can reexport members annotated with @private, although importing them is incorrect as expected) I have a reproduction code available at the following GitHub repository: https://github.com/m-shaka/minimum-reproduction-private-access.

Interestingly, I added a test to check private:reexport in a forked repository, and the rule seems to be working fine! You can find the commit with the test here: https://github.com/uhyo/eslint-plugin-import-access/commit/f0d5faeb86e437dc56da1421c631553661098290

Do you have any idea about the cause behind this behavior?

uhyo commented 1 year ago

Thanks for reporting! I looked into this and turned out that the support for checking export has not been released yet. 😇 In a next release it should lint correctly.

m-shaka commented 1 year ago

Oh, I'm sorry not to notice that. I tried the new version and it worked well! Thank you!