-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Change peerDependencies #185
Conversation
It currently prevents installation of eslint 1.1.0
👍 |
Instead of updating the peerDependencies, you should just remove it and put eslint as a simple dependency |
@tleunen why? |
"eslint": "1.0.0",
"eslint-plugin-react": "^3.1.0", https://github.com/react-bootstrap/react-bootstrap/blob/master/package.json#L58 As you can see - all works fine without this PR 😉 |
@nkbt nvm. Actually, I was saying that because soon the dependencies set as peer would be installed, but in this case, the end user will have eslint installed already so that's fine |
The current I think I will remove the peerDependency instead. |
UNMET PEER DEPENDENCY eslint@^2.0.0 || ^3.0.0 with eslint v3.3.1 Shouldn't peerDependency have been removed or is this plugin not supposed to work with eslint 3.3.x? |
What version of npm do you use? How is installed eslint/eslint-plugin-react, globally or locally? |
Npm v3.10.3 (latest) Tried both local (as devDependency) and global installation of eslint-plugin-react. Eslint installed globally. |
You don't want anything installed globally, including eslint itself. |
@ljharb do you mean is global installation that causes troubles? Probably this is more a npm issue, then, because semver also returns correctly. |
Each project should have its own copy of eslint installed. Everything a given project needs should be installable with |
Yeah, seems the bug that makes us remove peerDependencies one year ago (and that I had completely forgotten the existence) is still there 😐 |
I'm not sure what bug? |
$ npm list -g
/home/yannick/.npm/lib
└── (empty)
$ npm install eslint -g
/home/yannick/.npm/bin/eslint -> /home/yannick/.npm/lib/node_modules/eslint/bin/eslint.js
/home/yannick/.npm/lib
└── [email protected]
$ npm install eslint-plugin-react -g
/home/yannick/.npm/lib
├── UNMET PEER DEPENDENCY eslint@^2.0.0 || ^3.0.0
└── [email protected]
npm WARN [email protected] requires a peer of eslint@^2.0.0 || ^3.0.0 but none was installed.
$ npm list -g
/home/yannick/.npm/lib
├── [email protected]
└── [email protected] Everything is working at the end, there is only a false |
That's an easily ignore able warning when following the bad practice of having eslint installed globally - I think the value of the peer dep far outweighs that. |
It currently prevents installation of eslint 1.1.0