Skip to content

Commit 2752bfb

Browse files
committed
Fix lint failures
1 parent 6613530 commit 2752bfb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/compiler/commandLineParser.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ namespace ts {
387387
name: "inlineSources",
388388
type: "boolean",
389389
category: Diagnostics.SourceMap_Options,
390-
description:Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set
390+
description: Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set
391391
},
392392

393393
// JSX
@@ -477,7 +477,7 @@ namespace ts {
477477
name: "emitBOM",
478478
type: "boolean",
479479
category: Diagnostics.Advanced_Options,
480-
description:Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files
480+
description: Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files
481481
},
482482
{
483483
name: "locale",
@@ -511,7 +511,7 @@ namespace ts {
511511
name: "noResolve",
512512
type: "boolean",
513513
category: Diagnostics.Advanced_Options,
514-
description:Diagnostics.Do_not_add_triple_slash_references_or_module_import_targets_to_the_list_of_compiled_files
514+
description: Diagnostics.Do_not_add_triple_slash_references_or_module_import_targets_to_the_list_of_compiled_files
515515
},
516516
{
517517
name: "stripInternal",
@@ -979,8 +979,8 @@ namespace ts {
979979
result += `${newLine}`;
980980
for (const option of categorizedOptions[category]) {
981981
result += `${tab}${tab}// ${option.description && getLocaleSpecificMessage(option.description) || option.name}${newLine}`;
982-
if (option.name in configurations.compilerOptions) {
983-
result += `${tab}${tab}"${option.name}": ${JSON.stringify(configurations.compilerOptions[option.name])}${++seenKnownKeys === knownKesyCount ? "" : ","}${newLine}`;
982+
if (configurations.compilerOptions[option.name]) {
983+
result += `${tab}${tab}"${option.name}": ${JSON.stringify(configurations.compilerOptions[option.name])}${(seenKnownKeys += 1) === knownKesyCount ? "" : ","}${newLine}`;
984984
}
985985
else {
986986
result += `${tab}${tab}// "${option.name}": ${JSON.stringify(getDefaultValueForOption(option))},${newLine}`;
@@ -1606,4 +1606,4 @@ namespace ts {
16061606
function caseInsensitiveKeyMapper(key: string) {
16071607
return key.toLowerCase();
16081608
}
1609-
}
1609+
}

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3385,7 +3385,7 @@
33853385
paramType?: DiagnosticMessage; // The name to be used for a non-boolean option's parameter
33863386
isTSConfigOnly?: boolean; // True if option can only be specified via tsconfig.json file
33873387
isCommandLineOnly?: boolean;
3388-
showInSimplifiedHelpView?:boolean;
3388+
showInSimplifiedHelpView?: boolean;
33893389
category?: DiagnosticMessage;
33903390
}
33913391

0 commit comments

Comments
 (0)