-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Not recommended: require-fetch-import #1224
Comments
@ef4 sounds good, I will remove that from the plan. Would you like to edit the require-fetch-import rule doc to explain these caveats? That will help make it more clear why some may choose not to use this rule. |
CC: @Turbo87 |
FWIW this pushes us towards a vastly different way of writing testing code and if we want move into such a direction where test waiters are no longer a thing it should require an RFC |
You're misunderstanding me. We can still hook into An unbound variable named Also, if we take control of global |
okay, that sounds reasonable. the rule was built to address issues with the current reality where the global |
I see that there is a plan to add require-fetch-import to the recommended rule set.
I don't think this is a good idea. It pushes people toward a pattern that we are already trying to kill: importing from paths that aren't real packages.
At a minimum, I don't think we should enable this by default until ember-cli/ember-fetch#330 is addressed.
Personally, I don't think it's appropriate to require people to import
fetch
at all. It's a web standard, linting against it in people's code is contrary to our efforts to bring ember into better alignment with javascript-ecosystem-wide standards, and the globalfetch
is equally easy to patch/polyfill in all environments (like tests and fastboot) where it's helpful to do that.The text was updated successfully, but these errors were encountered: