-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
fail positives with "no-named-as-default" #128
Comments
It's said you should use |
This is the generated dts file from npm: So why should I use Edited: Sorry for my attitude with the first edition, I am at covid with fever, so in a bad mood. Please reopen this, if you need a reproduction I can try to provide one. |
You didn't provide any useful info in your initial issue. It seems like a limitation, |
Thanks for the reply, BTW I updated my second reply, just a remind in case you miss it. |
It's undoubtedly bad practice to have a named type-only export and a default value-only export share the same name. I don't know whether we should address this issue or not. If someone wants to open a PR addressing this, I would be more than happy to review and merge it. |
IMO, to avoid naming the default export as the same name of a type is also the purpose of the rule. So I'd treat it as a valid warning. |
But what about third-party libraries? I don't want to make this rule ignore all third-party libraries. |
Related #136 |
Any ideas why this is reported?
The text was updated successfully, but these errors were encountered: