Skip to content

Conversation

fredden
Copy link
Member

@fredden fredden commented Jan 11, 2022

This is a small part of #347 as suggested in #347 (comment).

https://eslint.org/docs/rules/comma-dangle
Including a trailing comma when the closing ] or } is on a different line means that it's easier to see what's changed when reviewing code. Adding a new item to an array or property to an object means that only the new line needs to be added, and no existing lines need to be modified; removing an item or property means that only that line needs to be removed with others remaining unchanged.

@fredden fredden changed the title Require trailing commas where useful [eslint] Require trailing commas where useful Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants