From d3791fc91a30ea6a7a047d2dbeed1673a82db971 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Sun, 22 Oct 2023 19:33:16 +0100 Subject: [PATCH] Fix linting --- src/options/method.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options/method.js b/src/options/method.js index b2c5dfb7..be2d50b6 100644 --- a/src/options/method.js +++ b/src/options/method.js @@ -33,7 +33,7 @@ export const getMethodOpts = (args, plugin) => { return { args } } - const lastArg = args[args.length - 1] + const lastArg = args.at(-1) return lastArgIsOptions(plugin, lastArg) ? { args: args.slice(0, -1), methodOpts: { [plugin.name]: lastArg } } : { args }