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
error Unable to validate computed reference to imported namespace 'Module' import/namespace
So I don't know if this is legal by the spec. Babel doesn't object. Perhaps this kind of property access should have its own rule. If it is not permitted by the spec, then it could be an error. If it is legal, then it could be a warning by default? As it is I need to disable import/namespace entirely to allow this.
The text was updated successfully, but these errors were encountered:
Ah, yeah... it's valid, but the rule is basically saying "you're on your own, I can't lint computed references".
Should probably be a separate rule entirely, as some users (certainly you!) would want static reference linting without getting tripped on this.
I think I'll split this out as a separate rule in v2, but for now as a workaround you can // eslint-disable-line import/namespace? How does that sound?
Sorry, don't know the correct jargon for this issue title. Issue I'm hitting:
error:
error Unable to validate computed reference to imported namespace 'Module' import/namespace
So I don't know if this is legal by the spec. Babel doesn't object. Perhaps this kind of property access should have its own rule. If it is not permitted by the spec, then it could be an error. If it is legal, then it could be a warning by default? As it is I need to disable
import/namespace
entirely to allow this.The text was updated successfully, but these errors were encountered: