Skip to content
Merged
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 @@ -699,7 +699,7 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
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,
defaultValueDescription: false,
defaultValueDescription: Diagnostics.false_unless_checkJs_is_set,
},
{
name: "checkJs",
Expand Down
4 changes: 4 additions & 0 deletions src/compiler/diagnosticMessages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6699,6 +6699,10 @@
"category": "Error",
"code": 6931
},
"`false`, unless `checkJs` is set": {
"category": "Message",
"code": 6932
},

"Variable '{0}' implicitly has an '{1}' type.": {
"category": "Error",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ default: undefined
--allowJs
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
type: boolean
default: false
default: `false`, unless `checkJs` is set

--checkJs
Enable error reporting in type-checked JavaScript files.
Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/tsc/commandLine/help-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Specify type package names to be included without being referenced in a source f
--allowJs
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
type: boolean
default: false
default: `false`, unless `checkJs` is set

--checkJs
Enable error reporting in type-checked JavaScript files.
Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/tsc/commandLine/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ default: undefined
--allowJs
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
type: boolean
default: false
default: `false`, unless `checkJs` is set

--checkJs
Enable error reporting in type-checked JavaScript files.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ default: undefined
--allowJs
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
type: boolean
default: false
default: `false`, unless `checkJs` is set

--checkJs
Enable error reporting in type-checked JavaScript files.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ default: undefined
--allowJs
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
type: boolean
default: false
default: `false`, unless `checkJs` is set

--checkJs
Enable error reporting in type-checked JavaScript files.
Expand Down