validateParameterSeparator

Enable validation of separators between function parameters. Will ignore newlines.

Type: String

Values:

  • ",": function parameters are immediately followed by a comma
  • ", ": function parameters are immediately followed by a comma and then a space
  • " ,": function parameters are immediately followed by a space and then a comma
  • " , ": function parameters are immediately followed by a space, a comma, and then a space

Example

"validateParameterSeparator": ", "
Valid
function a(b, c) {}
Invalid
function a(b , c) {}
Rule source
Test source