From 4d67ea8c39eefacb23a5637a97ba301b29330987 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Wed, 25 Jan 2023 14:26:03 -0800 Subject: [PATCH] Allow `ignoreDeprecations` in 4.9 --- src/compiler/commandLineParser.ts | 7 ++++++- .../ignoreDeprecations/tsconfig.json | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tests/baselines/reference/config/showConfig/Shows tsconfig for single option/ignoreDeprecations/tsconfig.json diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index d13f8156e43e3..6081ae9a41932 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -1355,7 +1355,12 @@ namespace ts { description: Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files, category: Diagnostics.Language_and_Environment, defaultValueDescription: Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules, - } + }, + { + name: "ignoreDeprecations", + type: "string", + defaultValueDescription: undefined, + }, ]; /* @internal */ diff --git a/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/ignoreDeprecations/tsconfig.json b/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/ignoreDeprecations/tsconfig.json new file mode 100644 index 0000000000000..bb117308adcf3 --- /dev/null +++ b/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/ignoreDeprecations/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "ignoreDeprecations": "someString" + } +}