Skip to content

Commit 0c158ab

Browse files
GuanzhouSongclaude
andcommitted
Group the ESLint packages so peer-locked majors update together
The standalone eslint 10 bump Dependabot opened (#89) cannot install. eslint-config-next@15.5.4 peer-requires eslint@"^7.23.0 || ^8.0.0 || ^9.0.0", so raising eslint on its own fails with ERESOLVE on both CI jobs: Could not resolve dependency: peer eslint@"^7.23.0 || ^8.0.0 || ^9.0.0" from eslint-config-next@15.5.4 Conflicting peer dependency: eslint@9.39.5 eslint-config-next@16 relaxes that peer to eslint@">=9.0.0", so the two have to move in the same PR to be installable. Rebasing #89 cannot fix this; the conflict is in the peer range, not in the branch. This adds an `eslint` group covering eslint, eslint-config-next and @next/eslint-plugin-next, with all update types including major, so Dependabot proposes them as a single installable PR. The group is listed before the existing catch-all `npm-minor-and-patch` group so it claims these packages first. Grouping majors is deliberate here and is not the pattern for the rest of the tree: majors normally warrant individual review, which the catch-all group preserves by matching only minor and patch. These three packages are the exception because their peer ranges make an individual bump uninstallable by construction. Once this merges, #89 can be closed; Dependabot will re-raise the upgrade as a combined PR on its next run. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WWCBtvyCpxc2aqtyLDhDeE
1 parent bfafe29 commit 0c158ab

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,23 @@ updates:
2020
prefix: npm
2121
include: scope
2222
groups:
23+
# The ESLint packages are peer-locked to each other and must move
24+
# together. eslint-config-next@15 peer-requires
25+
# eslint@"^7.23.0 || ^8.0.0 || ^9.0.0", so a lone eslint 10 bump
26+
# fails to install with ERESOLVE; eslint-config-next@16 relaxes
27+
# that to eslint@">=9.0.0". Grouping all update types, majors
28+
# included, keeps them in a single installable PR. This group is
29+
# listed first so it claims these packages before the catch-all
30+
# group below.
31+
eslint:
32+
patterns:
33+
- eslint
34+
- eslint-config-next
35+
- "@next/eslint-plugin-next"
36+
update-types:
37+
- major
38+
- minor
39+
- patch
2340
# Batch routine minor/patch bumps into a single PR to keep the
2441
# review load low. Majors still arrive as individual PRs so each
2542
# one can be evaluated on its own.

0 commit comments

Comments
 (0)