diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 00000000..f30e833f --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,72 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:base"], + "baseBranches": ["main"], + "branchPrefix": "deps/", + "dependencyDashboard": false, + "schedule": ["after 10pm every weekday"], + "packageRules": [ + { + "groupSlug": "github-actions", + "matchPackagePatterns": ["^actions"] + }, + { + "groupSlug": "monorepo-root", + "matchFileNames": ["package.json"] + }, + { + "groupSlug": "eslint-config", + "matchPackageNames": ["@typescript-eslint/eslint-plugin", "@typescript-eslint/parser"], + "matchPackagePatterns": ["^eslint"] + }, + { + "groupSlug": "testing-library", + "matchPackageNames": ["@types/testing-library__jest-dom"], + "matchPackagePatterns": ["^@testing-library/"] + }, + { + "groupSlug": "jest", + "matchPackageNames": ["@types/jest", "eslint-plugin-jest-dom", "jest"], + "matchPackagePatterns": ["^jest/", "^jest-/"] + }, + { + "groupSlug": "types", + "excludePackageNames": ["@types/jest", "@types/node", "@types/react", "@types/testing-library__jest-dom"], + "matchPackageNames": ["@types/*"] + }, + { + "groupSlug": "storybook", + "matchPackageNames": ["storybook"], + "matchPackagePatterns": ["^@storybook/"] + }, + { + "groupSlug": "react", + "matchPackageNames": ["@types/react", "@types/react-dom", "react", "react-dom"] + }, + { + "groupSlug": "vite", + "matchPackageNames": ["vite"], + "matchPackagePatterns": ["^@vitejs/", "^@rollup/", "^vite"] + }, + { + "groupSlug": "dependencies", + "matchDepTypes": ["dependencies"] + }, + { + "groupSlug": "peer-dependencies", + "matchDepTypes": ["peerDependencies"] + }, + { + "groupSlug": "dev-dependencies", + "matchDepTypes": ["devDependencies"] + }, + { + "assignees": ["waldronmatt"], + "matchUpdateTypes": ["major"], + "reviewers": ["waldronmatt"] + } + ], + "prHourlyLimit": 10, + "rangeStrategy": "pin", + "transitiveRemediation": true +} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 58540606..00000000 --- a/renovate.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["config:base"], - "schedule": ["after 10pm every weekday"], - "packageRules": [ - { - "description": "Automerge non-major updates while ignoring < 1.0.0 releases", - "matchUpdateTypes": ["minor", "patch"], - "matchCurrentVersion": "!/^0/", - "automerge": true - }, - { - "description": "Automerge development dependencies", - "matchDepTypes": ["devDependencies"], - "automerge": true - }, - { - "groupName": "Group all minor and patch updates together.", - "groupSlug": "all-minor-patch", - "matchPackagePatterns": ["*"], - "matchUpdateTypes": ["minor", "patch"] - } - ], - "platformAutomerge": true, - "automergeType": "pr", - "prHourlyLimit": 20, - "rangeStrategy": "pin", - "transitiveRemediation": true -}