chore: migrate renovate config (#12354)

* chore(config): migrate config .github/renovate.json5

* chore: fix lint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
This commit is contained in:
renovate[bot] 2024-11-11 03:17:52 +08:00 committed by GitHub
parent 76c43c6040
commit a0901756da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 10 deletions

View File

@ -1,18 +1,17 @@
{ {
$schema: 'https://docs.renovatebot.com/renovate-schema.json', $schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: ['config:base', 'schedule:weekly', 'group:allNonMajor'], extends: ['config:recommended', 'schedule:weekly', 'group:allNonMajor'],
labels: ['dependencies'], labels: ['dependencies'],
ignorePaths: ['**/__tests__/**'], ignorePaths: ['**/__tests__/**'],
rangeStrategy: 'bump', rangeStrategy: 'bump',
packageRules: [ packageRules: [
{ {
depTypeList: ['peerDependencies'], matchDepTypes: ['peerDependencies'],
enabled: false, enabled: false,
}, },
{ {
groupName: 'test', groupName: 'test',
matchPackageNames: ['vitest', 'jsdom', 'puppeteer'], matchPackageNames: ['vitest', 'jsdom', 'puppeteer', '@vitest{/,}**'],
matchPackagePrefixes: ['@vitest'],
}, },
{ {
groupName: 'playground', groupName: 'playground',
@ -23,18 +22,28 @@
}, },
{ {
groupName: 'compiler', groupName: 'compiler',
matchPackageNames: ['magic-string'], matchPackageNames: ['magic-string', '@babel{/,}**', 'postcss{/,}**'],
matchPackagePrefixes: ['@babel', 'postcss'],
}, },
{ {
groupName: 'build', groupName: 'build',
matchPackageNames: ['vite', '@swc/core'], matchPackageNames: [
matchPackagePrefixes: ['rollup', 'esbuild', '@rollup', '@vitejs'], 'vite',
'@swc/core',
'rollup{/,}**',
'esbuild{/,}**',
'@rollup{/,}**',
'@vitejs{/,}**',
],
}, },
{ {
groupName: 'lint', groupName: 'lint',
matchPackageNames: ['simple-git-hooks', 'lint-staged'], matchPackageNames: [
matchPackagePrefixes: ['typescript-eslint', 'eslint', 'prettier'], 'simple-git-hooks',
'lint-staged',
'typescript-eslint{/,}**',
'eslint{/,}**',
'prettier{/,}**',
],
}, },
], ],
ignoreDeps: [ ignoreDeps: [