ter-func-call-spacing (ESLint: func-call-spacing)
require or disallow spacing between function identifiers and their invocations
This rule will enforce consistency of spacing in function calls, by disallowing or requiring one or more spaces before the open paren.
This rule has a string option:
"never"
(default) disallows space between the function name and the opening parenthesis."always"
requires space between the function name and the opening parenthesis.
Further, in "always"
mode, a second object option is available that contains a single boolean allowNewlines
property.
"ter-func-call-spacing": [true]
"ter-func-call-spacing": [true, "always"]
"ter-func-call-spacing": [true, "always", { allowNewlines: true }]
{
"type": "array",
"items": [
{
"enum": [
"always",
"never"
]
},
{
"type": "object",
"properties": {
"allowNewlines": {
"type": "boolean"
}
},
"additionalProperties": false
}
],
"minItems": 0,
"maxItems": 2
}