feat(core): add useDoubleQuotes option for enum change messages #2904
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Description
Adds a
useDoubleQuotesconfiguration option toConsiderUsageConfigthat allows users to control whether enum change messages use double quotes or single quotes. When enabled, enum-related changes will format values and names with double quotes (e.g., Enum value "C" was deprecated with reason "don't use this anymore or else!!1").When disabled or omitted, the default behavior of single quotes is maintained for backward compatibility. The implementation adds a
fmt()utility function inutils/string.tsthat handles the quote formatting based on the configuration, and updates all enum change message builders to use this utility.Addresses #2903
Type of change
Please delete options that are not relevant.
Screenshots/Sandbox:
Current behavior causes this issue, where an example UI fails to discriminate when to labelize single quoted words/messages:

How Has This Been Tested?
fmt()utility function covering all scenarios (default, undefined config, explicit true/false)useDoubleQuotes: trueoptionpnpm testto verify all tests passChecklist:
Further comments
The
fmt()utility is designed to be easily extensible to other change types beyond enums if needed in the future. The configuration option is placed inConsiderUsageConfigto maintain consistency with other diff configuration options.