Skip to content
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

ci: Upgrade eslint-config-eslint to fix peer conflict #357

Merged
merged 1 commit into from
Jun 20, 2022

Conversation

btmills
Copy link
Member

@btmills btmills commented Jun 20, 2022

eslint-config-eslint@6.0.0 has a peer dependency on eslint-plugin-jsdoc@^15.9.5, whereas package.json has a devDependency on eslint-plugin-jsdoc@^28.6.1. Those ranges are in conflict.

This change upgrades to eslint-config-eslint@7.0.0, which changes the peer dependency to eslint-plugin-jsdoc@>=22.1.0, resolving the conflict.

This should fix the CI failures seen in #355 and #356. This peer dependency version range conflict was previously being ignored, but a behavior change in npm 8.6.0 started reporting it. Whether that's a backwards-incompatible change in a semver-minor version is left as a question for the reader.

`eslint-config-eslint@6.0.0` has a peer dependency on
`eslint-plugin-jsdoc@^15.9.5`, whereas `package.json` has a
`devDependency` on `eslint-plugin-jsdoc@^28.6.1`. Those ranges are in
conflict.

This change upgrades to `eslint-config-eslint@7.0.0`, which changes the
peer dependency to `eslint-plugin-jsdoc@>=22.1.0`, resolving the
conflict.
@btmills btmills added the chore This change is not user-facing. label Jun 20, 2022
Copy link
Contributor

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@mdjermanovic
Copy link
Member

Weird, I thought that npm install exits with nonzero on peer deps problems in all npm versions that come with Node 16.0.0+ (we had to add --force in eslint/eslint#14933), but that would mean that our CI should not have worked even before the latest Node 16 upgrade.

@mdjermanovic mdjermanovic merged commit 1e5ade9 into main Jun 20, 2022
@btmills
Copy link
Member Author

btmills commented Jun 20, 2022

Agreed, weird. I isolated the behavior change to npm 8.6.0 and above, meaning our CI stopped working when Node 16.15.1 was released. I guess they're still iteration on peer dependency resolution. Maybe it was an unintentional omission that npm wasn't checking this before, and they fixed it like we do in a semver-minor bug fix.

@btmills btmills deleted the eslint-config-peerdep-conflict branch June 20, 2022 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore This change is not user-facing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants