You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's incorrectly noting that there is a named export named "default", following the suggestion would lead to this: import bar, { default } from './bar which is clearly not right, and I'd suggest not ever what you want to do in this situation. Perhaps that if the property is from the default export, special case allowing 'default' as a property of that export?
edit: actually that would hold true for any named export, with a property of the same name as the export on it.
The text was updated successfully, but these errors were encountered:
Your edit is correct. The nature of this rule is not to tell you that you've definitely done something wrong, just that you've matched a pattern that is likely a mistake.
In your case, it isn't a mistake, but not because it's named default.
I don't know if there is enough of a case for special-casing default versus other names. It would certainly be the only one.
Yeah, okay, I think it makes sense to ignore default. Seems reasonably unlikely that anyone would be surprised that the default export is not a property of the default export. 😁
The following produces the incorrect error;
It's incorrectly noting that there is a named export named "default", following the suggestion would lead to this:
import bar, { default } from './bar
which is clearly not right, and I'd suggest not ever what you want to do in this situation. Perhaps that if the property is from the default export, special case allowing 'default' as a property of that export?edit: actually that would hold true for any named export, with a property of the same name as the export on it.
The text was updated successfully, but these errors were encountered: