-
-
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
Core package #234
Core package #234
Conversation
if (modulePath.type !== 'Literal') return | ||
if (typeof modulePath.value !== 'string') return | ||
|
||
checkSourceValue(modulePath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function would also apply for require
function calls when require
is shadowed. So I think it would make sense to also check the scope where the reference come from.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I'll add a note.
Hadn't run into it so far, and that is part of why it checks the argument count and argument type (also to disambiguate from AMD require)
Superseded by #408! |
Pull out
src/core
intoeslint-module-utils
, to be published separately for other plugins to leverage.Also, a bunch of v2 things.
(closes #233)
hash
to tiny module and/or find existing (object-hash
,hash-object
)dependencies
eslint-plugin-git
for no-unstaged #198babel-preset-argon
doctrine
dependency (either declare or pull out to import plugin, or extractExportMap
to third module?)