Skip to content

Commit 9305d4d

Browse files
committed
Change flag name to checkJs
1 parent b015c1d commit 9305d4d

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ namespace ts {
483483
}
484484
},
485485
{
486-
name: "checkJsFiles",
486+
name: "checkJs",
487487
type: "boolean",
488488
experimental: true,
489489
description: Diagnostics.Report_errors_in_js_files

src/compiler/program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ namespace ts {
906906
const bindDiagnostics = sourceFile.bindDiagnostics;
907907
// For JavaScript files, we don't want to report semantic errors unless ecplicitlly requested.
908908
const includeCheckDiagnostics = !isSourceFileJavaScript(sourceFile) ||
909-
(sourceFile.checkJsDirective ? sourceFile.checkJsDirective.enabled : options.checkJsFiles);
909+
(sourceFile.checkJsDirective ? sourceFile.checkJsDirective.enabled : options.checkJs);
910910
const checkDiagnostics = includeCheckDiagnostics ? typeChecker.getDiagnostics(sourceFile, cancellationToken) : [];
911911
const fileProcessingDiagnosticsInFile = fileProcessingDiagnostics.getDiagnostics(sourceFile.fileName);
912912
const programDiagnosticsInFile = programDiagnostics.getDiagnostics(sourceFile.fileName);

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3317,7 +3317,7 @@
33173317
alwaysStrict?: boolean; // Always combine with strict property
33183318
baseUrl?: string;
33193319
charset?: string;
3320-
checkJsFiles?: boolean;
3320+
checkJs?: boolean;
33213321
/* @internal */ configFilePath?: string;
33223322
declaration?: boolean;
33233323
declarationDir?: string;

tests/cases/compiler/checkJsFiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @allowJs: true
2-
// @checkJsFiles: true
2+
// @checkJs: true
33
// @noEmit: true
44

55
// @fileName: a.js

tests/cases/compiler/checkJsFiles2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @allowJs: true
2-
// @checkJsFiles: false
2+
// @checkJs: false
33
// @noEmit: true
44

55
// @fileName: a.js

tests/cases/compiler/checkJsFiles4.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @allowJs: true
2-
// @checkJsFiles: false
2+
// @checkJs: false
33
// @noEmit: true
44

55
// @fileName: a.js

tests/cases/compiler/checkJsFiles5.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @allowJs: true
2-
// @checkJsFiles: true
2+
// @checkJs: true
33
// @noEmit: true
44

55
// @fileName: a.js

0 commit comments

Comments
 (0)