|
| 1 | +{ |
| 2 | + enabledManagers: ['github-actions', 'npm'], |
| 3 | + ignoreDeps: [ |
| 4 | + // AJV is out-of-date, but it's intentionally synced with ESLint - https://github.com/eslint/eslint/blob/ad9dd6a933fd098a0d99c6a9aa059850535c23ee/package.json#L70 |
| 5 | + 'ajv', |
| 6 | + // globby is ESM so we can't go any higher right now |
| 7 | + 'globby', |
| 8 | + // this dep is now ESM only |
| 9 | + 'execa', |
| 10 | + ], |
| 11 | + internalChecksFilter: 'strict', |
| 12 | + labels: ['dependencies'], |
| 13 | + dependencyDashboard: true, |
| 14 | + dependencyDashboardLabels: ['dependencies', 'repo maintenance'], |
| 15 | + major: { |
| 16 | + // most majors will require some manual effort to upgrade to, so we don't want to create |
| 17 | + // PRs automatically or else we'll just spam ourselves. |
| 18 | + dependencyDashboardApproval: true, |
| 19 | + }, |
| 20 | + // by default renovate will auto-rebase whenever the dep pranch falls behind main. |
| 21 | + // this is annoying as it spams notifications and creates unnecessary action runs. |
| 22 | + // instead only auto-rebase when conflicted, and we can trigger a manual rebase if required. |
| 23 | + rebaseWhen: 'conflicted', |
| 24 | + packageRules: [ |
| 25 | + // automerge everything but major updates |
| 26 | + { |
| 27 | + matchUpdateTypes: ['minor', 'patch', 'pin', 'digest'], |
| 28 | + automerge: true, |
| 29 | + automergeStrategy: 'squash', |
| 30 | + }, |
| 31 | + |
| 32 | + // label PRs appropriately |
| 33 | + { |
| 34 | + matchManagers: ['npm'], |
| 35 | + addLabels: ['javascript'], |
| 36 | + }, |
| 37 | + { |
| 38 | + matchManagers: ['github-actions'], |
| 39 | + addLabels: ['github-actions'], |
| 40 | + }, |
| 41 | + |
| 42 | + // batch package sets together |
| 43 | + { |
| 44 | + extends: ['packages:react'], |
| 45 | + groupName: 'react', |
| 46 | + }, |
| 47 | + { |
| 48 | + extends: ['monorepo:docusaurus'], |
| 49 | + groupName: 'docusaurus', |
| 50 | + }, |
| 51 | + { |
| 52 | + extends: ['monorepo:nrwl'], |
| 53 | + groupName: 'nx', |
| 54 | + }, |
| 55 | + { |
| 56 | + matchPackagePrefixes: ['@babel', 'babel-'], |
| 57 | + groupName: 'babel', |
| 58 | + }, |
| 59 | + { |
| 60 | + matchPackageNames: ['ts-jest', 'pretty-format'], |
| 61 | + matchPackagePrefixes: ['@types/jest', 'jest', '@jest'], |
| 62 | + groupName: 'jest', |
| 63 | + }, |
| 64 | + ], |
| 65 | + postUpdateOptions: [ |
| 66 | + // run yarn dedupe to cleanup the lockfile after updates |
| 67 | + 'yarnDedupeHighest', |
| 68 | + ], |
| 69 | + stabilityDays: 3, |
| 70 | +} |
0 commit comments