Skip to content

Commit

Permalink
chore(prettier): sort fields by name (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
secustor authored Feb 25, 2025
1 parent 8c2c7de commit 3f71f5c
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 33 deletions.
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
*/
const config = {
plugins: ["prettier-plugin-sort-json"],

// sort packageRule lists
jsonRecursiveSort: true,
};

export default config;
4 changes: 2 additions & 2 deletions presets/group-by-plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"groupName": "Backstage plugin {{ lookup (split packageName '-') 1 }}",
"matchSourceUrls": [
"https://github.com/backstage/backstage/",
"https://github.com/backstage/community-plugins"
],
"groupName": "Backstage plugin {{ lookup (split packageName '-') 1 }}"
]
}
]
}
44 changes: 22 additions & 22 deletions presets/no-esm.json
Original file line number Diff line number Diff line change
@@ -1,60 +1,60 @@
{
"packageRules": [
{
"allowedVersions": "<3.0.0",
"matchDatasources": ["npm"],
"matchPackageNames": ["node-fetch"],
"allowedVersions": "<3.0.0"
"matchPackageNames": ["node-fetch"]
},
{
"allowedVersions": "<4.0.0",
"matchDatasources": ["npm"],
"matchPackageNames": ["nanoid", "octokit", "p-limit"],
"allowedVersions": "<4.0.0"
"matchPackageNames": ["nanoid", "octokit", "p-limit"]
},
{
"allowedVersions": "<5.0.0",
"matchDatasources": ["npm"],
"matchPackageNames": [
"@octokit/webhooks-methods",
"@sindresorhus/is",
"yn",
"p-map",
"url-join",
"p-map"
],
"allowedVersions": "<5.0.0"
"yn"
]
},
{
"allowedVersions": "<6.0.0",
"matchDatasources": ["npm"],
"matchPackageNames": ["find-up"],
"allowedVersions": "<6.0.0"
"matchPackageNames": ["find-up"]
},
{
"allowedVersions": "<7.0.0",
"matchDatasources": ["npm"],
"matchPackageNames": ["@octokit/auth-app", "@octokit/oauth-app"],
"allowedVersions": "<7.0.0"
"matchPackageNames": ["@octokit/auth-app", "@octokit/oauth-app"]
},
{
"allowedVersions": "<8.0.0",
"matchDatasources": ["npm"],
"matchPackageNames": ["@octokit/graphql"],
"allowedVersions": "<8.0.0"
"matchPackageNames": ["@octokit/graphql"]
},
{
"allowedVersions": "<9.0.0",
"matchDatasources": ["npm"],
"matchPackageNames": ["@octokit/plugin-throttling", "@octokit/request"],
"allowedVersions": "<9.0.0"
"matchPackageNames": ["@octokit/plugin-throttling", "@octokit/request"]
},
{
"allowedVersions": "<15.0.0",
"matchDatasources": ["npm"],
"matchPackageNames": ["@octokit/graphql-schema"],
"allowedVersions": "<15.0.0"
"matchPackageNames": ["@octokit/graphql-schema"]
},
{
"allowedVersions": "<13.0.0",
"matchDatasources": ["npm"],
"matchPackageNames": ["@octokit/webhooks"],
"allowedVersions": "<13.0.0"
"matchPackageNames": ["@octokit/webhooks"]
},
{
"allowedVersions": "<21.0.0",
"matchDatasources": ["npm"],
"matchPackageNames": ["@octokit/rest"],
"allowedVersions": "<21.0.0"
"matchPackageNames": ["@octokit/rest"]
}
]
}
12 changes: 6 additions & 6 deletions presets/unsupported-framework-upgrades.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"allowedVersions": "<5.0.0",
"description": [
"Do not upgrade to Express v5",
"https://github.com/backstage/backstage/issues/27808"
Expand All @@ -11,24 +12,23 @@
"express",
"@types/express",
"@types/express-serve-static-core"
],
"allowedVersions": "<5.0.0"
]
},
{
"allowedVersions": "<19.0.0",
"description": [
"Do not upgrade to React 19",
"https://github.com/backstage/backstage/issues/28080"
],
"extends": ["packages:react"],
"allowedVersions": "<19.0.0"
"extends": ["packages:react"]
},
{
"allowedVersions": "<7.0.0",
"description": [
"Do not upgrade to React Router v7",
"https://github.com/backstage/backstage/issues/27927"
],
"matchSourceUrls": ["https://github.com/remix-run/react-router"],
"allowedVersions": "<7.0.0"
"matchSourceUrls": ["https://github.com/remix-run/react-router"]
}
]
}
6 changes: 3 additions & 3 deletions presets/update-backstage-json.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
{
"description": "update backstage.json file",
"customType": "regex",
"datasourceTemplate": "github-releases",
"depNameTemplate": "backstage/backstage",
"description": "update backstage.json file",
"fileMatch": "backstage\\.json$",
"matchStrings": ["\"version\":\\s*\"(?<currentValue>[^\"]+)"],
"depNameTemplate": "backstage/backstage",
"datasourceTemplate": "github-releases",
"versioningTemplate": "semver-coerced"
}
]
Expand Down

0 comments on commit 3f71f5c

Please sign in to comment.