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
no-duplicate-imports should ignore export * #12760
Comments
Agreed! |
I'm working on this |
Unfortunately, it looks like there wasn't enough interest from the team Thanks for contributing to ESLint and we appreciate your understanding. |
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
…slint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
eslint#13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes eslint#12760)
…) (#14238) * Fix: ignore unmergable imports when checking no-duplicate-imports (fixes #13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes #12760) * Fix: ignore unmergable imports when checking no-duplicate-imports (fixes #13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes #12760) * Fix: ignore unmergable imports when checking no-duplicate-imports (fixes #13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes #12760) * Fix: ignore unmergable imports when checking no-duplicate-imports (fixes #13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes #12760) * Fix: ignore unmergable imports when checking no-duplicate-imports (fixes #13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes #12760) * Fix: ignore unmergable imports when checking no-duplicate-imports (fixes #13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes #12760) * Fix: ignore unmergable imports when checking no-duplicate-imports (fixes #13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes #12760) * Fix: ignore unmergable imports when checking no-duplicate-imports (fixes #13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes #12760) * Fix: ignore unmergable imports when checking no-duplicate-imports (fixes #13180) & Fix: Ignore re-export all in no-duplicate-imports (fixes #12760)
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
Online Demo Link
What did you expect to happen?
I think no errors. The rule requires only 1 import/export statement per source module. I'm not sure how to rewrite any of these 5 examples to achieve that. Or any other code with
export *
and another import/export from the same source, including the test case:If I'm not missing something, this rule should probably ignore
export *
.What actually happened? Please include the actual, raw output from ESLint.
Errors for all 5
export *
declarations:Are you willing to submit a pull request to fix this bug?
Yes.
The text was updated successfully, but these errors were encountered: