0
0
mirror of https://github.com/yanhao98/renovate-example.git synced 2025-07-13 04:30:48 +08:00

在 default.json5 中添加对 primevue 和 prettier 的包规则

This commit is contained in:
严浩
2025-02-27 11:32:06 +08:00
parent 470c24c264
commit 8a6d29f528

View File

@ -24,14 +24,20 @@
"packageRules": [ "packageRules": [
// It's easier to deal with all the Vite plugins at once when Vite ships a new major version // It's easier to deal with all the Vite plugins at once when Vite ships a new major version
{ "groupName": "vite packages", "extends": ["packages:vite"] }, { "groupName": "vite packages", "extends": ["packages:vite"] },
{ "groupName": "primevue packages", "matchPackageNames": [ "/^primevue/", "/^@prime/" ] },
// TypeScript doesn't follow semver, so we need to separate minor and patch updates // TypeScript doesn't follow semver, so we need to separate minor and patch updates
// <https://www.semver-ts.org/1-background.html> // <https://www.semver-ts.org/1-background.html>
{ "groupName": "typescript", "matchDepNames": ["typescript"], "separateMinorPatch": true, "separateMultipleMinor": true }, { "groupName": "typescript", "matchDepNames": ["typescript"], "separateMinorPatch": true, "separateMultipleMinor": true },
// Prettier, when used as a devDependency to format code, should be pinned.
// SemVer only applies to its API, not its formatting behavior.
{ "matchDepNames": ["prettier"], "matchDepTypes": ["devDependencies"], "groupName": "prettier", "rangeStrategy": "pin" },
// Minor releases for v0.x packages may contain breaking changes // Minor releases for v0.x packages may contain breaking changes
{ "groupName": "v0.x", "matchCurrentVersion": "/^0./", "separateMinorPatch": true }, { "groupName": "v0.x", "matchCurrentVersion": "/^0./", "separateMinorPatch": true },
{ "groupName": "github-actions", "matchManagers": [ "github-actions" ] }, { "groupName": "github-actions", "matchManagers": [ "github-actions" ] },
{ "groupName": "Dockerfile", "matchManagers": [ "dockerfile" ] }, { "groupName": "Dockerfile", "matchManagers": [ "dockerfile" ] },
{ "groupName": "types", "groupSlug": "types", "matchPackageNames": [ "/^@types//" ] }, { "groupName": "types", "groupSlug": "types", "matchPackageNames": [ "/^@types//" ] },