Skip to main content

Enforces consistent spacing before function parenthesis (space-before-function-paren)

Rule Details

This rule extends the base eslint/space-before-function-paren rule. It adds support for generic type parameters on function calls.

How to Use

{
// note you must disable the base rule as it can report incorrect errors
"space-before-function-paren": "off",
"@typescript-eslint/space-before-function-paren": ["error"]
}

Options

See eslint/space-before-function-paren options.

Taken with โค๏ธ from ESLint core

Attributes

  • โœ… Recommended
  • ๐Ÿ”ง Fixable
  • ๐Ÿ’ญ Requires type information