Skip to content

Introduce trailingCommasInMultilineLists configuration #1044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TTOzzi
Copy link
Member

@TTOzzi TTOzzi commented Jul 15, 2025

Resolve #946

Added a configuration to support the use of trailing commas extended by SE-0439.

This configuration supports three values:

  • always: always insert trailing commas in multiline lists
  • never: always remove trailing commas
  • ignore: preserve existing commas as-is

The default value is ignore.

The main concern was how to integrate this with the existing multiElementCollectionTrailingCommas configuration.
For now, trailingCommasInMultilineLists takes higher precedence, but to minimize its impact on multiElementCollectionTrailingCommas, it is implemented so that when set to the default value ignore, the behavior of multiElementCollectionTrailingCommas is preserved.

I’d appreciate any suggestions or feedback you may have.

@TTOzzi TTOzzi force-pushed the trailingCommasInLists branch from f712fd2 to c5fb5d2 Compare July 15, 2025 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Support for trailing commas in lists (SE-0439)
1 participant