diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 8ea829eaad5b2..05d80d97ccc6e 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -1166,7 +1166,7 @@ namespace ts { affectsEmit: true, category: Diagnostics.Language_and_Environment, description: Diagnostics.Emit_ECMAScript_standard_compliant_class_fields, - defaultValueDescription: "false" + defaultValueDescription: Diagnostics.true_for_ES2022_and_above_including_ESNext }, { name: "keyofStringsOnly", diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 91780f5309c8d..d780c07a312c0 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -5824,6 +5824,11 @@ "category": "Message", "code": 6929 }, + "`true` for ES2022 and above, including ESNext.": { + "category": "Message", + "code": 6930 + }, + "Variable '{0}' implicitly has an '{1}' type.": { "category": "Error",