|
1 | 1 | {
|
2 |
| - "$schema": "https://docs.renovatebot.com/renovate-schema.json", |
3 |
| - "extends": ["group:monorepos"], |
4 |
| - "dependencyDashboard": true, |
5 |
| - "rangeStrategy": "replace", |
| 2 | + $schema: 'https://docs.renovatebot.com/renovate-schema.json', |
| 3 | + extends: ['group:monorepos'], |
| 4 | + dependencyDashboard: true, |
| 5 | + rangeStrategy: 'replace', |
6 | 6 |
|
7 | 7 | // Schedule Renovate to run during off-peak hours
|
8 |
| - "schedule": [ |
9 |
| - "after 10:00pm every weekday", |
10 |
| - "before 5:00am every weekday", |
11 |
| - "every weekend" |
12 |
| - ], |
13 |
| - "prConcurrentLimit": 8, |
14 |
| - "prHourlyLimit": 4, |
15 |
| - "timezone": "America/Tijuana", |
| 8 | + schedule: ['after 10:00pm every weekday', 'before 5:00am every weekday', 'every weekend'], |
| 9 | + prConcurrentLimit: 8, |
| 10 | + prHourlyLimit: 4, |
| 11 | + timezone: 'America/Tijuana', |
16 | 12 |
|
17 | 13 | // Commit and PR customization
|
18 |
| - "commitBody": "See associated pull request for more information.", |
19 |
| - "semanticCommits": "enabled", |
20 |
| - "semanticCommitScope": "", |
21 |
| - "semanticCommitType": "build", |
22 |
| - "labels": ["area: build & ci", "action: review"], |
23 |
| - |
24 |
| - "lockFileMaintenance": { |
25 |
| - "enabled": true |
| 14 | + commitBody: 'See associated pull request for more information.', |
| 15 | + semanticCommits: 'enabled', |
| 16 | + semanticCommitScope: '', |
| 17 | + semanticCommitType: 'build', |
| 18 | + labels: ['area: build & ci', 'action: review'], |
| 19 | + |
| 20 | + lockFileMaintenance: { |
| 21 | + enabled: true, |
26 | 22 | },
|
27 | 23 |
|
28 | 24 | // Ignored dependencies in all repositories
|
29 |
| - "ignoreDeps": [ |
30 |
| - "build_bazel_rules_nodejs", |
31 |
| - "rules_pkg", |
32 |
| - "yarn" // Yarn is copied locally in all repositories where needed. |
| 25 | + ignoreDeps: [ |
| 26 | + 'build_bazel_rules_nodejs', |
| 27 | + 'rules_pkg', |
| 28 | + 'yarn', // Yarn is copied locally in all repositories where needed. |
33 | 29 | ],
|
34 | 30 |
|
35 |
| - "packageRules": [ |
| 31 | + packageRules: [ |
36 | 32 | // ============================================================================
|
37 | 33 | // GENERAL GROUPING & UPDATE BEHAVIOR
|
38 | 34 | // ============================================================================
|
39 | 35 |
|
40 | 36 | // Group all non-major updates (minor and patch) together
|
41 | 37 | {
|
42 |
| - "groupName": "all non-major dependencies", |
43 |
| - "matchDepNames": [ |
44 |
| - "*", |
45 |
| - "!node", |
46 |
| - "!pnpm", |
47 |
| - "!npm", |
48 |
| - "!yarn" |
49 |
| - ], |
50 |
| - "matchUpdateTypes": ["digest", "patch", "minor"] |
| 38 | + groupName: 'all non-major dependencies', |
| 39 | + matchDepNames: ['*', '!node', '!pnpm', '!npm', '!yarn'], |
| 40 | + matchUpdateTypes: ['digest', 'patch', 'minor'], |
51 | 41 | },
|
52 | 42 |
|
53 | 43 | // ============================================================================
|
|
56 | 46 |
|
57 | 47 | // Group Bazel updates
|
58 | 48 | {
|
59 |
| - "groupName": "bazel dependencies", |
60 |
| - "matchManagers": ["bazel"] |
| 49 | + groupName: 'bazel dependencies', |
| 50 | + matchManagers: ['bazel'], |
61 | 51 | },
|
62 | 52 |
|
63 | 53 | // ============================================================================
|
|
66 | 56 |
|
67 | 57 | // Group updates related to Angular ecosystem across repositories
|
68 | 58 | {
|
69 |
| - "groupName": "cross-repo angular dependencies", |
70 |
| - "followTag": "next", |
71 |
| - "separateMajorMinor": false, |
72 |
| - "schedule": ["at any time"], |
73 |
| - "matchDepNames": [ |
74 |
| - "@angular-devkit/**", |
75 |
| - "@angular/**", |
76 |
| - "@schematics/**", |
77 |
| - "angular/**", |
78 |
| - "ng-packagr" |
79 |
| - ] |
| 59 | + groupName: 'cross-repo angular dependencies', |
| 60 | + followTag: 'next', |
| 61 | + separateMajorMinor: false, |
| 62 | + schedule: ['at any time'], |
| 63 | + matchDepNames: [ |
| 64 | + '@angular-devkit/**', |
| 65 | + '@angular/**', |
| 66 | + '@schematics/**', |
| 67 | + 'angular/**', |
| 68 | + 'ng-packagr', |
| 69 | + ], |
80 | 70 | },
|
81 | 71 |
|
82 | 72 | // Disable 'next' tag tracking on non-main branches
|
83 | 73 | {
|
84 |
| - "matchBaseBranches": ["!main"], |
85 |
| - "followTag": null |
| 74 | + matchBaseBranches: ['!main'], |
| 75 | + followTag: null, |
86 | 76 | },
|
87 | 77 |
|
88 | 78 | // Keep minor and patch updates separate for TypeScript
|
89 | 79 | {
|
90 |
| - "matchDepNames": ["typescript"], |
91 |
| - "separateMinorPatch": true |
| 80 | + matchDepNames: ['typescript'], |
| 81 | + separateMinorPatch: true, |
92 | 82 | },
|
93 | 83 |
|
94 | 84 | // Group TypeScript-related packages
|
95 | 85 | {
|
96 |
| - "groupName": "typescript dependencies", |
97 |
| - "matchDepNames": ["typescript", "tslib"] |
| 86 | + groupName: 'typescript dependencies', |
| 87 | + matchDepNames: ['typescript', 'tslib'], |
98 | 88 | },
|
99 | 89 |
|
100 | 90 | // Limit how many times these packages get updated (They deploy each merged PR)
|
101 | 91 | {
|
102 |
| - "matchDepNames": ["renovate", "quicktype-core"], |
103 |
| - "schedule": ["on sunday and wednesday"] |
| 92 | + matchDepNames: ['renovate', 'quicktype-core'], |
| 93 | + schedule: ['on sunday and wednesday'], |
104 | 94 | },
|
105 | 95 |
|
106 | 96 | // ============================================================================
|
|
109 | 99 |
|
110 | 100 | // Group dependencies in the scorecard GitHub Actions workflow
|
111 | 101 | {
|
112 |
| - "groupName": "scorecard action dependencies", |
113 |
| - "matchFileNames": [".github/workflows/scorecard.yml"], |
114 |
| - "matchDepNames": ["*"] |
| 102 | + groupName: 'scorecard action dependencies', |
| 103 | + matchFileNames: ['.github/workflows/scorecard.yml'], |
| 104 | + matchDepNames: ['*'], |
115 | 105 | },
|
116 | 106 |
|
117 | 107 | // ============================================================================
|
|
120 | 110 |
|
121 | 111 | // Disable updates for placeholder or 0.0.0-style versions
|
122 | 112 | {
|
123 |
| - "enabled": false, |
124 |
| - "matchCurrentVersion": "/^[~^]?0\\.0\\.0-/" |
| 113 | + enabled: false, |
| 114 | + matchCurrentVersion: '/^[~^]?0\\.0\\.0-/', |
125 | 115 | },
|
126 | 116 |
|
127 | 117 | // Disable major updates for specified dependencies
|
128 | 118 | {
|
129 |
| - "enabled": false, |
130 |
| - "matchDepNames": [ |
131 |
| - "@types/node", |
132 |
| - "bazel", |
133 |
| - "node", |
134 |
| - "npm", |
135 |
| - "pnpm", |
136 |
| - "rxjs", |
137 |
| - "tslib", |
138 |
| - "yarn" |
| 119 | + enabled: false, |
| 120 | + matchDepNames: [ |
| 121 | + '@types/node', |
| 122 | + 'node', |
| 123 | + 'bazel', // bazelisk bazel verison |
| 124 | + 'npm', |
| 125 | + 'pnpm', |
| 126 | + 'rxjs', |
| 127 | + 'tslib', |
| 128 | + 'yarn', |
139 | 129 | ],
|
140 |
| - "matchUpdateTypes": ["major"] |
| 130 | + matchUpdateTypes: ['major'], |
141 | 131 | },
|
142 | 132 |
|
143 | 133 | // Disable TypeScript major and minor updates
|
144 | 134 | {
|
145 |
| - "enabled": false, |
146 |
| - "matchDepNames": ["typescript"], |
147 |
| - "matchUpdateTypes": ["major", "minor"] |
148 |
| - } |
149 |
| - ] |
| 135 | + enabled: false, |
| 136 | + matchDepNames: ['typescript'], |
| 137 | + matchUpdateTypes: ['major', 'minor'], |
| 138 | + }, |
| 139 | + ], |
150 | 140 | }
|
0 commit comments