[Feature Request] Add commas at end of arguments
See original GitHub issueThis would be great to preserve blame in commits.
Input
Test(
1,
2
)
Current output
Test(
1,
2
)
Expected output
Test(
1,
2,
)
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Should I add a trailing comma after the last argument in a ...
So yes, there are many situations where you can expect your list of functions arguments to grow and where it should be acceptable...
Read more >Best practices for using trailing commas in JavaScript
We'll start with the common data types, like arrays and objects, where you can safely add a trailing comma to the end of...
Read more >Trailing commas - JavaScript - MDN Web Docs
Trailing commas (sometimes called "final commas") can be useful when adding new elements, parameters, or properties to JavaScript code.
Read more >Allow trailing commas in function calls - DevForum | Roblox
The idea behind the trailing comma is to reduce unnecessary diff lines as you work and commit on the files. Having a -1...
Read more >Why you should enforce Dangling Commas for Multiline ...
We all have different opinions on what code should look like. Most of the time it's a matter of preference based on good...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This will be supported in the next release (
0.4.0
) which I’ll push out this morning. In your config you should specifytrailingComma: true
This is now out.