Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 692 Bytes

no-spaced-func.md

File metadata and controls

28 lines (17 loc) · 692 Bytes

disallow spacing between function identifiers and their applications (no-spaced-func)

(fixable) The --fix option on the command line automatically fixes problems reported by this rule.

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.

Rule Details

This rule disallows spacing between function identifiers and their applications.

Examples of incorrect code for this rule:

/*eslint no-spaced-func: "error"*/

fn ()

fn
()

Examples of correct code for this rule:

/*eslint no-spaced-func: "error"*/

fn()