Skip to content

Commit

Permalink
chore: remove unused config.global
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Feb 4, 2021
1 parent a6a7ecd commit 5490c3d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
7 changes: 0 additions & 7 deletions lib/config/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ export interface RenovateSharedConfig {
unicodeEmoji?: boolean;
}

export interface GlobalConfig {
prBanner?: string;
prFooter?: string;
}

export interface RenovateAdminConfig {
allowPostUpgradeCommandTemplating?: boolean;
allowedPostUpgradeCommands?: string[];
Expand All @@ -86,8 +81,6 @@ export interface RenovateAdminConfig {

endpoint?: string;

global?: GlobalConfig;

localDir?: string;
logFile?: string;
logFileLevel?: LogLevel;
Expand Down
2 changes: 0 additions & 2 deletions lib/manager/common.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ReleaseType } from 'semver';
import {
GlobalConfig,
MatchStringsStrategy,
UpdateType,
ValidationMessage,
Expand All @@ -23,7 +22,6 @@ export interface ManagerData<T> {

export interface ExtractConfig extends ManagerConfig {
endpoint?: string;
global?: GlobalConfig;
gradle?: { timeout?: number };
aliases?: Record<string, string>;
ignoreNpmrcFile?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions lib/manager/npm/extract/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe('manager/npm/extract', () => {
const res = await npmExtract.extractPackageFile(
input01Content,
'package.json',
{ global: {} }
{}
);
expect(res.npmrc).toBeDefined();
});
Expand All @@ -123,7 +123,7 @@ describe('manager/npm/extract', () => {
const res = await npmExtract.extractPackageFile(
input01Content,
'package.json',
{ global: {} }
{}
);
expect(res.npmrc).toBeUndefined();
});
Expand Down

0 comments on commit 5490c3d

Please sign in to comment.