From 480b11f0caa05ddfdeab6e154b480444e8c0ee85 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Tue, 12 Mar 2024 07:05:36 +0100
Subject: [PATCH] chore: sort config types

---
 lib/config/types.ts | 92 ++++++++++++++++++++++-----------------------
 1 file changed, 46 insertions(+), 46 deletions(-)

diff --git a/lib/config/types.ts b/lib/config/types.ts
index ac5935ed99..bb5882b981 100644
--- a/lib/config/types.ts
+++ b/lib/config/types.ts
@@ -28,70 +28,70 @@ export type RecreateWhen = 'auto' | 'never' | 'always';
 // TODO: Proper typings
 export interface RenovateSharedConfig {
   $schema?: string;
+  addLabels?: string[];
+  autoReplaceGlobalMatch?: boolean;
   automerge?: boolean;
+  automergeSchedule?: string[];
   automergeStrategy?: MergeStrategy;
-  autoReplaceGlobalMatch?: boolean;
-  pruneBranchAfterAutomerge?: boolean;
-  branchPrefix?: string;
-  branchPrefixOld?: string;
   branchName?: string;
   branchNameStrict?: boolean;
-  manager?: string;
+  branchPrefix?: string;
+  branchPrefixOld?: string;
   commitMessage?: string;
-  commitMessagePrefix?: string;
-  commitMessageTopic?: string;
   commitMessageAction?: string;
   commitMessageExtra?: string;
+  commitMessageLowerCase?: 'auto' | 'never';
+  commitMessagePrefix?: string;
+  commitMessageTopic?: string;
   confidential?: boolean;
   customChangelogUrl?: string;
+  dependencyDashboardApproval?: boolean;
   draftPR?: boolean;
   enabled?: boolean;
   enabledManagers?: string[];
   extends?: string[];
   fileMatch?: string[];
   force?: RenovateConfig;
+  gitIgnoredAuthors?: string[];
   group?: GroupConfig;
   groupName?: string;
   groupSlug?: string;
-  includePaths?: string[];
+  hashedBranchLength?: number;
   ignoreDeps?: string[];
   ignorePaths?: string[];
   ignoreTests?: boolean;
+  includePaths?: string[];
   internalChecksAsSuccess?: boolean;
   keepUpdatedLabel?: string;
   labels?: string[];
-  addLabels?: string[];
-  dependencyDashboardApproval?: boolean;
-  hashedBranchLength?: number;
+  manager?: string;
+  milestone?: number;
   npmrc?: string;
   npmrcMerge?: boolean;
+  platformCommit?: boolean;
   postUpgradeTasks?: PostUpgradeTasks;
   prBodyColumns?: string[];
   prBodyDefinitions?: Record<string, string>;
   prCreation?: 'immediate' | 'not-pending' | 'status-success' | 'approval';
-  productLinks?: Record<string, string>;
   prPriority?: number;
+  productLinks?: Record<string, string>;
+  pruneBranchAfterAutomerge?: boolean;
   rebaseLabel?: string;
-  respectLatest?: boolean;
-  stopUpdatingLabel?: string;
   rebaseWhen?: string;
-  recreateWhen?: RecreateWhen;
   recreateClosed?: boolean;
+  recreateWhen?: RecreateWhen;
   repository?: string;
   repositoryCache?: RepositoryCacheConfig;
   repositoryCacheType?: RepositoryCacheType;
+  respectLatest?: boolean;
   schedule?: string[];
-  automergeSchedule?: string[];
-  semanticCommits?: 'auto' | 'enabled' | 'disabled';
   semanticCommitScope?: string | null;
-  commitMessageLowerCase?: 'auto' | 'never';
   semanticCommitType?: string;
+  semanticCommits?: 'auto' | 'enabled' | 'disabled';
+  stopUpdatingLabel?: string;
   suppressNotifications?: string[];
   timezone?: string;
   unicodeEmoji?: boolean;
-  gitIgnoredAuthors?: string[];
-  platformCommit?: boolean;
-  milestone?: number;
 }
 
 // Config options used only within the global worker
