Skip to content
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

[eslint] Require trailing commas where useful #355

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

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
Status: Reviewer Approved
Development

Successfully merging this pull request may close these issues.

4 participants