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
Migrate eslint-plugin-react to PeerDependencies #720
Comments
That's a really good point. It's currently a devDependency. I think I prefer it being a dep instead of a peer dep - anyone have any reason why a peer dep would be more appropriate? |
I was not sure of the difference between the two, so I would agree it is a dep. |
I think a peerDep is more appropriate here to avoid having it twice (if different versions are used?). |
(if it becomes a dep, it wouldn't be a dev dep, but if it's a peer dep, it would definitely also be a dev dep to ensure tests can pass without explicitly installing the dep) |
Oh yep, you're right. |
So just to confirm, it will be added as a peer dep. This is because as a peer dep it is installed properly for use as a dep and a devDep. Is this correct? |
By moving it to peerDep it will be properly installed for dev use and public fixes: airbnb#720
@kwelch as of npm 3, peer deps are not automatically installed anymore. I'm still not certain, but am leaning towards straight dep. If it is a peer dep, it would have to be both a peer dep and a dev dep. |
I ended up making this both a peer dep and a dev dep. I may make it a straight dep in the future but for now this will suffice. |
Shouldn't the react plugin be a
Dependency
orPeerDependency
since it must be installed as a sibling of the config for it to properly list.The text was updated successfully, but these errors were encountered: