Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 910 Bytes

space-before-function-paren.md

File metadata and controls

36 lines (24 loc) · 910 Bytes

space-before-function-paren

Enforces consistent spacing before function parenthesis.

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

  • Configs:
    • ✅ Recommended
    • 🔒 Strict
  • 🔧 Fixable
  • 💭 Requires type information