@@ -106,20 +106,20 @@ export interface GlobalOnlyConfig {
   containerbaseDir?: string;
   detectHostRulesFromEnv?: boolean;
   dockerCliOptions?: string;
+  endpoint?: string;
   forceCli?: boolean;
   gitNoVerify?: GitNoVerifyOption[];
   gitPrivateKey?: string;
   globalExtends?: string[];
   logFile?: string;
   logFileLevel?: LogLevel;
+  platform?: PlatformId;
   prCommitsPerRunLimit?: number;
   privateKeyPath?: string;
   privateKeyPathOld?: string;
-  redisUrl?: string;
   redisPrefix?: string;
+  redisUrl?: string;
   repositories?: RenovateRepository[];
-  platform?: PlatformId;
-  endpoint?: string;
   useCloudMetadataServices?: boolean;
 }
 
@@ -130,32 +130,32 @@ export interface RepoGlobalConfig {
   allowPlugins?: boolean;
   allowPostUpgradeCommandTemplating?: boolean;
   allowScripts?: boolean;
+  allowedEnv?: string[];
   allowedHeaders?: string[];
   allowedPostUpgradeCommands?: string[];
   binarySource?: 'docker' | 'global' | 'install' | 'hermit';
+  cacheDir?: string;
   cacheHardTtlMinutes?: number;
   cacheTtlOverride?: Record<string, number>;
+  containerbaseDir?: string;
   customEnvVariables?: Record<string, string>;
   dockerChildPrefix?: string;
   dockerCliOptions?: string;
   dockerSidecarImage?: string;
   dockerUser?: string;
   dryRun?: DryRunConfig;
+  endpoint?: string;
   executionTimeout?: number;
-  gitTimeout?: number;
   exposeAllEnv?: boolean;
+  gitTimeout?: number;
   githubTokenWarn?: boolean;
+  includeMirrors?: boolean;
+  localDir?: string;
   migratePresets?: Record<string, string>;
+  platform?: PlatformId;
   presetCachePersistence?: boolean;
   privateKey?: string;
   privateKeyOld?: string;
-  localDir?: string;
-  cacheDir?: string;
-  containerbaseDir?: string;
-  platform?: PlatformId;
-  endpoint?: string;
-  includeMirrors?: boolean;
-  allowedEnv?: string[];
 }
 
 export interface LegacyAdminConfig {
@@ -341,33 +341,33 @@ export interface PackageRule
     UpdateConfig,
     Record<string, unknown> {
   description?: string | string[];
+  excludeDepNames?: string[];
+  excludeDepPatterns?: string[];
+  excludePackageNames?: string[];
+  excludePackagePatterns?: string[];
+  excludePackagePrefixes?: string[];
+  excludeRepositories?: string[];
   isVulnerabilityAlert?: boolean;
-  matchFileNames?: string[];
   matchBaseBranches?: string[];
+  matchCategories?: string[];
+  matchConfidence?: MergeConfidence[];
   matchCurrentAge?: string;
-  matchManagers?: string[];
+  matchCurrentValue?: string;
+  matchCurrentVersion?: string;
   matchDatasources?: string[];
-  matchDepTypes?: string[];
   matchDepNames?: string[];
   matchDepPatterns?: string[];
+  matchDepTypes?: string[];
+  matchFileNames?: string[];
+  matchManagers?: string[];
+  matchNewValue?: string;
   matchPackageNames?: string[];
   matchPackagePatterns?: string[];
   matchPackagePrefixes?: string[];
   matchRepositories?: string[];
-  excludeDepNames?: string[];
-  excludeDepPatterns?: string[];
-  excludePackageNames?: string[];
-  excludePackagePatterns?: string[];
-  excludePackagePrefixes?: string[];
-  excludeRepositories?: string[];
-  matchNewValue?: string;
-  matchCurrentValue?: string;
-  matchCurrentVersion?: string;
   matchSourceUrlPrefixes?: string[];
   matchSourceUrls?: string[];
   matchUpdateTypes?: UpdateType[];
-  matchCategories?: string[];
-  matchConfidence?: MergeConfidence[];
   registryUrls?: string[] | null;
   vulnerabilitySeverity?: string;
 }
-- 
GitLab