Skip to content

Commit 803be9b

Browse files
chore: fix lint
1 parent 731d86a commit 803be9b

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

src/upgrade/assessmentManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function getUpgradeForDependency(versionString: string, supportedVersionDefiniti
4141
reason,
4242
currentVersion: versionString,
4343
suggestedVersion: alternative,
44-
}
44+
};
4545
}
4646
case UpgradeReason.END_OF_LIFE: {
4747
const currentSemVer = semver.coerce(versionString);
@@ -51,7 +51,7 @@ function getUpgradeForDependency(versionString: string, supportedVersionDefiniti
5151
reason,
5252
currentVersion: versionString,
5353
suggestedVersion: supportedVersionDefinition.suggestedVersion,
54-
}
54+
};
5555
}
5656
}
5757

src/upgrade/display/notificationManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class NotificationManager implements IUpgradeIssuesRenderer {
7272
}
7373
}
7474
}
75-
))()
75+
))();
7676
}
7777

7878
private shouldShow() {

src/upgrade/type.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Licensed under the MIT license.
33

44
export type DependencyCheckItemBase = { name: string, reason: UpgradeReason };
5-
export type DependencyCheckItemEol = DependencyCheckItemBase & { reason: UpgradeReason.END_OF_LIFE | UpgradeReason.JRE_TOO_OLD, supportedVersion: string, suggestedVersion: string };
5+
export type DependencyCheckItemEol = DependencyCheckItemBase
6+
& { reason: UpgradeReason.END_OF_LIFE | UpgradeReason.JRE_TOO_OLD, supportedVersion: string, suggestedVersion: string };
67
export type DependencyCheckItemDeprecated = DependencyCheckItemBase & { reason: UpgradeReason.DEPRECATED, alternative: string };
78
export type DependencyCheckItem = (DependencyCheckItemEol | DependencyCheckItemDeprecated);
89
export type DependencyCheckMetadata = Record<string, DependencyCheckItem>;
@@ -12,7 +13,7 @@ export enum UpgradeReason {
1213
DEPRECATED,
1314
CVE,
1415
JRE_TOO_OLD,
15-
};
16+
}
1617

1718
export type UpgradeIssue = {
1819
packageId: string;

src/upgrade/upgradeManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class UpgradeManager {
6666
notificationManager.render(workspaceIssues);
6767
}
6868
}
69-
))()
69+
))();
7070
}
7171
}
7272

src/upgrade/utility.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ export function buildNotificationMessage(issue: UpgradeIssue): string {
1010
const name = packageDisplayName ?? packageId;
1111

1212
if (packageId === Upgrade.PACKAGE_ID_FOR_JAVA_RUNTIME) {
13-
return `The current project is using an older runtime (Java ${currentVersion}). Do you want to upgrade to the latest LTS version${suggestedVersion ? ` (${suggestedVersion})` : ""}?`
13+
return `The current project is using an older runtime (Java ${currentVersion}). Do you want to upgrade to the latest LTS version${suggestedVersion ? ` (${suggestedVersion})` : ""}?`;
1414
}
1515

1616
return `The current project is using ${name} ${currentVersion}, which has reached end of life. Do you want to upgrade to ${suggestedVersion ? ` ${suggestedVersion}` : "the latest version"
17-
}?`
17+
}?`;
1818
}
1919

2020
export function buildFixPrompt(issue: UpgradeIssue): string {

0 commit comments

Comments
 (0)