]> git.proxmox.com Git - pve-eslint.git/blob - eslint/docs/rules/no-spaced-func.md
d424049b21a178fd34b1d02b2fbf7ca18c4cb47c
[pve-eslint.git] / eslint / docs / rules / no-spaced-func.md
1 # disallow spacing between function identifiers and their applications (no-spaced-func)
2
3 This rule was **deprecated** in ESLint v3.3.0 and replaced by the [func-call-spacing](func-call-spacing.md) rule.
4
5 While it's possible to have whitespace between the name of a function and the parentheses that execute it, such patterns tend to look more like errors.
6
7 ## Rule Details
8
9 This rule disallows spacing between function identifiers and their applications.
10
11 Examples of **incorrect** code for this rule:
12
13 ```js
14 /*eslint no-spaced-func: "error"*/
15
16 fn ()
17
18 fn
19 ()
20 ```
21
22 Examples of **correct** code for this rule:
23
24 ```js
25 /*eslint no-spaced-func: "error"*/
26
27 fn()
28 ```