pi-lens
Version:
Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo
10 lines (9 loc) • 414 B
YAML
id: no-reflect-apply
valid:
- 'fn.apply(obj, args)'
- 'fn(...args)'
- 'const proxy = new Proxy(target, { apply(target, thisArg, args) { return Reflect.apply(target, thisArg, args); } });'
invalid:
- 'Reflect.apply(fn, obj, args)'
- 'const r = Reflect.apply(target[method], target, argumentsList);'
- 'const ordinary = { apply(target, thisArg, args) { return Reflect.apply(target, thisArg, args); } };'