Skip to content

Commit edb99cd

Browse files
committed
fix lint errors
1 parent a3e30a9 commit edb99cd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/compiler/corePublic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace ts {
88
export const version: string = `${versionMajorMinor}.0-dev`;
99

1010
/* @internal */
11-
export let typeScriptVersion = versionMajorMinor;
11+
export let typeScriptVersion = versionMajorMinor; // eslint-disable-line prefer-const
1212

1313
/**
1414
* Type of objects whose values are all of the same type.

src/compiler/program.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ namespace ts {
10741074
const supportedExtensionsWithJsonIfResolveJsonModule = getSupportedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);
10751075

10761076
let _typeScriptVersion: Version | undefined;
1077-
let _ignoreDeprecations = new Map<DeprecationPhase, Version>();
1077+
const _ignoreDeprecations = new Map<DeprecationPhase, Version>();
10781078

10791079
// Map storing if there is emit blocking diagnostics for given input
10801080
const hasEmitBlockingDiagnostics = new Map<string, boolean>();
@@ -3746,11 +3746,11 @@ namespace ts {
37463746
function createDeprecatedDiagnosticForOption(name: string, value?: string) {
37473747
const version = getTypeScriptVersion();
37483748
if (version.compareTo(getIgnoreDeprecationsVersion(DeprecationPhase.Phase3)) === Comparison.EqualTo) {
3749-
createDiagnosticForOption(/*onKey*/ !value, name, undefined, Diagnostics.Flag_0_is_deprecated_please_remove_it_from_your_configuration, value || name);
3749+
createDiagnosticForOption(/*onKey*/ !value, name, /*option2*/ undefined, Diagnostics.Flag_0_is_deprecated_please_remove_it_from_your_configuration, value || name);
37503750
}
37513751
else {
37523752
const nextPhase = version.compareTo(getIgnoreDeprecationsVersion(DeprecationPhase.Phase2)) === Comparison.EqualTo ? DeprecationPhase.Phase3 : DeprecationPhase.Phase2;
3753-
createDiagnosticForOption(/*onKey*/ !value, name, undefined,
3753+
createDiagnosticForOption(/*onKey*/ !value, name, /*option2*/ undefined,
37543754
Diagnostics.Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_ignoreDeprecations_Colon_2_to_silence_this_error, value || name, DeprecationPhaseToVersionMap[nextPhase], typeScriptVersion);
37553755
}
37563756
}

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6752,7 +6752,7 @@ namespace ts {
67526752
[DeprecationPhase.Phase1]: "5.0",
67536753
[DeprecationPhase.Phase2]: "5.5",
67546754
[DeprecationPhase.Phase3]: "6.0",
6755-
}
6755+
};
67566756

67576757
export interface LineAndCharacter {
67586758
/** 0-based. */

0 commit comments

Comments
 (0)