Skip to content

Fix capitalisation for checkJs #61795

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/compiler/commandLineParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
affectsBuildInfo: true,
showInSimplifiedHelpView: true,
category: Diagnostics.JavaScript_Support,
description: Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,
description: Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,
defaultValueDescription: false,
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/diagnosticMessages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6058,7 +6058,7 @@
"category": "Message",
"code": 6506
},
"Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files.": {
"Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.": {
"category": "Message",
"code": 6600
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
Input::
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
Input::
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
Expand All @@ -13,11 +13,11 @@ interface RegExp {}
interface String { charAt: any; }
interface Array<T> { length: number; [n: number]: T; }
interface ReadonlyArray<T> {}
declare const console: { log(msg: any): void; };
/home/src/tslibs/TS/Lib/tsc.js
Output::
declare const console: { log(msg: any): void; };


/home/src/tslibs/TS/Lib/tsc.js
Output::
Version FakeTSVersion
tsc: The TypeScript Compiler - Version FakeTSVersion

Expand Down Expand Up @@ -119,7 +119,7 @@ one or more: es5, es6/es2015, es7/es2016, es2017, es2018, es2019, es2020, es2021
default: undefined

--allowJs
Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files.
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
type: boolean
default: false

Expand Down Expand Up @@ -159,7 +159,7 @@ default: false

You can learn about all of the compiler options at https://aka.ms/tsc

exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped



exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
26 changes: 13 additions & 13 deletions tests/baselines/reference/tsc/commandLine/help-all.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
Input::
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
Input::
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
Expand All @@ -13,11 +13,11 @@ interface RegExp {}
interface String { charAt: any; }
interface Array<T> { length: number; [n: number]: T; }
interface ReadonlyArray<T> {}
declare const console: { log(msg: any): void; };
/home/src/tslibs/TS/Lib/tsc.js --help --all
Output::
declare const console: { log(msg: any): void; };


/home/src/tslibs/TS/Lib/tsc.js --help --all
Output::
tsc: The TypeScript Compiler - Version FakeTSVersion

ALL COMPILER OPTIONS
Expand Down Expand Up @@ -146,7 +146,7 @@ Specify type package names to be included without being referenced in a source f
### JavaScript Support

--allowJs
Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files.
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
type: boolean
default: false

Expand Down Expand Up @@ -688,7 +688,7 @@ Delete the outputs of all projects.
--stopBuildOnErrors
Skip building downstream projects on error in upstream project.

exitCode:: ExitStatus.Success



exitCode:: ExitStatus.Success
26 changes: 13 additions & 13 deletions tests/baselines/reference/tsc/commandLine/help.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
Input::
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
Input::
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
Expand All @@ -13,11 +13,11 @@ interface RegExp {}
interface String { charAt: any; }
interface Array<T> { length: number; [n: number]: T; }
interface ReadonlyArray<T> {}
declare const console: { log(msg: any): void; };
/home/src/tslibs/TS/Lib/tsc.js --help
Output::
declare const console: { log(msg: any): void; };


/home/src/tslibs/TS/Lib/tsc.js --help
Output::
tsc: The TypeScript Compiler - Version FakeTSVersion

COMMON COMMANDS
Expand Down Expand Up @@ -118,7 +118,7 @@ one or more: es5, es6/es2015, es7/es2016, es2017, es2018, es2019, es2020, es2021
default: undefined

--allowJs
Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files.
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
type: boolean
default: false

Expand Down Expand Up @@ -158,7 +158,7 @@ default: false

You can learn about all of the compiler options at https://aka.ms/tsc

exitCode:: ExitStatus.Success



exitCode:: ExitStatus.Success
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
Input::
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false
Input::
//// [/home/src/tslibs/TS/Lib/lib.d.ts]
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
Expand All @@ -13,11 +13,11 @@ interface RegExp {}
interface String { charAt: any; }
interface Array<T> { length: number; [n: number]: T; }
interface ReadonlyArray<T> {}
declare const console: { log(msg: any): void; };
/home/src/tslibs/TS/Lib/tsc.js
Output::
declare const console: { log(msg: any): void; };


/home/src/tslibs/TS/Lib/tsc.js
Output::
Version FakeTSVersion
tsc: The TypeScript Compiler - Version FakeTSVersion

Expand Down Expand Up @@ -119,7 +119,7 @@ one or more: es5, es6/es2015, es7/es2016, es2017, es2018, es2019, es2020, es2021
default: undefined

--allowJs
Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files.
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
type: boolean
default: false

Expand Down Expand Up @@ -159,7 +159,7 @@ default: false

You can learn about all of the compiler options at https://aka.ms/tsc

exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped



exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
Loading