目录

@typescript-eslint/func-call-spacing

Require or disallow spacing between function identifiers and their invocations.

Rule Configuration

// code-linter.json5
{
  "rules": {
    "@typescript-eslint/func-call-spacing": "error"
  }
}

Options

For details, see @typescript-eslint/func-call-spacing.

Example of Correct Code

function fn() {
  console.log('hello');
}

// By default, no space is allowed between the function name and the opening parenthesis.
fn();

Example of Incorrect Code

function fn() {
  console.log('hello');
}

// By default, no space is allowed between the function name and the opening parenthesis.
fn ();

fn
();

Rule Set

plugin:@typescript-eslint/all

For details about how to configure Code Linter check rules, see Code Linter.