Skip to content

Commit 0d942ec

Browse files
authored
chore(deps): enhance dependency grouping in dependabot (#228)
Add typescript-eslint to npm-eslint-ecosystem group for atomic updates with ESLint, create npm-yaml group for js-yaml and @types/js-yaml to keep types synchronized, and update dependency management guidelines to require grouping packages with their corresponding @types/* packages.
1 parent 8a79fca commit 0d942ec

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ updates:
5757
patterns:
5858
- 'eslint'
5959
- 'eslint-*'
60+
- 'typescript-eslint'
6061
- '@typescript-eslint/eslint-plugin'
6162
- '@typescript-eslint/parser'
6263
update-types:
@@ -105,6 +106,7 @@ updates:
105106
- '@types/*'
106107
exclude-patterns:
107108
- '@types/jest'
109+
- '@types/js-yaml'
108110
update-types:
109111
- 'minor'
110112
- 'patch'
@@ -124,6 +126,15 @@ updates:
124126
update-types:
125127
- 'minor'
126128
- 'patch'
129+
# YAML processing - types must stay synchronized with runtime
130+
npm-yaml:
131+
applies-to: version-updates
132+
patterns:
133+
- 'js-yaml'
134+
- '@types/js-yaml'
135+
update-types:
136+
- 'minor'
137+
- 'patch'
127138
# Note: Security updates are not grouped - they create immediate individual PRs
128139
open-pull-requests-limit: 10
129140
rebase-strategy: 'auto'

docs/agents/dependencies.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ paths: package.json
4141
- GROUP interdependent packages together in dependabot.yml
4242
- Packages with peer dependencies MUST be updated atomically (e.g., eslint + @typescript-eslint/\*)
4343
- Monorepo packages from same source SHOULD be grouped (e.g., @lerna-lite/\*)
44+
- Packages MUST be grouped with their corresponding @types/\* packages (e.g., js-yaml + @types/js-yaml)
4445
- GROUP minor/patch updates only; major updates need individual review
4546
- USE `patterns: ['@scope/*']` for scoped packages, specific names otherwise
47+
- EXCLUDE grouped @types/\* packages from the generic npm-types group
4648
- See `.github/dependabot.yml` groups section for examples
4749

4850
## Update Workflow

0 commit comments

Comments
 (0)