Urara-Blog/node_modules/.pnpm-store/v3/files/f1/0395cf1d5a323c9128d0091e8b41dac7b9a20052a3250ce0ed34be7cab5251e2135a3d19b6f409d0ac7e6e743da99204680e2c136ee151f8776f0310529e07
2022-08-14 01:14:53 +08:00

32 lines
945 B
Text

---
description: 'Enforce consistent spacing before function parenthesis.'
---
> 🛑 This file is source code, not the primary documentation location! 🛑
>
> See **https://typescript-eslint.io/rules/space-before-function-paren** for documentation.
## Rule Details
This rule extends the base [`eslint/space-before-function-paren`](https://eslint.org/docs/rules/space-before-function-paren) rule.
It adds support for generic type parameters on function calls.
## How to Use
```jsonc
{
// 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](https://eslint.org/docs/rules/space-before-function-paren#options).
<sup>
Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/space-before-function-paren.md)
</sup>