-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(config): migrate renovate config (#31)
* chore(config): migrate config renovate.json5 * chore(renovate): add comments back --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: David LJ <[email protected]>
- Loading branch information
1 parent
a9e1917
commit f0a6a78
Showing
1 changed file
with
51 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,90 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:base", | ||
// https://github.com/renovatebot/renovate/blob/37.0.2/lib/config/presets/internal/config.ts | ||
"config:best-practices", | ||
"config:js-app", | ||
$schema: 'https://docs.renovatebot.com/renovate-schema.json', | ||
// 👇 Defined in https://github.com/renovatebot/renovate/blob/37.0.2/lib/config/presets/internal/config.ts | ||
extends: [ | ||
'config:recommended', | ||
'config:best-practices', | ||
'config:js-app', | ||
], | ||
"prHourlyLimit": 0, | ||
"prConcurrentLimit": 5, | ||
"schedule": [ | ||
prHourlyLimit: 0, | ||
prConcurrentLimit: 5, | ||
schedule: [ | ||
// Validate using https://codepen.io/rationaltiger24/full/ZExQEgK | ||
// Though even if that says is valid, maybe invalid 🙃 as it wants 0 errors despite compiling | ||
// So to be sure, `npm i later` on a tmp dir, `var later = require('later')' and check | ||
// `later.parse.text('whatever schedule')` returns no errors (-1) | ||
"at 9:00 am on the 1-7 day of the month on Saturday" | ||
'at 9:00 am on the 1-7 day of the month on Saturday', | ||
], | ||
"timezone": "Europe/Madrid", | ||
"labels": [ | ||
"dependencies", | ||
timezone: 'Europe/Madrid', | ||
labels: [ | ||
'dependencies', | ||
], | ||
"packageRules": [ | ||
packageRules: [ | ||
// Commit messages. Mock @dependabot ones: | ||
// build(deps) for production dependencies, build(deps-dev) for dev dependencies | ||
{ | ||
"matchPackagePatterns": [ | ||
"dependencies" | ||
matchPackagePatterns: [ | ||
'dependencies', | ||
], | ||
"semanticCommitType": "build", | ||
"semanticCommitScope": "deps" | ||
semanticCommitType: 'build', | ||
semanticCommitScope: 'deps', | ||
}, | ||
{ | ||
"matchDepTypes": [ | ||
"devDependencies" | ||
matchDepTypes: [ | ||
'devDependencies', | ||
], | ||
"semanticCommitType": "build", | ||
"semanticCommitScope": "deps-dev" | ||
semanticCommitType: 'build', | ||
semanticCommitScope: 'deps-dev', | ||
}, | ||
// Tagging | ||
{ | ||
"matchManagers": [ | ||
"github-actions" | ||
matchManagers: [ | ||
'github-actions', | ||
], | ||
addLabels: [ | ||
'github-actions', | ||
], | ||
"addLabels": [ | ||
"github-actions" | ||
] | ||
}, | ||
{ | ||
"matchCategories": [ | ||
"js" | ||
matchCategories: [ | ||
'js', | ||
], | ||
addLabels: [ | ||
'javascript', | ||
], | ||
"addLabels": [ | ||
"javascript" | ||
] | ||
}, | ||
{ | ||
"matchCategories": [ | ||
"node" | ||
matchCategories: [ | ||
'node', | ||
], | ||
addLabels: [ | ||
'node', | ||
], | ||
"addLabels": [ | ||
"node" | ||
] | ||
}, | ||
// Automerge minor/patch production ones & dev dependencies | ||
{ | ||
"matchUpdateTypes": [ | ||
"minor", | ||
"patch", | ||
"pin", | ||
"digest" | ||
matchUpdateTypes: [ | ||
'minor', | ||
'patch', | ||
'pin', | ||
'digest', | ||
], | ||
"automerge": "true" | ||
automerge: true, | ||
}, | ||
{ | ||
"matchDepTypes": [ | ||
"devDependencies" | ||
matchDepTypes: [ | ||
'devDependencies', | ||
], | ||
"automerge": "true" | ||
automerge: true, | ||
}, | ||
// We cannot upgrade to latest Typescript until Angular supports it | ||
// Otherwise, we'll get an error | ||
// https://angular.io/guide/versions | ||
{ | ||
"matchPackageNames": [ | ||
"typescript" | ||
matchPackageNames: [ | ||
'typescript', | ||
], | ||
"allowedVersions": ">=4.9.3 <5.2.0" | ||
} | ||
] | ||
allowedVersions: '>=4.9.3 <5.2.0', | ||
}, | ||
], | ||
} |