-
-
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
Imports that are resolvable should not be reported as builtins #1007
Conversation
2 similar comments
Not sure what the difference is between the travis build & the appveyor build (nor why the latter is failing) |
Can you elaborate on this? In node, builtin names (like |
@ljharb that may be so for just |
Hmm, that's true - also I wonder if it'd be simpler to change it so that if there's any path at all - ie, anything with a slash - that it's not a builtin? |
@ljharb Happy to make this change -- would that be acceptable to you, or is there another contributor we should run this past? |
I'd be happy to hear from @jfmengels or @benmosher on it, but both of them have been taking open source breaks for awhile now. If there aren't any node builtins that have a |
this makes sense to me if it matches the spec 👍 |
@rixth are you no longer interested in updating this PR? |
@ljharb Correct - it is over a year old, conflicting, and I no longer work at the company/codebase where this was problematic. It was always an edge case at best. |
constants
is a builtin (apparently) in node. however, if we can resolve the module name, we should assume that it is not a builtin.Perhaps we could create a second rule that enforces not clobbering builtin names, but that behaviour shouldn't be part of this rule which is to enforce ordering.