chore: eslint prefer-rest-params, prefer-spread

This commit is contained in:
Peter Jaszkowiak
2021-02-04 00:52:25 -07:00
committed by Julian Lam
parent 23f212a4c0
commit 115d19e289
14 changed files with 24 additions and 31 deletions

View File

@@ -27,8 +27,7 @@ Plugins.data = require('./data');
Plugins.hooks = require('./hooks');
// Backwards compatibility for hooks, remove in v1.18.0
const _deprecate = async function () {
const args = Array.from(arguments);
const _deprecate = async function (...args) {
const oldMethod = args.shift();
const newMethod = args.shift();
const method = args.shift();