reflectApplyReplace `Reflect.apply` with a typed function call. Model dynamic dispatch behind a named interface.small-rules/no-reflect-applyDisallow Reflect.apply; call typed functions directly or model dynamic dispatch behind an interface.
Ported from dmmulroy/anti-slop.
Reflect.apply bypasses the function type that would normally document and check the call. Call
the typed function directly, or put genuinely dynamic dispatch behind a named interface.
reflectApplyReplace `Reflect.apply` with a typed function call. Model dynamic dispatch behind a named interface.This rule does not accept options.
const value = Reflect.apply(operation, owner, args);const value = operation.apply(owner, args);