mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Change flag name to checkJs
This commit is contained in:
parent
b015c1d9b0
commit
9305d4d99e
@ -483,7 +483,7 @@ namespace ts {
|
||||
}
|
||||
},
|
||||
{
|
||||
name: "checkJsFiles",
|
||||
name: "checkJs",
|
||||
type: "boolean",
|
||||
experimental: true,
|
||||
description: Diagnostics.Report_errors_in_js_files
|
||||
|
||||
@ -906,7 +906,7 @@ namespace ts {
|
||||
const bindDiagnostics = sourceFile.bindDiagnostics;
|
||||
// For JavaScript files, we don't want to report semantic errors unless ecplicitlly requested.
|
||||
const includeCheckDiagnostics = !isSourceFileJavaScript(sourceFile) ||
|
||||
(sourceFile.checkJsDirective ? sourceFile.checkJsDirective.enabled : options.checkJsFiles);
|
||||
(sourceFile.checkJsDirective ? sourceFile.checkJsDirective.enabled : options.checkJs);
|
||||
const checkDiagnostics = includeCheckDiagnostics ? typeChecker.getDiagnostics(sourceFile, cancellationToken) : [];
|
||||
const fileProcessingDiagnosticsInFile = fileProcessingDiagnostics.getDiagnostics(sourceFile.fileName);
|
||||
const programDiagnosticsInFile = programDiagnostics.getDiagnostics(sourceFile.fileName);
|
||||
|
||||
@ -3317,7 +3317,7 @@
|
||||
alwaysStrict?: boolean; // Always combine with strict property
|
||||
baseUrl?: string;
|
||||
charset?: string;
|
||||
checkJsFiles?: boolean;
|
||||
checkJs?: boolean;
|
||||
/* @internal */ configFilePath?: string;
|
||||
declaration?: boolean;
|
||||
declarationDir?: string;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// @allowJs: true
|
||||
// @checkJsFiles: true
|
||||
// @checkJs: true
|
||||
// @noEmit: true
|
||||
|
||||
// @fileName: a.js
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// @allowJs: true
|
||||
// @checkJsFiles: false
|
||||
// @checkJs: false
|
||||
// @noEmit: true
|
||||
|
||||
// @fileName: a.js
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// @allowJs: true
|
||||
// @checkJsFiles: false
|
||||
// @checkJs: false
|
||||
// @noEmit: true
|
||||
|
||||
// @fileName: a.js
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// @allowJs: true
|
||||
// @checkJsFiles: true
|
||||
// @checkJs: true
|
||||
// @noEmit: true
|
||||
|
||||
// @fileName: a.js
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user