From 931df1b8776a181068879b2d85992a9fb03a5863 Mon Sep 17 00:00:00 2001 From: "Jing Xu(RainX)" Date: Sun, 8 Oct 2023 18:55:08 +0800 Subject: [PATCH] chore: remove the method the function that is no longer in use --- renovate.json | 68 +++++++++++++++++++++++++ src/helpers/image-source-url.helpers.ts | 4 -- 2 files changed, 68 insertions(+), 4 deletions(-) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..992a30e --- /dev/null +++ b/renovate.json @@ -0,0 +1,68 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["github>RightCapitalHQ/renovate-config"], + "assignees": ["rainx"], + "reviewers": ["rainx"], + "labels": ["dependencies"], + "automergeType": "pr", + "platformAutomerge": true, + "prCreation": "immediate", + "postUpgradeTasks": { + "commands": [ + "git add --all", + "npx beachball change --no-fetch --no-commit --type patch --message '{{{commitMessage}}}'", + "git reset" + ], + "executionMode": "branch", + "fileFilters": ["change/*.json"] + }, + "lockFileMaintenance": { + "automerge": true, + "enabled": true, + "postUpgradeTasks": { + "commands": [ + "git add --all", + "npx beachball change --no-fetch --no-commit --type none --message '{{{commitMessage}}}'", + "git reset" + ], + "executionMode": "branch", + "fileFilters": ["change/*.json"] + } + }, + "packageRules": [ + { + "automerge": false, + "description": "Mark rule and plugin updates as breaking changes", + "matchDepTypes": ["dependencies"], + "matchPackagePrefixes": [ + "@typescript-eslint/", + "eslint-config-", + "eslint-plugin-" + ] + }, + { + "automerge": false, + "description": "Group all RightCapital packages (non-major) together", + "groupName": "RightCapital packages (non-major)", + "groupSlug": "auto-merge-rightcapital-packages-non-major-updates", + "matchUpdateTypes": ["minor", "patch"], + "matchPackagePrefixes": ["@rightcapital"] + }, + { + "automerge": false, + "description": "Group all DevDependencies together", + "groupName": "DevDependencies", + "groupSlug": "auto-merge-dev-dependencies-updates", + "matchDepTypes": ["devDependencies"], + "postUpgradeTasks": { + "commands": [ + "git add --all", + "npx beachball change --no-fetch --no-commit --type none --message '{{{commitMessage}}}'", + "git reset" + ], + "fileFilters": ["change/*.json"], + "executionMode": "branch" + } + } + ] +} diff --git a/src/helpers/image-source-url.helpers.ts b/src/helpers/image-source-url.helpers.ts index 91e783f..d8c2a50 100644 --- a/src/helpers/image-source-url.helpers.ts +++ b/src/helpers/image-source-url.helpers.ts @@ -63,8 +63,4 @@ export class ImageSourceUrlHelpers { `Unsupported source image provider URL: ${sourceUrl}`, ); } - - private static arrayBufferToBuffer(arrayBufferData: ArrayBuffer): Buffer { - return Buffer.from(arrayBufferData); - } }