An option for comma-dangle so that it works on function calls too
See original GitHub issueWhen does this rule warn? Please describe and show example code: It should warn for this:
func(
a,
b
)
Adding a comma after b should solve it.
Is this rule preventing an error or is it stylistic? stylistic
Why is this rule a candidate for inclusion instead of creating a custom rule? well, it’s just a simple option for comma-dangle rule.
Are you willing to create the rule yourself?
no
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
comma-dangle - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >How to Allow Trailing Commas (Comma-Dangle) With ...
ESLint comes with support to require or disallow trailing commas. This option is also known as “comma-dangle”. Trailing commas are supported ...
Read more >Eslint parse error on comma dangle in functions - Stack Overflow
I hope it helps. When using a dangling comma on function calls, ESLint throws this error: Parsing error: Unexpected token ) . The...
Read more >comma-dangle | typescript-eslint
In addition to the options supported by the comma-dangle rule in ESLint core, the rule adds the following options: "enums" is for trailing...
Read more >How to replace Prettier by ESLint rules ? | by Florian Briand
And Prettier, as a very opinionated tool, has very few options you can configurate. So if You are also very opiniated about how...
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
For someone who googles and comes to this page: this is already done in
eslint-plugin-babel
, the rule name isbabel/func-params-comma-dangle
.@ilyavolodin I see, will do.