From 69e88ef5513a81acf69ec78f4af1f927da0d0584 Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Wed, 25 Jan 2023 23:23:42 -0800 Subject: [PATCH] Port ignore deprecations to 4.9 (#52419) --- 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" + } +}