Disallow spacing between the function name and the open parenthesis. This rule only checks .ets files.
// code-linter.json5
{
"rules": {
"@hw-stylistic/space-before-function-paren": "error"
}
} // Unexpected space before function parentheses.
function bar () {
// doSomething
}
// Unexpected space before function parentheses.
bar (); "plugin:@hw-stylistic/recommended" "plugin:@hw-stylistic/all"
For details about how to configure Code Linter check rules, see Code Linter.