Skip to content

Commit 19d953c

Browse files
committed
Refactor Renovate config
Resolve: #1793 - update to config:best-practices - remove redundant packageRules now inherited - config:best-practices - config:recommended - group:monorepos+recommended - use addLabels (auto dedupe) - matchSourceUrls - strip protocols - remove redundant regex - add '/react-native/' rule - add json5 docs comments - weekly lockFileMaintenance
1 parent 8d52103 commit 19d953c

File tree

1 file changed

+29
-44
lines changed

1 file changed

+29
-44
lines changed

β€Žrenovate.json5β€Ž

Lines changed: 29 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,54 @@
1+
// https://docs.renovatebot.com/presets-default
12
{
2-
"extends": ["config:recommended", ":prHourlyLimitNone"],
3+
"extends": [
4+
// bundle presets
5+
"config:best-practices", // https://docs.renovatebot.com/presets-config/#configbest-practices
6+
// raw atomic presets
7+
":prHourlyLimitNone",
8+
":maintainLockFilesWeekly"
9+
],
10+
// https://docs.renovatebot.com/configuration-options/#postupdateoptions
311
"postUpdateOptions": ["yarnDedupeHighest"],
412
"timezone": "Europe/London",
5-
"dependencyDashboard": true,
6-
"lockFileMaintenance": {
7-
"enabled": true
8-
},
913
"packageRules": [
14+
// https://docs.renovatebot.com/presets-group
15+
// https://docs.renovatebot.com/presets-monorepo
1016
{
11-
"groupName": "swc monorepo",
12-
"labels": ["devDeps", "swc", "transpiling"],
13-
"matchSourceUrls": ["https://github.com/swc-project/swc{/,}**"]
14-
},
15-
{
17+
// TODO: upstream group:react-nativeMonorepo
18+
// TODO: upstream monorepo:react-native
1619
"groupName": "react-native monorepo",
17-
"labels": ["deps", "react native"],
18-
"automerge": false,
19-
"matchSourceUrls": ["https://github.com/facebook/react-native{/,}**"]
20+
"matchSourceUrls": ["github.com/facebook/react-native"],
21+
"addLabels": ["dependencies", "react native"],
22+
"automerge": false
2023
},
2124
{
22-
"groupName": "storybookjs/react-native monorepo",
23-
"labels": ["devDeps", "react native", "storybook"],
24-
"automerge": false,
25-
"matchSourceUrls": ["https://github.com/storybookjs/react-native{/,}**"]
25+
"matchPackageNames": ["/react-native/"],
26+
"addLabels": ["react native"]
2627
},
2728
{
28-
"labels": ["devDeps", "type"],
29-
"matchSourceUrls": [
30-
"https://github.com/DefinitelyTyped/DefinitelyTyped{/,}**"
31-
]
29+
"matchPackageNames": ["@react-native-community"],
30+
"addLabels": ["community"]
3231
},
3332
{
34-
"addLabels": ["community"],
35-
"matchPackageNames": ["@react-native-community/{/,}**"]
33+
"groupName": "swc monorepo",
34+
"addLabels": ["devDeps", "swc", "transpiling"],
35+
"matchSourceUrls": ["github.com/swc-project/swc"]
3636
},
3737
{
3838
"groupName": "flipper monorepo",
39-
"labels": ["devDeps", "flipper"],
40-
"matchSourceUrls": ["https://github.com/facebook/flipper{/,}**"],
39+
"addLabels": ["devDeps", "flipper", "ios", "pods"],
40+
"matchSourceUrls": ["github.com/facebook/flipper"],
4141
"matchPackageNames": ["react-native-flipper"],
42-
"addLabels": ["ios", "pods"],
4342
"automerge": false
4443
},
4544
{
4645
"groupName": "flipper monorepo",
47-
"labels": ["devDeps", "flipper"],
48-
"matchSourceUrls": ["https://github.com/facebook/flipper{/,}**"],
49-
"matchPackageNames": ["flipper-server"],
50-
"addLabels": ["js", "node"]
51-
},
52-
{
53-
"groupName": "eslint monorepo",
54-
"addLabels": ["devDeps", "linting"],
55-
"matchPackageNames": ["/eslint/"]
56-
},
57-
{
58-
"addLabels": ["devDeps", "jest"],
59-
"matchPackageNames": ["/jest$/"]
60-
},
61-
{
62-
"addLabels": ["react"],
63-
"matchPackageNames": ["/react$/"]
46+
"addLabels": ["devDeps", "flipper", "js", "node"],
47+
"matchSourceUrls": ["github.com/facebook/flipper"],
48+
"matchPackageNames": ["flipper-server"]
6449
}
6550
],
6651
"vulnerabilityAlerts": {
67-
"labels": ["security"]
52+
"addLabels": ["security"]
6853
}
6954
}

0 commit comments

Comments
Β (0)