Skip to content

Commit af3a377

Browse files
authored
add allowJs default value description (#62611)
1 parent 84f4856 commit af3a377

7 files changed

+10
-6
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
699699
showInSimplifiedHelpView: true,
700700
category: Diagnostics.JavaScript_Support,
701701
description: Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,
702-
defaultValueDescription: false,
702+
defaultValueDescription: Diagnostics.false_unless_checkJs_is_set,
703703
},
704704
{
705705
name: "checkJs",

src/compiler/diagnosticMessages.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6699,6 +6699,10 @@
66996699
"category": "Error",
67006700
"code": 6931
67016701
},
6702+
"`false`, unless `checkJs` is set": {
6703+
"category": "Message",
6704+
"code": 6932
6705+
},
67026706

67036707
"Variable '{0}' implicitly has an '{1}' type.": {
67046708
"category": "Error",

tests/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ default: undefined
120120
--allowJs
121121
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
122122
type: boolean
123-
default: false
123+
default: `false`, unless `checkJs` is set
124124

125125
--checkJs
126126
Enable error reporting in type-checked JavaScript files.

tests/baselines/reference/tsc/commandLine/help-all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Specify type package names to be included without being referenced in a source f
147147
--allowJs
148148
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
149149
type: boolean
150-
default: false
150+
default: `false`, unless `checkJs` is set
151151

152152
--checkJs
153153
Enable error reporting in type-checked JavaScript files.

tests/baselines/reference/tsc/commandLine/help.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ default: undefined
119119
--allowJs
120120
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
121121
type: boolean
122-
default: false
122+
default: `false`, unless `checkJs` is set
123123

124124
--checkJs
125125
Enable error reporting in type-checked JavaScript files.

tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped-when-host-can't-provide-terminal-width.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ default: undefined
120120
--allowJs
121121
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
122122
type: boolean
123-
default: false
123+
default: `false`, unless `checkJs` is set
124124

125125
--checkJs
126126
Enable error reporting in type-checked JavaScript files.

tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ default: undefined
120120
--allowJs
121121
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
122122
type: boolean
123-
default: false
123+
default: `false`, unless `checkJs` is set
124124

125125
--checkJs
126126
Enable error reporting in type-checked JavaScript files.

0 commit comments

Comments
 (0)