Skip to content
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

Closed
wants to merge 12 commits into from
Closed

Core package #234

wants to merge 12 commits into from

Conversation

benmosher
Copy link
Member

Pull out src/core into eslint-module-utils, to be published separately for other plugins to leverage.

Also, a bunch of v2 things.
(closes #233)

  • revert breaking changes to 0.10/0.12 support
  • document (README, etc)
  • extract hash to tiny module and/or find existing (object-hash, hash-object)
  • publish
  • add published version to plugin package dependencies
  • bump plugin to 2.0 (losing node 0.x support)
  • create eslint-plugin-git for no-unstaged #198
  • babel-preset-argon
  • deal with doctrine dependency (either declare or pull out to import plugin, or extract ExportMap to third module?)

if (modulePath.type !== 'Literal') return
if (typeof modulePath.value !== 'string') return

checkSourceValue(modulePath)
Copy link
Contributor

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.

Copy link
Member Author

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)

@benmosher benmosher added this to the 2.0.0 milestone Jul 2, 2016
benmosher added a commit that referenced this pull request Jul 2, 2016
@benmosher benmosher mentioned this pull request Jul 2, 2016
4 tasks
@benmosher
Copy link
Member Author

Superseded by #408!

@benmosher benmosher closed this Jul 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Expose the resolve function to other plugins
2 participants