[BUG] Could not resolve peerDependencies of matching semver ranges #2999
Labels
Bug
thing that needs fixing
Priority 1
high priority issue
Release 7.x
work is associated with a specific npm 7 release
Milestone
Current Behavior:
Using the commands:
Results in:
Expected Behavior:
I would expect that the modules are installed using prettier matching
^1.17.0
. This would be matching the semver range of eslint-plugin-prettier and that of eslint-plugin-mozilla.From the perspective of an author of eslint-plugin-mozilla, I think the only two choices we have here are:
"prettier": ">=1.17.0.",
and"eslint": ">=5.0.0",
.The first is not sensible for eslint-plugin-mozilla since it depends on ESLint internals, and so we cannot make the same guarantee. I believe it is a reasonable guarantee for eslint-plugin-prettier to make.
The second is also not really viable, as it would break every time a new version of prettier was released until eslint-plugin-mozilla could also be updated.
This may be similar to #2164, but I'm not sure, and I think this points out an addition issue with the way peer dependencies are causing some conflicts between packages.
Steps To Reproduce:
eslint-plugin-mozilla has peer dependencies of:
eslint-plugin-prettier has peer dependencies of:
The above commands can be used to reproduce this.
Environment:
The text was updated successfully, but these errors were encountered: