{
	$schema: 'https://docs.renovatebot.com/renovate-schema.json',
	extends: [
		'config:recommended',
	],
	timezone: 'Asia/Tokyo',
	schedule: [
		'* 0 * * *',
	],
	prHourlyLimit: 5,
	labels: [
		'dependencies',
	],
	dependencyDashboardApproval: true,
	dependencyDashboardAutoclose: true,
	osvVulnerabilityAlerts: true,
	dependencyDashboardOSVVulnerabilitySummary: 'unresolved',
	ignoreDeps: [
		// https://github.com/misskey-dev/misskey/pull/15489#issuecomment-2660717458
		'@typescript/lib-webworker',
		// https://github.com/misskey-dev/misskey/pull/15494#issuecomment-2660775258
		'nsfwjs',
    // https://github.com/misskey-dev/misskey/issues/15920
    'sharp',
		'@misskey-dev/sharp-read-bmp'
	],
	packageRules: [
		{
			groupName: '[Backend] Update dependencies',
			matchFileNames: [
				'packages/backend/**/package.json',
			],
		},
		{
			groupName: '[Frontend] Update dependencies',
			matchFileNames: [
				'packages/frontend/**/package.json',
				'packages/frontend-embed/**/package.json',
				'packages/frontend-shared/**/package.json',
				'packages/misskey-bubble-game/**/package.json',
				'packages/misskey-reversi/**/package.json',
				'packages/sw/**/package.json',
			],
			// prevent wastage of Chromatic snapshots
			rebaseWhen: 'never',
		},
		{
			groupName: '[misskey-js] Update dependencies',
			matchFileNames: [
				'packages/misskey-js/**/package.json',
			],
		},
		{
			groupName: '[Root] Update dependencies',
			matchFileNames: [
				'package.json',
			],
		},
		{
			groupName: '[Tools] Update dependencies',
			matchFileNames: [
				'scripts/**/package.json',
			],
		},
		{
			groupName: '[GitHub Actions] Update dependencies',
			matchFileNames: [
				'.github/workflows/**/*.yml',
			],
		},
		{
			groupName: '[Node.js] Update dependencies',
			matchFileNames: [
				'.node-version',
			],
		},
		{
			groupName: '[Docker] Update dependencies',
			matchFileNames: [
				'compose.local-db.yml',
				'compose_example.yml',
				'packages/backend/test-federation/*.yml',
				'Dockerfile',
			],
		},
		{
			groupName: '[devcontainer] Update dependencies',
			matchFileNames: [
				'.devcontainer/**',
			],
		},
	],
}
