no-spaced-func
Disallow spacing between function identifiers and their applications (deprecated)
🔧 Fixable
Some problems reported by this rule are automatically fixable by the --fix
command line option
此规则在 ESLint v3.3.0 中被废弃并被 func-call-spacing 规则所取代。
虽然函数名与圆括号中的执行部分间可以有空白,但这种情况往往看起来更像是错误。
规则细节
这条规则不允许函数标识符和应用存在空袭。
使用此规则的错误示例:
Open in Playground
/*eslint no-spaced-func: "error"*/
fn ()
fn
()
使用此规则的正确示例:
Open in Playground
/*eslint no-spaced-func: "error"*/
fn()
Version
This rule was introduced in ESLint v0.1.2.