feat(51000) - Flag Deprecation Plan (#51424)

* feat(51000): add ignoreDeprecations option

* use constants of versions

* change the ignoreDeprecations type to allow only one value - '5.0'

* add tests

* update baseline

* add typeScriptVersion to CreateProgramOptions

* update baseline

* change diagnostic message
This commit is contained in:
Oleksandr T authored and GitHub committed 2022-12-15 10:44:06 -08:00
1 parent e0bfac531b
commit fe185272cf
518 files changed
+6322 -95

No files matched your search

+6 -1
View File
@@ -1510,7 +1510,12 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
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 */