Skip to content

Commit

Permalink
chore(config): migrate renovate config (#31)
Browse files Browse the repository at this point in the history
* 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
renovate[bot] and davidlj95 authored Sep 28, 2023
1 parent a9e1917 commit f0a6a78
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions renovate.json5
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',
},
],
}

0 comments on commit f0a6a78

Please sign in to comment.