Skip to content

Commit 572b5e3

Browse files
authored
Merge pull request #7217 from StoDevX/renovate/migrate-config
Migrate renovate config
2 parents 0d2f58e + e45efa0 commit 572b5e3

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
- if: steps.node-cache.outputs.cache-hit != 'true'
170170
run: exit 1
171171

172-
- run: npm run pretty -- --no-write --list-different
172+
- run: npm run pretty -- --no-write --check
173173

174174
eslint:
175175
name: ESLint

renovate.json5

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,15 @@
22
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
33
extends: [
44
'config:best-practices',
5-
// go ahead and update Docker FROM sources, and pin them with a hash
65
':docker',
7-
// update lockfile versions weekly
86
':maintainLockFilesWeekly',
9-
// keep all dependency versions pinned - except peerDependencies
107
':pinAllExceptPeerDependencies',
11-
// > wait until the npm package is three days old before raising the
12-
// > update. This prevents npm unpublishing a package you already upgraded to.
138
'npm:unpublishSafe',
14-
// disable semantic commits
159
':semanticCommitsDisabled',
1610
],
1711
packageRules: [
18-
// require manual approval for new minor OR major versions of these packages
1912
{
13+
description: 'require manual approval for new minor OR major versions of these packages',
2014
matchPackageNames: [
2115
'@types/react-native',
2216
'react-native',
@@ -34,24 +28,23 @@
3428
matchUpdateTypes: ['minor', 'major'],
3529
dependencyDashboardApproval: true,
3630
},
37-
// require manual approval for new major versions of these packages
3831
{
32+
description: 'require manual approval for new major versions of these packages',
3933
matchPackageNames: ['react-markdown'],
4034
matchUpdateTypes: ['major'],
4135
dependencyDashboardApproval: true,
4236
},
43-
// stop widening peerDep ranges for custom modules
4437
{
45-
matchPaths: ['modules/**/package.json'],
38+
description: 'stop widening peerDep ranges for custom modules',
39+
matchFileNames: ['modules/**/package.json'],
4640
matchDepTypes: ['peerDependencies'],
4741
rangeStrategy: 'bump',
4842
},
49-
// group all redux packages together
5043
{
44+
description: 'group all redux packages together',
5145
groupName: 'redux',
5246
matchPackageNames: ['@reduxjs/**', 'react-redux'],
5347
},
5448
],
55-
// Allow Renovate to open as many PRs as it wants
5649
prConcurrentLimit: 0,
5750
}

0 commit comments

Comments
 (0)