es-x/no-trailing-function-commas ​
disallow trailing commas in parameter/argument lists
- ✅ The following configurations enable this rule: no-new-in-es2017, restrict-to-es3, restrict-to-es5, restrict-to-es2015, and restrict-to-es2016
- 🔧 The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
This rule reports ES2017 trailing commas in parameter/argument lists as errors.
💡 Examples ​
â›” Examples of incorrect code for this rule:
🚀 Version ​
This rule was introduced in eslint-plugin-es v1.0.0.