Urara-Blog/node_modules/.pnpm-store/v3/files/03/fa743614bd751a144fa96bc673f0ea9b280a1ca4e66965c296bc0efd212959014a9ee17b13523c2442064cf58ebb13ddb1f430e0fc3c8201f362838e0d3f84
2022-08-14 01:14:53 +08:00

32 lines
857 B
Text

---
description: 'Enforce consistent spacing before and after keywords.'
---
> 🛑 This file is source code, not the primary documentation location! 🛑
>
> See **https://typescript-eslint.io/rules/keyword-spacing** for documentation.
## Rule Details
This rule extends the base [`eslint/keyword-spacing`](https://eslint.org/docs/rules/keyword-spacing) rule.
This version 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
"keyword-spacing": "off",
"@typescript-eslint/keyword-spacing": ["error"]
}
```
## Options
See [`eslint/keyword-spacing` options](https://eslint.org/docs/rules/keyword-spacing#options).
<sup>
Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/keyword-spacing.md)
</sup>