Repository navigation
Unpin eslint version in react-scripts - #5618
chadfawcett wants to merge 1 commit into
Conversation
|
The test are failing with a similar error. Shouldn't |
|
This package is purposely pinned to prevent unwanted changes coming into the project. Please use |
|
Wouldn't semver prevent unwanted changes? |
|
Also is there any documentation on the pinned versions? I couldn't find anything and it would be nice to have an explanation so people don't end up spending time on PRs in the future. |
|
Semver is just a recommendation, there's no guarantees. A patch or minor could be a breaking change. We have no formal documentation, but we have always pinned package versions (to be exact). |
|
Ah okay. My apologize. I took a look back at v1 of the scripts to check what version you had for I see the root version is a Thanks for clarifying. |
|
versions for published packages should not be pinned.. it creates more complex node_modules install trees - since each pinned version must be satisfied. Instead, it would be far more useful if, for example |
I've run into issues with eslint being the wrong exact version a few times now. Is there a reason fir it being pinned to an exact version?
I have a custom eslint config, so eslint is a peer dependency of my project. Since it's an approximate version, it resolves to
5.8.0.react-scriptsthen throws a warning when I try to run tests.