Skip to content

Commit 6f0edcc

Browse files
committed
Fix lints
1 parent 64ef35e commit 6f0edcc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/compiler/parser.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -9663,7 +9663,7 @@ namespace ts {
96639663
const entry = (isArray(entryOrList) ? last(entryOrList) : entryOrList);
96649664
const unparsedValue = (entry.arguments as PragmaArgumentType<`ts-${Lowercase<FileLocalOptionName>}`>).value;
96659665
const optContainer: OptionsBase = {};
9666-
const errors: Diagnostic[] = []
9666+
const errors: Diagnostic[] = [];
96679667
const parsedValue = unparsedValue === undefined ? true : (parseOptionValue([unparsedValue], 0, /*diagnostics*/ undefined, opt, optContainer, errors), optContainer[opt.name]);
96689668
if (unparsedValue === undefined && opt.type !== "boolean") {
96699669
errors.push(createCompilerDiagnostic(Diagnostics.Compiler_option_0_expects_an_argument, optName));
@@ -9681,6 +9681,7 @@ namespace ts {
96819681
if (!length(errors)) {
96829682
(context.localOptions ??= {})[opt.name as string] = parsedValue;
96839683
}
9684+
break;
96849685
}
96859686
case "jsx":
96869687
case "jsxfrag":

src/compiler/program.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3493,7 +3493,7 @@ namespace ts {
34933493
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "lib", "noLib");
34943494
}
34953495

3496-
if (options.noImplicitUseStrict && getStrictOptionValue(/*file*/undefined, options, "alwaysStrict")) {
3496+
if (options.noImplicitUseStrict && getStrictOptionValue(/*file*/ undefined, options, "alwaysStrict")) {
34973497
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_with_option_1, "noImplicitUseStrict", "alwaysStrict");
34983498
}
34993499

0 commit comments

Comments
 (0)