目录

@hw-stylistic/space-before-function-paren

Disallow spacing between the function name and the open parenthesis. This rule only checks .ets files.

Rule Configuration

// code-linter.json5
{
  "rules": {
    "@hw-stylistic/space-before-function-paren": "error"
  }
}

Options

This rule is not configurable.

Example of Correct Code

function bar() {
  // doSomething
}
bar();

Example of Incorrect Code

// Unexpected space before function parentheses.
function bar () {
  // doSomething
}
// Unexpected space before function parentheses.
bar  ();

Rule Set

"plugin:@hw-stylistic/recommended"
"plugin:@hw-stylistic/all"

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