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
More permissive import/no-unassigned-import
#376
Comments
Agreed. PR welcome. |
Can/should this feature allow any import of packages that have |
@fregante Do you have any examples? The convention, except for Babel, is to use |
https://github.com/mozilla/webextension-polyfill I guess |
PR welcome if you care enough |
I usually disable this rule completely because there are too many exceptions, I just thought Babel's could be made more generic |
What other exceptions have you encountered? I have honestly never encountered any time I needed to manually disable it. |
Refined GitHub loads its features this way, so it’s disabled there. Many of my projects where “features” are self-contained files use unassigned imports. This isn’t something that can be whitelisted, it’s just at odds with the rule’s reasoning (which I assume is “modules shouldn’t have side effects”) |
Currently, you can't do the following:
I'm overriding the default rules as follows. I think it would make a sensible default:
The text was updated successfully, but these errors were encountered: