The fn
helper can be used to bind arguments to another function. Using it
without any arguments is redundant because then the inner function could just
be used directly.
This rule is looking for fn
helper usages that don't provide any additional
arguments to the inner function and warns about them.
This rule forbids the following:
This rule allows the following:
🔧 The --fix
option on the command line can automatically fix some of the problems reported by this rule.