UNPKG

821 BMarkdownView Raw
1# `keyword-spacing`
2
3Enforce consistent spacing before and after keywords.
4
5## Rule Details
6
7This rule extends the base [`eslint/keyword-spacing`](https://eslint.org/docs/rules/keyword-spacing) rule.
8This version adds support for generic type parameters on function calls.
9
10## How to Use
11
12```jsonc
13{
14 // note you must disable the base rule as it can report incorrect errors
15 "keyword-spacing": "off",
16 "@typescript-eslint/keyword-spacing": ["error"]
17}
18```
19
20## Options
21
22See [`eslint/keyword-spacing` options](https://eslint.org/docs/rules/keyword-spacing#options).
23
24<sup>
25
26Taken with ❤️ [from ESLint core](https://github.com/eslint/eslint/blob/main/docs/rules/keyword-spacing.md)
27
28</sup>
29
30## Attributes
31
32- Configs:
33 - [ ] ✅ Recommended
34 - [ ] 🔒 Strict
35- [x] 🔧 Fixable
36- [ ] 💭 Requires type information