terFuncCallSpacingRule.md
April 29, 2017 ยท View on GitHub
ter-func-call-spacing (ESLint: func-call-spacing)
require or disallow spacing between function identifiers and their invocations
Rationale
This rule will enforce consistency of spacing in function calls, by disallowing or requiring one or more spaces before the open paren.
Config
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.
Examples
"ter-func-call-spacing": [true]
"ter-func-call-spacing": [true, "always"]
"ter-func-call-spacing": [true, "always", { allowNewlines: true }]
Schema
{
"type": "array",
"items": [
{
"enum": [
"always",
"never"
]
},
{
"type": "object",
"properties": {
"allowNewlines": {
"type": "boolean"
}
},
"additionalProperties": false
}
],
"minItems": 0,
"maxItems": 2
}