-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add no-extraneous-dependencies
rule
#9
Conversation
This looks good to me! Great work! Though this plugin definitely doesn't seem to be the proper place to put this rule. Would make a lot more sense in the |
Agreed, but @benmosher doesn't want it there (or rather, sees it better fit for an other project). I don't mind creating a new project for it ( What do you think? Shall I create |
Sorry, I think I left a bunch of backstory out. I'm not against it being in the So my dream implementation can't be created in |
👍 I started working on this in your repo, and haven't deleted it. I don't mind making a PR for it. Let me know :) If so, let me know if you have feedback about my implementation. Also, if you want to include the |
Let's do the PR. I'm not sure when I'll be able to get to detailed feedback, but let's get it opened over there so we can banter on it 😄 As for I was planning to drop support for Node less than 4.x soon, though; is that important for you? ESLint is planning to do this sometime soon as well, but I'm not sure when they'll get around to it. |
Yeah, makes more sense to have it in Great job @jfmengels <3 |
Cool! Will make the PR one of these days, and probably another one for (bye bye my few GH stars and npm downloads... :p) (I'll close this once I made the PR, in case people want to give feedback) |
Closing as it landed in eslint-plugin-import |
Adds
no-extraneous-dependencies
ruleAs noted import-js/eslint-plugin-import#126 (comment) (under
Regarding resolution
) here, some additional work needs to be done to ignore internal modules when accessed with external module-like paths (see the comment for an example).As that seems to me like it's not a wide-spread practice, I will create an issue to implement that later. For now, this should suit the common case.
@kentcdodds @benmosher If you have some feedback for this, I'd appreciate it :)
I'm not sure whether this will land in the
eslint-plugin-import-order
or if I create a new package/fork of the repo with a more generic name (eslint-plugin-import-rules
... ? :s), cc @sindresorhus.