From b5816f224a969e79d1f8526ef7bbc4628c58907f Mon Sep 17 00:00:00 2001 From: Roman A <121314722+GameRoMan@users.noreply.github.com> Date: Sun, 1 Jun 2025 15:06:50 +0100 Subject: [PATCH 1/3] Fix capitalisation in --- src/compiler/diagnosticMessages.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index d137bd53fd1cd..7d260fb466bb6 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -6014,7 +6014,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 }, From fad76fc87d8aa99a9a16d335136b335d43f578f9 Mon Sep 17 00:00:00 2001 From: Roman A <121314722+GameRoMan@users.noreply.github.com> Date: Thu, 5 Jun 2025 19:22:02 +0100 Subject: [PATCH 2/3] Rename `checkJS` to `checkJs` in other files --- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- .../tsconfig.json | 2 +- ...does-not-add-color-when-NO_COLOR-is-set.js | 26 +++++++++---------- .../reference/tsc/commandLine/help-all.js | 26 +++++++++---------- .../reference/tsc/commandLine/help.js | 26 +++++++++---------- ...tatus.DiagnosticsPresent_OutputsSkipped.js | 26 +++++++++---------- 15 files changed, 63 insertions(+), 63 deletions(-) diff --git a/tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json index 904d43ff28f75..fff431f3edd52 100644 --- a/tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json @@ -47,7 +47,7 @@ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. */ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --help/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --help/tsconfig.json index 904d43ff28f75..fff431f3edd52 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --help/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --help/tsconfig.json @@ -47,7 +47,7 @@ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. */ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json index 904d43ff28f75..fff431f3edd52 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json @@ -47,7 +47,7 @@ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. */ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with advanced options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with advanced options/tsconfig.json index 9e12e4c678245..5c8daea648a91 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with advanced options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with advanced options/tsconfig.json @@ -47,7 +47,7 @@ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. */ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json index 68c7371a7d1a8..5940e1c671f17 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json @@ -47,7 +47,7 @@ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. */ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with enum value compiler options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with enum value compiler options/tsconfig.json index 375a8242b2d2a..e7fe7ff0a34b1 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with enum value compiler options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with enum value compiler options/tsconfig.json @@ -47,7 +47,7 @@ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. */ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with files options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with files options/tsconfig.json index 19515b7b2ea76..99c106af086e5 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with files options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with files options/tsconfig.json @@ -47,7 +47,7 @@ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. */ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json index 3b9149104b4f2..bb30f9e781bdd 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json @@ -47,7 +47,7 @@ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. */ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json index 904d43ff28f75..fff431f3edd52 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json @@ -47,7 +47,7 @@ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. */ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json index 84de3701e5721..532cfb7e9c63c 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json @@ -47,7 +47,7 @@ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. */ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options/tsconfig.json index 522ee747c1912..1e04b205accdf 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options/tsconfig.json @@ -47,7 +47,7 @@ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ + // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. */ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ diff --git a/tests/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js b/tests/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js index e7a5b6ed97c14..f2b635d03cba3 100644 --- a/tests/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js +++ b/tests/baselines/reference/tsc/commandLine/does-not-add-color-when-NO_COLOR-is-set.js @@ -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] /// interface Boolean {} interface Function {} @@ -13,11 +13,11 @@ interface RegExp {} interface String { charAt: any; } interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} -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 @@ -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 @@ -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 diff --git a/tests/baselines/reference/tsc/commandLine/help-all.js b/tests/baselines/reference/tsc/commandLine/help-all.js index 0f9c62c0c9130..aa2cf808f9515 100644 --- a/tests/baselines/reference/tsc/commandLine/help-all.js +++ b/tests/baselines/reference/tsc/commandLine/help-all.js @@ -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] /// interface Boolean {} interface Function {} @@ -13,11 +13,11 @@ interface RegExp {} interface String { charAt: any; } interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} -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 @@ -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 @@ -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 diff --git a/tests/baselines/reference/tsc/commandLine/help.js b/tests/baselines/reference/tsc/commandLine/help.js index 1eaa3f5d46d4d..127ad59846143 100644 --- a/tests/baselines/reference/tsc/commandLine/help.js +++ b/tests/baselines/reference/tsc/commandLine/help.js @@ -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] /// interface Boolean {} interface Function {} @@ -13,11 +13,11 @@ interface RegExp {} interface String { charAt: any; } interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} -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 @@ -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 @@ -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 diff --git a/tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js b/tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js index 25a6e20272615..2727e77b708e6 100644 --- a/tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js +++ b/tests/baselines/reference/tsc/commandLine/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js @@ -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] /// interface Boolean {} interface Function {} @@ -13,11 +13,11 @@ interface RegExp {} interface String { charAt: any; } interface Array { length: number; [n: number]: T; } interface ReadonlyArray {} -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 @@ -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 @@ -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 From 3aea59d5e68a04c1bf7c8571209c3382b298695b Mon Sep 17 00:00:00 2001 From: Roman A <121314722+GameRoMan@users.noreply.github.com> Date: Fri, 6 Jun 2025 20:38:47 +0100 Subject: [PATCH 3/3] Change the description in commandLineParser.ts --- src/compiler/commandLineParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 5b03df86697a4..6713470f5f92f 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -695,7 +695,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, }, {