requireSpread

Disallows using .apply in favor of the spread operator

Types: Boolean

Values:

  • true specifies that apply .apply is disallowed

Version: ES6

Example

"requireSpread": true
Valid for mode true
const wrap = (f, g) => (...args) => g(f, ...args)
instance.method(...args)
Invalid for mode true
const wrap = (f, g) => (...args) => g.apply(g, [f].concat(args))
instance.method.apply(instance, args);
Rule source
Test source