Require or disallow spacing between function identifiers and their invocations.
// code-linter.json5
{
"rules": {
"@typescript-eslint/func-call-spacing": "error"
}
} function fn() {
console.log('hello');
}
// By default, no space is allowed between the function name and the opening parenthesis.
fn(); function fn() {
console.log('hello');
}
// By default, no space is allowed between the function name and the opening parenthesis.
fn ();
fn
(); plugin:@typescript-eslint/all
For details about how to configure Code Linter check rules, see Code Linter.