# disallow trailing commas in parameter/argument lists (es/no-trailing-function-commas)

  • 🔧 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:

/*eslint es/no-trailing-function-commas: error */ async function f1(a,) {} let f2 = async function(a,) {} let f3 = async (a,) => {} let obj = { async f4(a,) {} } class A { async f5(a,) {} } foo(a,) new F(a,)
Now loading...

# 📚 References