-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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-default-export #22
Comments
fixed in |
@benmosher @ljharb Came across an issue with this feature, thought I would open a discussion here: The following example causes 3 export default function foo(param: string): boolean;
export default function foo(param: string, param1: number): boolean;
export default function foo(param: string, param1?: number): boolean {
return param && param1;
} There seems to be some code for checking overloads: https://github.com/benmosher/eslint-plugin-import/blob/master/src/rules/export.js#L37-L40 but this does not seem to catch this case. I added some debug logs in and the rough contents of namespace is:
I am running this in the following environment:
|
Please file a new issue for this (altho i think there already is one) |
This one? #1357 |
That’s fixed in v2.19, so perhaps a new issue is best. |
Flag subsequent
export default ...
statements if more than one is encountered in a given file.The text was updated successfully, but these errors were encountered: